From 71cd71885c10357cec9d264d2ea9331fe592003f Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Fri, 6 Oct 2023 11:48:06 -0700 Subject: [PATCH] use capital letter for class name --- warn-starving.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/warn-starving.lua b/warn-starving.lua index 2b08042030..225d41cfd7 100644 --- a/warn-starving.lua +++ b/warn-starving.lua @@ -27,14 +27,14 @@ if args.sane then checkOnlySane = true end -warning = defclass(warning, gui.ZScreen) -warning.ATTRS = { +Warning = defclass(Warning, gui.ZScreen) +Warning.ATTRS = { focus_path='warn-starving', force_pause=true, pass_mouse_clicks=false, } -function warning:init(info) +function Warning:init(info) local main = widgets.Window{ frame={w=80, h=18}, frame_title='Warning', @@ -51,7 +51,7 @@ function warning:init(info) self:addviews{main} end -function warning:onDismiss() +function Warning:onDismiss() view = nil end @@ -111,7 +111,7 @@ function doCheck() print(dfhack.df2console(msg)) end dfhack.color() - return warning{messages=messages}:show() + return Warning{messages=messages}:show() end end