Author Topic: custom reserve TUs icons  (Read 515 times)

Offline robin

  • Commander
  • *****
  • Posts: 1142
  • ULTIMATE ROOKIE
    • View Profile
    • Email
custom reserve TUs icons
« on: September 22, 2021, 01:01:21 am »
I don't understand how to customize these icons.
Changed the UI but vanilla icons show up.
Code: [Select]
  - type: ReserveTUs  # ?
    width: 59
    height: 24
    singleImage: true
    files:
      0: Resources/apoc/UI/reserve_TUs.png
     
  - type: ReserveTUsPressed  # ?
    width: 59
    height: 24
    singleImage: true
    files:
      0: Resources/apoc/UI/reserve_TUs_pressed.png
Thanks
« Last Edit: September 22, 2021, 01:06:39 am by robin »

Offline gaffer

  • Captain
  • ***
  • Posts: 59
    • View Profile
    • Email
Re: custom reserve TUs icons
« Reply #1 on: September 22, 2021, 01:33:16 am »
Wow.  Looks fantastic Robin.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7013
  • OXCE developer
    • View Profile
    • My Wiki
Re: custom reserve TUs icons
« Reply #2 on: September 22, 2021, 10:46:27 am »
Where did you find the `ReserveTUs` and `ReserveTUsPressed` sprite names?

I am not aware of any such sprites' existence.

Offline robin

  • Commander
  • *****
  • Posts: 1142
  • ULTIMATE ROOKIE
    • View Profile
    • Email
Re: custom reserve TUs icons
« Reply #3 on: September 22, 2021, 09:52:05 pm »
Where did you find the `ReserveTUs` and `ReserveTUsPressed` sprite names?

I am not aware of any such sprites' existence.
I made them up :P
I wanted to know the correct ones.

I found this on the 40K mod and it works:
Code: [Select]
  - type: TFTDReserve
    width: 59
    height: 24
    singleImage: true
    files:
      0: Resources/apoc/UI/reserve_TUs.png
But it only defines the not-pressed version.
The pressed state is simulated by changing the palette or something. See screen attached.
If this is my only option I guess I have to come up with a slightly different design for these icons.


« Last Edit: September 22, 2021, 09:54:24 pm by robin »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 7013
  • OXCE developer
    • View Profile
    • My Wiki
Re: custom reserve TUs icons
« Reply #4 on: September 22, 2021, 10:22:38 pm »
If this is my only option I guess I have to come up with a slightly different design for these icons.

Currently it's the only option, but maybe we can make some new options... I've asked SupSuper how "easy" it would be.

Offline robin

  • Commander
  • *****
  • Posts: 1142
  • ULTIMATE ROOKIE
    • View Profile
    • Email
Re: custom reserve TUs icons
« Reply #5 on: September 22, 2021, 10:48:01 pm »
Thank you very much.

Offline robin

  • Commander
  • *****
  • Posts: 1142
  • ULTIMATE ROOKIE
    • View Profile
    • Email
Re: custom reserve TUs icons
« Reply #6 on: September 22, 2021, 10:55:40 pm »
Actually the sprite and ruleset for the reserve icons is also available in the vanilla resources/ruleset.
I'm sure I had checked the vanilla extraSprites.rul file... I don't know HOW I missed that...