This commit is contained in:
phidias authored and GitHub committed 2026-11-27 00:09:39 +09:00
1 parent d05d4fb156
commit e5602d3493
4 files changed
+12 -9

No files matched your search

+9 -6
View File
@@ -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)