diff --git a/exp_scenario/module/gui/calculator.lua b/exp_scenario/module/gui/calculator.lua index c6e0cb39..3af096bf 100644 --- a/exp_scenario/module/gui/calculator.lua +++ b/exp_scenario/module/gui/calculator.lua @@ -108,12 +108,15 @@ Elements.container = Gui.define("calculator/container") local screen_frame = Gui.elements.screen_frame(parent, nil, true) local button_flow = Gui.elements.screen_frame.get_button_flow(screen_frame) Elements.calculator_caption_label(button_flow, {"exp-gui_calculator.tooltip"}) - Elements.calculator_caption_label(screen_frame, {"exp-gui_calculator.expression"}) - Elements.calculator_input_textfield(screen_frame) - Elements.calculator_caption_label(screen_frame, {"exp-gui_calculator.result"}) - Elements.calculator_result_label(screen_frame) - Elements.calculator_caption_label(screen_frame, {"exp-gui_calculator.reference"}) - Elements.calculator_info_label(screen_frame) + local main_table = Gui.elements.scroll_table(parent, 600, 2) + local left_table = Gui.elements.scroll_table(parent, 400, 1) + local right_table = Gui.elements.scroll_table(parent, 200, 1) + Elements.calculator_caption_label(left_table, {"exp-gui_calculator.expression"}) + Elements.calculator_input_textfield(left_table) + Elements.calculator_caption_label(left_table, {"exp-gui_calculator.result"}) + Elements.calculator_result_label(left_table) + Elements.calculator_caption_label(right_table, {"exp-gui_calculator.reference"}) + Elements.calculator_info_label(right_table) return Gui.elements.screen_frame.get_root_element(screen_frame) end) diff --git a/exp_scenario/module/locale/en.cfg b/exp_scenario/module/locale/en.cfg index 308bdf84..bc6a5624 100644 --- a/exp_scenario/module/locale/en.cfg +++ b/exp_scenario/module/locale/en.cfg @@ -274,7 +274,7 @@ tooltip=Calculator expression=Expression: result=Result: reference=Reference -info=Operator\n+ - * / % () ^ ** !\nPrefix\nK M G T P\nBase\n0x 0b 0o\nFunction\nABS, CEIL, EXP, FLOOR, LN, LOG, ROUND, SQRT, TRUNC +info=Operator\n+ - * / % () ^ ** !\nPrefix\nK M G T P\nBase\n0x 0b 0o\nFunction\nABS, CEIL, EXP, FLOOR, LN\nLOG, ROUND, SQRT, TRUNC error=[ERROR] input_too_long=Input too long factorial_neg=Factorial of a negative number __1__ diff --git a/exp_scenario/module/locale/zh-CN.cfg b/exp_scenario/module/locale/zh-CN.cfg index 79fc3b33..ccb5fb58 100644 --- a/exp_scenario/module/locale/zh-CN.cfg +++ b/exp_scenario/module/locale/zh-CN.cfg @@ -276,7 +276,7 @@ tooltip=計算機 expression=表達式: result=結果: reference=參考 -info=運算符\n+ - * / % () ^ ** !\n詞頭\nK M G T P\n進制\n0x 0b 0o\n函數\nABS, CEIL, EXP, FLOOR, LN, LOG, ROUND, SQRT, TRUNC +info=運算符\n+ - * / % () ^ ** !\n詞頭\nK M G T P\n進制\n0x 0b 0o\n函數\nABS, CEIL, EXP, FLOOR, LN\nLOG, ROUND, SQRT, TRUNC error=[錯誤] input_too_long=輸入太長 factorial_neg=負數的階乘 __1__ diff --git a/exp_scenario/module/locale/zh-TW.cfg b/exp_scenario/module/locale/zh-TW.cfg index 79fc3b33..ccb5fb58 100644 --- a/exp_scenario/module/locale/zh-TW.cfg +++ b/exp_scenario/module/locale/zh-TW.cfg @@ -276,7 +276,7 @@ tooltip=計算機 expression=表達式: result=結果: reference=參考 -info=運算符\n+ - * / % () ^ ** !\n詞頭\nK M G T P\n進制\n0x 0b 0o\n函數\nABS, CEIL, EXP, FLOOR, LN, LOG, ROUND, SQRT, TRUNC +info=運算符\n+ - * / % () ^ ** !\n詞頭\nK M G T P\n進制\n0x 0b 0o\n函數\nABS, CEIL, EXP, FLOOR, LN\nLOG, ROUND, SQRT, TRUNC error=[錯誤] input_too_long=輸入太長 factorial_neg=負數的階乘 __1__