From ec0b4a9b681ec7256e9d92ca2e6959d4b419e9d2 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Tue, 27 Dec 2022 17:01:39 -0800 Subject: [PATCH] don't let anchor graphics poke through the hotkeys widget --- plugins/lua/hotkeys.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/lua/hotkeys.lua b/plugins/lua/hotkeys.lua index 2fb1bf69e..3ad910495 100644 --- a/plugins/lua/hotkeys.lua +++ b/plugins/lua/hotkeys.lua @@ -11,15 +11,15 @@ local widgets = require('gui.widgets') HotspotMenuWidget = defclass(HotspotMenuWidget, overlay.OverlayWidget) HotspotMenuWidget.ATTRS{ - default_pos={x=1,y=3}, + default_pos={x=1,y=2}, hotspot=true, viewscreens={'dwarfmode'}, overlay_onupdate_max_freq_seconds=0, - frame={w=2, h=1} + frame={w=4, h=3} } function HotspotMenuWidget:init() - self:addviews{widgets.Label{text='!'}} + self:addviews{widgets.Label{text={'!!!!', NEWLINE, '!!!!', NEWLINE, '!!!!'}}} self.mouseover = false end @@ -136,9 +136,9 @@ function MenuScreen:init() local help_frame = {w=list_frame.w, l=list_frame.l, r=list_frame.r} if list_frame.t then - help_frame.t = list_frame.t + list_frame.h + 1 + help_frame.t = list_frame.t + list_frame.h else - help_frame.b = list_frame.b + list_frame.h + 1 + help_frame.b = list_frame.b + list_frame.h end self:addviews{