Author Topic: [Suggestion] add possibility to dynamically change skilliconSprite  (Read 903 times)

Offline Osobist

  • Sergeant
  • **
  • Posts: 34
    • View Profile
Hello. Can we have a feature to dynamically change skillIconSprite depending on tags, which are tied to current BattleUnit? One of the possible usages that we're currently working on right now is the indicator of taken aiming mode.

Offline Yankes

  • Commander
  • *****
  • Posts: 3229
    • View Profile
Re: [Suggestion] add possibility to dynamically change skilliconSprite
« Reply #1 on: May 08, 2023, 03:59:27 pm »
Some thing like this could be added.
But what exactly is use case you want have? When you expect this icon to change?

Offline Osobist

  • Sergeant
  • **
  • Posts: 34
    • View Profile
Re: [Suggestion] add possibility to dynamically change skilliconSprite
« Reply #2 on: May 08, 2023, 05:07:56 pm »
The icon's sprite should be calculated at each frame just like selectUnitSprite and selectItemSprite does. Tag's changing on unit comes as trigger to it. The tag change itself happens in skillUseUnit event. Simply talking: unit used skill - the skill icon changed at the same time. Used other skill in same turn - changed again. All goes in realtime.
« Last Edit: May 09, 2023, 03:49:27 am by Osobist »