mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-22 07:33:12 +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{
|
: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
|
||||||
|
|||||||
Reference in new issue
Block a user