From d9cae63e4e127ecc4291bd8cd54f4cc262535b0f Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Wed, 13 Sep 2023 18:02:44 -0700 Subject: [PATCH] move dfhack logo over a little --- plugins/lua/hotkeys.lua | 11 +++++++++-- plugins/lua/overlay.lua | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/plugins/lua/hotkeys.lua b/plugins/lua/hotkeys.lua index 43d11bbda..be1a95570 100644 --- a/plugins/lua/hotkeys.lua +++ b/plugins/lua/hotkeys.lua @@ -26,9 +26,10 @@ end HotspotMenuWidget = defclass(HotspotMenuWidget, overlay.OverlayWidget) HotspotMenuWidget.ATTRS{ - default_pos={x=2,y=2}, + default_pos={x=5,y=1}, default_enabled=true, - hotspot=true, + hotspot=false, + version=2, viewscreens={ 'adopt_region', 'choose_game_type', @@ -170,10 +171,16 @@ end function Menu:init() local hotkeys, bindings = getHotkeys() + if #hotkeys == 0 then + hotkeys = {''} + bindings = {['']='gui/launcher'} + end local is_inverted = not not self.hotspot.frame.b local choices,list_width = get_choices(hotkeys, bindings, is_inverted) + list_width = math.max(35, list_width) + local list_frame = copyall(self.hotspot.frame) local list_widget_frame = {h=math.min(#choices, MAX_LIST_HEIGHT)} local quickstart_frame = {} diff --git a/plugins/lua/overlay.lua b/plugins/lua/overlay.lua index 55ca44bc9..d3f0b9c9d 100644 --- a/plugins/lua/overlay.lua +++ b/plugins/lua/overlay.lua @@ -581,7 +581,8 @@ end TitleVersionOverlay = defclass(TitleVersionOverlay, OverlayWidget) TitleVersionOverlay.ATTRS{ - default_pos={x=7, y=2}, + default_pos={x=11, y=1}, + version=2, default_enabled=true, viewscreens='title/Default', frame={w=35, h=5},