I'm learning how to use the GUI functions with Geyser, lots of fun!
I am having a bit of trouble getting images to fit my labels using URL paths with variables.
Using the below code I can successfully get an image displaying, which hopefully proves the path is correct:
Code: Select all
ue_path = getMudletHomeDir()
setBackgroundImage("GUI.Left",ue_path.."/GUI/border_left.png")
What I am trying to do is have an icon image display underneath a gauge.
The icon needs to stretch to fit the label in case of window resizing.
Using this code with the full path, the icon appears and stretches to fit the label nicely:
Code: Select all
GUI.HungerIcon:setStyleSheet([[border-image : url("C:/Users/matt/.config/mudlet/profiles/UnEarthed 2017/GUI/thirst.png");]]);
Code: Select all
GUI.ThirstIcon:setStyleSheet([[background-image : url(]] .. ue_path .. [[/GUI/thirst.png)]]);
Could anyone give me some pointers please?