Creations Favorites Medals Posts ID:154657
 ID:154657   Jan 24 2012, 1:09 pm (See the best response by DarkCampainger.) My intend was to have a space on the interface that would change into another image from joining a channel. For example Having a picture of a tree for the forest, then you enter another location and a picture of a city appears. This is for a text base game. Thanks in advance.
Best response
You can change a label control's image via winset().

Here's a quick example:
 // Choose the iconvar/icon/I = 'city.dmi'// Update the label to show itwinset(src, "testLabel", "image=\"\ref[I]\"") 

Replace "testLabel" with the ID of your label control.
 #2 Jan 24 2012, 2:11 pm In response to DarkCampainger (#1) Thanks, again. (edit) One question, if the image is in the .rsc itself would I still need to send the icon to the player's cache?
 #3 Jan 24 2012, 2:26 pm In response to AllSmiles (#2) AllSmiles wrote: Thanks, again. (edit) One question, if the image is in the .rsc itself would I still need to send the icon to the player's cache? Nope. I just checked on my second machine. Works fine without it if the icons are packaged in the RSC. I'll edit my answer.
 #4 Jan 24 2012, 2:45 pm In response to DarkCampainger (#3) Ok, thank you for confirming