ID:154994
 
var/list/ITZ=list(1,2,9)
var/list/MapsWithIT=list("1","2","9","10")
var/list/MapNames=list("1"="Earth","2"="Other World","3"="Inside","4"="Instances #1","5"="Mission Map","6"="Mission Map","7"="Apartments","8"="Concept Pieces","9"="Hyperbolic Time Chamber","10"="Territory War")

mob/proc/LoadMiniMapBG()
for(var/client/C)
winset(src,"MiniMapWindow.PlanetLabel","text=\"[MapNames["[src.z]"]]\"")

if(src.onearth)
winset(src,"MiniMapWindow.PlanetLabel","icon='MiniMapEarth.png'")


I want to insert image in label but I dont know how. I trie :
winset(src,"MiniMapWindow.PlanetLabel","icon='MiniMapEarth.png'")
but its not working
I had this issue too. It turns out that it works better when you use fcopy_rsc.

var/A = fcopy_rsc('X.png')
winset(src,"control","image=\ref[A]")
In response to Lugia319 (#1)
ty for help it realy helps a lot