mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-13 08:04:53 +09:00
name
This commit is contained in:
1 parent
be97b590a2
commit
705086d582
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user