From 705086d582b1c0f3ba2e83ecb2920b7d4777035c Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 3 Nov 2026 20:11:42 +0900 Subject: [PATCH] name --- exp_scenario/module/gui/calculator.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exp_scenario/module/gui/calculator.lua b/exp_scenario/module/gui/calculator.lua index e1ac9cba..25d82a70 100644 --- a/exp_scenario/module/gui/calculator.lua +++ b/exp_scenario/module/gui/calculator.lua @@ -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