|
|
|
@ -818,9 +818,25 @@ function paint_frame(dc,rect,style,title,show_lock,locked,inactive)
|
|
|
|
|
|
|
|
|
|
if show_lock then
|
|
|
|
|
if locked and style.locked_pen then
|
|
|
|
|
local pin_texpos = dfhack.textures.getGreenPinTexposStart()
|
|
|
|
|
if pin_texpos == -1 then
|
|
|
|
|
dscreen.paintTile(style.locked_pen, x2-1, y1)
|
|
|
|
|
else
|
|
|
|
|
dscreen.paintTile(style.locked_pen, x2-2, y1-1, nil, pin_texpos+0)
|
|
|
|
|
dscreen.paintTile(style.locked_pen, x2-1, y1-1, nil, pin_texpos+1)
|
|
|
|
|
dscreen.paintTile(style.locked_pen, x2-2, y1, nil, pin_texpos+2)
|
|
|
|
|
dscreen.paintTile(style.locked_pen, x2-1, y1, nil, pin_texpos+3)
|
|
|
|
|
end
|
|
|
|
|
elseif not locked and style.unlocked_pen then
|
|
|
|
|
local pin_texpos = dfhack.textures.getRedPinTexposStart()
|
|
|
|
|
if pin_texpos == -1 then
|
|
|
|
|
dscreen.paintTile(style.unlocked_pen, x2-1, y1)
|
|
|
|
|
else
|
|
|
|
|
dscreen.paintTile(style.unlocked_pen, x2-2, y1-1, nil, pin_texpos+0)
|
|
|
|
|
dscreen.paintTile(style.unlocked_pen, x2-1, y1-1, nil, pin_texpos+1)
|
|
|
|
|
dscreen.paintTile(style.unlocked_pen, x2-2, y1, nil, pin_texpos+2)
|
|
|
|
|
dscreen.paintTile(style.unlocked_pen, x2-1, y1, nil, pin_texpos+3)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|