From 0b37a9a7ce1addabcbe5ee6a3fc312a724700b3a Mon Sep 17 00:00:00 2001 From: Timur Kelman Date: Sun, 31 Dec 2023 12:10:30 +0100 Subject: [PATCH] use new textures API --- gui/biomes.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/biomes.lua b/gui/biomes.lua index 71285c9714..470babcef1 100644 --- a/gui/biomes.lua +++ b/gui/biomes.lua @@ -9,7 +9,8 @@ local guidm = require('gui.dwarfmode') local INITIAL_LIST_HEIGHT = 5 local INITIAL_INFO_HEIGHT = 15 -local TILE_HIGHLIGHTED = dfhack.textures.getOnOffTexposStart() -- yellow-ish indicator +local textures = dfhack.textures.loadTileset('hack/data/art/on-off.png', 8, 12, true) +local TILE_HIGHLIGHTED = dfhack.textures.getTexposByHandle(textures[1]) -- yellow-ish indicator if TILE_HIGHLIGHTED < 0 then -- use a fallback TILE_HIGHLIGHTED = 88 -- `X` end