I was able to find the mineral and vespane icons in the ui section of the data editor but I can't seem to find the supply icons.. where are they or do I just need to over write the textures?
Alter the player group to change who sees the icon.
Put all this together and you can have dynamically changing supply icons! You can probably delete the element or you could also hide it once it is hooked if you want to remove it completely.
I just want to revive this thread to say thank you to ImperialGood for figuring out a way to do this. I've been trying for days to find something that worked for this. To rephrase the method he found:
In the Trigger editor, create a global variable -- let's call it Custom_Supply_Icon
Set the initial value for Custom_Supply_Icon to a Custom Script: DialogControlHookupStandard(c_triggerControlTypeImage, "UIContainer/FullscreenUpperContainer/ResourcePanel/ResourceFrame/SupplyIcon")
Create a trigger that fires at map initialization (or whenever you want to change the icon)
Create a "Set Dialog Item Image" action with Custom_Supply_Icon for the dialog item and whatever image you want to use for the value
That's it! Again, thanks ImperialGood for sharing this method!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I was able to find the mineral and vespane icons in the ui section of the data editor but I can't seem to find the supply icons.. where are they or do I just need to over write the textures?
Thanks
Really no one helped this poor guy? Well I found one way. It involves using the awesome power of trigger enhancing standard UI.
The following line of GUI will create a dialog item reference for the supply icon...
Since you can only hook things up once, assign it to a global variable like...
If using galaxy you can probably assign it at the same time as the hook call.
Now all you need to do is change the icon. This can be done with code like this...
Alter the player group to change who sees the icon.
Put all this together and you can have dynamically changing supply icons! You can probably delete the element or you could also hide it once it is hooked if you want to remove it completely.
Thanks! I'll see about setting that up
@Sapphire_united: Go
Take a look at this thread, I think this is what you're looking for.
http://www.sc2mapster.com/forums/development/map-development/10286-changing-the-resource-icon/#p7
I just want to revive this thread to say thank you to ImperialGood for figuring out a way to do this. I've been trying for days to find something that worked for this. To rephrase the method he found:
DialogControlHookupStandard(c_triggerControlTypeImage, "UIContainer/FullscreenUpperContainer/ResourcePanel/ResourceFrame/SupplyIcon")
That's it! Again, thanks ImperialGood for sharing this method!