@@ -8,16 +8,16 @@ local _ENV = mkmodule('gui.textures')
88-- Use these handles if you need to get dfhack standard textures.
99--- @type table<string , TexposHandle[]>
1010local texpos_handles = {
11- green_pin = dfhack .textures .loadTileset (' hack /data/art/green-pin.png' , 8 , 12 , true ),
12- red_pin = dfhack .textures .loadTileset (' hack /data/art/red-pin.png' , 8 , 12 , true ),
13- icons = dfhack .textures .loadTileset (' hack /data/art/icons.png' , 8 , 12 , true ),
14- on_off = dfhack .textures .loadTileset (' hack /data/art/on-off.png' , 8 , 12 , true ),
15- control_panel = dfhack .textures .loadTileset (' hack /data/art/control-panel.png' , 8 , 12 , true ),
16- border_thin = dfhack .textures .loadTileset (' hack /data/art/border-thin.png' , 8 , 12 , true ),
17- border_medium = dfhack .textures .loadTileset (' hack /data/art/border-medium.png' , 8 , 12 , true ),
18- border_bold = dfhack .textures .loadTileset (' hack /data/art/border-bold.png' , 8 , 12 , true ),
19- border_panel = dfhack .textures .loadTileset (' hack /data/art/border-panel.png' , 8 , 12 , true ),
20- border_window = dfhack .textures .loadTileset (' hack /data/art/border-window.png' , 8 , 12 , true ),
11+ green_pin = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/green-pin.png' , 8 , 12 , true ),
12+ red_pin = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/red-pin.png' , 8 , 12 , true ),
13+ icons = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/icons.png' , 8 , 12 , true ),
14+ on_off = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/on-off.png' , 8 , 12 , true ),
15+ control_panel = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/control-panel.png' , 8 , 12 , true ),
16+ border_thin = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/border-thin.png' , 8 , 12 , true ),
17+ border_medium = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/border-medium.png' , 8 , 12 , true ),
18+ border_bold = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/border-bold.png' , 8 , 12 , true ),
19+ border_panel = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/border-panel.png' , 8 , 12 , true ),
20+ border_window = dfhack .textures .loadTileset (dfhack . getHackPath () .. ' /data/art/border-window.png' , 8 , 12 , true ),
2121}
2222
2323-- Get valid texpos for preloaded texture in tileset
0 commit comments