This commit is contained in:
phidias authored and GitHub committed 2026-11-03 20:11:42 +09:00
1 parent be97b590a2
commit 705086d582
1 file changed
+2 -1
+2 -1
View File
@@ -65,6 +65,7 @@ Elements.calculator_result_label = Gui.define("calculator/result_label")
:draw{ :draw{
type = "label", type = "label",
caption = "", caption = "",
name = "calculator_result_label",
style = "heading_2_label", style = "heading_2_label",
} }
@@ -323,7 +324,7 @@ end
--- Value change --- Value change
function Elements.change(event) function Elements.change(event)
Elements.calculator_result_label.caption = event.text == "" and "" or Elements.parse(event.text:lower()) event.element.parent.calculator_result_label.caption = event.text == "" and "" or Elements.parse(event.text:lower())
end end
local e = defines.events local e = defines.events