like this
unit.icon='[unit.NewState].dmi'
do I need the icon proc or is there another way??
How can I change the icon of an atom at runtime??
like this
unit.icon='[unit.NewState].dmi'
do I need the icon proc or is there another way?? |
Single-quotes basically tell the compiler to store that file in the rsc to be accessed later without requiring you distribute the raw file, they're constant expressions (different from constant variables) in that they can't contain any runtime expression (things within brackets).