From 613760db523b2498e9881e6f09e77cd433ff8597 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 26 Nov 2026 22:58:37 +0900 Subject: [PATCH] . --- exp_scenario/module/gui/calculator.lua | 5 +++-- exp_scenario/module/locale/en.cfg | 2 +- exp_scenario/module/locale/zh-CN.cfg | 2 +- exp_scenario/module/locale/zh-TW.cfg | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/exp_scenario/module/gui/calculator.lua b/exp_scenario/module/gui/calculator.lua index dfd84e77..68db0a27 100644 --- a/exp_scenario/module/gui/calculator.lua +++ b/exp_scenario/module/gui/calculator.lua @@ -85,7 +85,7 @@ Elements.calculator_result_caption_label = Gui.define("calculator/result_caption Elements.calculator_info_label = Gui.define("calculator/info_label") :draw{ type = "label", - caption = {"exp-gui_calculator.caption"}, + caption = {"exp-gui_calculator.reference"}, name = "calculator_info_label", } :style{ @@ -114,7 +114,8 @@ Elements.calculator_result_label = Gui.define("calculator/result_label") 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" } }) + local button_flow = Gui.elements.screen_frame.get_button_flow(screen_frame) + local header = Gui.elements.header(button_flow, { 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) diff --git a/exp_scenario/module/locale/en.cfg b/exp_scenario/module/locale/en.cfg index 0e23538b..efd91abe 100644 --- a/exp_scenario/module/locale/en.cfg +++ b/exp_scenario/module/locale/en.cfg @@ -273,7 +273,7 @@ inserted=Inserted __1__ __2__ into __3__ 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 +reference=Reference\nOperator\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 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 98468b41..c7676f43 100644 --- a/exp_scenario/module/locale/zh-CN.cfg +++ b/exp_scenario/module/locale/zh-CN.cfg @@ -275,7 +275,7 @@ inserted=自動填入 __1__ __2__ 到 __3__ 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 +reference=參考\n運算符\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=輸入太長 factorial_neg=負數的階乘 __1__ diff --git a/exp_scenario/module/locale/zh-TW.cfg b/exp_scenario/module/locale/zh-TW.cfg index 98468b41..c7676f43 100644 --- a/exp_scenario/module/locale/zh-TW.cfg +++ b/exp_scenario/module/locale/zh-TW.cfg @@ -275,7 +275,7 @@ inserted=自動填入 __1__ __2__ 到 __3__ 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 +reference=參考\n運算符\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=輸入太長 factorial_neg=負數的階乘 __1__