function ui.loader()
local separator = string.char(getMudletHomeDir():byte()) == "/" and "/" or "\\"
local image_dir = (getMudletHomeDir() .. separator .. "ccc" .. separator .. "images" .. separator):gsub("\\","/")
ui.labels.loader = Geyser.Label:new({
name = "ui.labels.loader",
x = "0%", y = "0%",
width = "100%", height = "100%"
}, ui.containers.main)
ui.labels.loader:setStyleSheet([[
border-image: url("]] .. image_dir .. [[loader.png");
]])
end
Stipulating directories with geyser setStyleSheet properties
Re: Stipulating directories with geyser setStyleSheet proper
This is what I use in my GUI scripts to grab the image path. 'My Image Folder' is the name of the folder you put your images in (if any)
As for the stylesheet...