make DFHack logo glow on hover

develop
Myk Taylor 2023-09-14 10:12:25 -07:00
parent b6c4eb7701
commit 3634075df0
No known key found for this signature in database
2 changed files with 1 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 997 B

After

Width:  |  Height:  |  Size: 5.0 KiB

@ -82,19 +82,11 @@ function HotspotMenuWidget:init()
get_tile_token(5, '!'), get_tile_token(6, 'H'), get_tile_token(7, 'a'), get_tile_token(8, '!'), NEWLINE,
get_tile_token(9, '!'), get_tile_token(10, 'c'), get_tile_token(11, 'k'), get_tile_token(12, '!'),
},
on_click=function() MenuScreen{hotspot=self}:show() end,
},
}
end
function HotspotMenuWidget:onInput(keys)
if HotspotMenuWidget.super.onInput(self, keys) then
return true
elseif keys._MOUSE_L_DOWN and self:getMousePos() then
MenuScreen{hotspot=self}:show()
return true
end
end
-- register the menu hotspot with the overlay
OVERLAY_WIDGETS = {menu=HotspotMenuWidget}