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{
type = "label",
caption = "",
name = "calculator_result_label",
style = "heading_2_label",
}
@@ -323,7 +324,7 @@ end
--- Value change
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
local e = defines.events