Skip to content

Commit

Permalink
use new textures API
Browse files Browse the repository at this point in the history
  • Loading branch information
TymurGubayev authored Dec 31, 2023
1 parent fc38f83 commit 0b37a9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/biomes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b37a9a

Please sign in to comment.