paint pause symbol for force-pause windows

develop
Myk Taylor 2023-01-23 19:02:26 -08:00
parent 0905943ecf
commit 1c2f8eccbf
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 10 additions and 6 deletions

@ -904,14 +904,18 @@ function paint_frame(dc,rect,style,title,inactive, pause_forced)
end
if pause_forced then
local pause_texpos = dfhack.textures.getRedPinTexposStart()
if pause_texpos == -1 then
-- get the tiles for the activated pause symbol
local pause_texpos_ul = dfhack.screen.findGraphicsTile('INTERFACE_BITS', 18, 28)
local pause_texpos_ur = dfhack.screen.findGraphicsTile('INTERFACE_BITS', 19, 28)
local pause_texpos_ll = dfhack.screen.findGraphicsTile('INTERFACE_BITS', 18, 29)
local pause_texpos_lr = dfhack.screen.findGraphicsTile('INTERFACE_BITS', 19, 29)
if not pause_texpos_ul then
dscreen.paintTile(style.paused_pen, x2-1, y1)
else
dscreen.paintTile(style.paused_pen, x2-2, y1-1, nil, pause_texpos+0)
dscreen.paintTile(style.paused_pen, x2-1, y1-1, nil, pause_texpos+1)
dscreen.paintTile(style.paused_pen, x2-2, y1, nil, pause_texpos+2)
dscreen.paintTile(style.paused_pen, x2-1, y1, nil, pause_texpos+3)
dscreen.paintTile(style.paused_pen, x2-2, y1-1, nil, pause_texpos_ul)
dscreen.paintTile(style.paused_pen, x2-1, y1-1, nil, pause_texpos_ur)
dscreen.paintTile(style.paused_pen, x2-2, y1, nil, pause_texpos_ll)
dscreen.paintTile(style.paused_pen, x2-1, y1, nil, pause_texpos_lr)
end
end
end