I have a custom UI that I am making out of dialogs. When a unit is placed in a variable I want to display an image relative to that unit. The problem is, I cant seem to do this dynamically.
What I need can be anything that relates to the unit, for example, the frame on the regular UI that shows the 2d model and health. That image is dynamically changed when a player selects different units. Where can I find this value to call?
Im sure its somewhere other than calling static assets... I hope. Anyways, if someone can help me with this Id appritiate it.
Right now for testing purposes only, I have :
IF(triggering unit type == zealot) - >
set targetUnitImage = *zealot image asset*
I have a custom UI that I am making out of dialogs. When a unit is placed in a variable I want to display an image relative to that unit. The problem is, I cant seem to do this dynamically.
What I need can be anything that relates to the unit, for example, the frame on the regular UI that shows the 2d model and health. That image is dynamically changed when a player selects different units. Where can I find this value to call?
Im sure its somewhere other than calling static assets... I hope. Anyways, if someone can help me with this Id appritiate it.
Right now for testing purposes only, I have :
IF(triggering unit type == zealot) -> set targetUnitImage = *zealot image asset*
You could use a conform in which you make the buttons used for an unit have the same name as the unit. Then you can simply use the unit name in retrieving the icon used for the button (cross data-type referencing) what I m basicly saying is:
Units/Zealot (Unit Type Zealot) -> Buttons/Zealot (Button that contains the Zealot image)
if you do this you can set it up somewhat dynamically. And if I m correct this is already true for all the default units.
I have a custom UI that I am making out of dialogs. When a unit is placed in a variable I want to display an image relative to that unit. The problem is, I cant seem to do this dynamically.
What I need can be anything that relates to the unit, for example, the frame on the regular UI that shows the 2d model and health. That image is dynamically changed when a player selects different units. Where can I find this value to call?
Im sure its somewhere other than calling static assets... I hope. Anyways, if someone can help me with this Id appritiate it.
Right now for testing purposes only, I have :
IF(triggering unit type == zealot) - > set targetUnitImage = *zealot image asset*
You could use a conform in which you make the buttons used for an unit have the same name as the unit. Then you can simply use the unit name in retrieving the icon used for the button (cross data-type referencing) what I m basicly saying is:
Units/Zealot (Unit Type Zealot) -> Buttons/Zealot (Button that contains the Zealot image)
if you do this you can set it up somewhat dynamically. And if I m correct this is already true for all the default units.
@Helral: Go
cant use string for the file reference though.... so yeah kinda hard to just read them outta catalog field values
@BasicGear: Go
I believe you're looking for this..