mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-21 07:33:12 +09:00
naming
This commit is contained in:
1 parent
2f28ae8241
commit
e6d5ee8a4b
1 file changed
+4
-4
@@ -97,7 +97,7 @@ Gui.toolbar.create_button{
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
--- Parse Value
|
--- Parse Value
|
||||||
function Elements.calculator.parse(expression)
|
function Elements.parse(expression)
|
||||||
local cursor = 1
|
local cursor = 1
|
||||||
|
|
||||||
local function skip_space()
|
local function skip_space()
|
||||||
@@ -313,8 +313,8 @@ function Elements.calculator.parse(expression)
|
|||||||
end
|
end
|
||||||
|
|
||||||
--- Value change
|
--- Value change
|
||||||
function Elements.calculator.change(event)
|
function Elements.change(event)
|
||||||
Elements.calculator_result_label.caption = event.text == "" and "" or main.parse(event.text:lower())
|
Elements.calculator_result_label.caption = event.text == "" and "" or Elements.parse(event.text:lower())
|
||||||
end
|
end
|
||||||
|
|
||||||
local e = defines.events
|
local e = defines.events
|
||||||
@@ -322,6 +322,6 @@ local e = defines.events
|
|||||||
return {
|
return {
|
||||||
elements = Elements,
|
elements = Elements,
|
||||||
events = {
|
events = {
|
||||||
[e.on_gui_text_changed] = Elements.calculator.parse,
|
[e.on_gui_text_changed] = Elements.change,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user