mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-27 23:57:13 +09:00
.
This commit is contained in:
1 parent
a3860c91e1
commit
b00d77702b
4 files changed
+26
No files matched your search
@@ -63,6 +63,24 @@ local function factorial(n)
|
||||
return result
|
||||
end
|
||||
|
||||
--- Expression caption label
|
||||
Elements.calculator_expression_caption_label = Gui.define("calculator/expression_caption_label")
|
||||
:draw{
|
||||
type = "label",
|
||||
caption = {"exp-gui_calculator.expression"},
|
||||
name = "calculator_expression_caption_label",
|
||||
style = "heading_2_label",
|
||||
}
|
||||
|
||||
--- Result caption label
|
||||
Elements.calculator_result_caption_label = Gui.define("calculator/result_caption_label")
|
||||
:draw{
|
||||
type = "label",
|
||||
caption = {"exp-gui_calculator.expression"},
|
||||
name = "calculator_result_caption_label",
|
||||
style = "heading_2_label",
|
||||
}
|
||||
|
||||
--- Info label
|
||||
Elements.calculator_info_label = Gui.define("calculator/info_label")
|
||||
:draw{
|
||||
@@ -97,7 +115,9 @@ Elements.container = Gui.define("calculator/container")
|
||||
:draw(function(def, parent)
|
||||
local screen_frame = Gui.elements.screen_frame(parent, nil, true)
|
||||
local header = Gui.elements.header(screen_frame, { caption = { "exp-gui_calculator.tooltip" } })
|
||||
Elements.calculator_expression_caption_label(screen_frame)
|
||||
Elements.calculator_input_textfield(screen_frame)
|
||||
Elements.calculator_result_caption_label(screen_frame)
|
||||
Elements.calculator_result_label(screen_frame)
|
||||
Elements.calculator_info_label(screen_frame)
|
||||
return Gui.elements.screen_frame.get_root_element(screen_frame)
|
||||
|
||||
@@ -271,6 +271,8 @@ inserted=Inserted __1__ __2__ into __3__
|
||||
|
||||
[exp-gui_calculator]
|
||||
tooltip=Calculator
|
||||
expression=Expression:
|
||||
result=Result:
|
||||
caption=Operator\n+ - * / % () ^ ** !\nPrefix\nK M G T P\nBase\n0x 0b 0o\nFunction\nABS, CEIL, EXP, FLOOR, LN, LOG, ROUND, SQRT, TRUNC
|
||||
error=[ERROR]
|
||||
input_too_long=Input too long
|
||||
|
||||
@@ -273,6 +273,8 @@ inserted=自動填入 __1__ __2__ 到 __3__
|
||||
|
||||
[exp-gui_calculator]
|
||||
tooltip=計算機
|
||||
expression=表達式:
|
||||
result=結果:
|
||||
caption=運算符\n+ - * / % () ^ ** !\n詞頭\nK M G T P\n進制\n0x 0b 0o\n函數\nABS, CEIL, EXP, FLOOR, LN, LOG, ROUND, SQRT, TRUNC
|
||||
error=[錯誤]
|
||||
input_too_long=輸入太長
|
||||
|
||||
@@ -273,6 +273,8 @@ inserted=自動填入 __1__ __2__ 到 __3__
|
||||
|
||||
[exp-gui_calculator]
|
||||
tooltip=計算機
|
||||
expression=表達式:
|
||||
result=結果:
|
||||
caption=運算符\n+ - * / % () ^ ** !\n詞頭\nK M G T P\n進制\n0x 0b 0o\n函數\nABS, CEIL, EXP, FLOOR, LN, LOG, ROUND, SQRT, TRUNC
|
||||
error=[錯誤]
|
||||
input_too_long=輸入太長
|
||||
|
||||
Reference in new issue
Block a user