From e1aa85dc01a68a76cd62c7f6700b03e3f89d0c3d Mon Sep 17 00:00:00 2001 From: Mintraspberry Cool Date: Thu, 27 Jun 2024 19:41:47 +0800 Subject: [PATCH] update graphics_section --- .../general_section_controls.json | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/ui/RainbowPieUI/ui_extras/settings_sections/general_section_controls.json b/ui/RainbowPieUI/ui_extras/settings_sections/general_section_controls.json index 305b659..e59835d 100644 --- a/ui/RainbowPieUI/ui_extras/settings_sections/general_section_controls.json +++ b/ui/RainbowPieUI/ui_extras/settings_sections/general_section_controls.json @@ -65,6 +65,77 @@ "$option_enabled_binding_name": "#render_clouds_enabled", "$toggle_name": "render_clouds" } + }, + { + "advanced_graphics_options_panel": { + "ignored": "(not $new_video_settings)", + "type": "stack_panel", + "orientation": "vertical", + "size": [ "100%", "100%c + 4px" ], + "controls": [ + { + "graphics_mode@settings_common.option_dropdown": { + "$rainbowpie_localui_dropdown_enabled": true, + "$rainbowpie_localui_dropdown_content": [ + { + "@rainbowpieui_settings_common.rainbowpie_ui_radio_with_label": { + "$toggle_state_binding_name": "#graphics_mode_radio_simple", + "$radio_label_text": "options.graphicsMode.simple" + } + }, + { + "@rainbowpieui_settings_common.rainbowpie_ui_radio_with_label": { + "$toggle_state_binding_name": "#graphics_mode_radio_fancy", + "$radio_label_text": "options.graphicsMode.fancy" + } + }, + { + "@rainbowpieui_settings_common.rainbowpie_ui_radio_with_label": { + "$toggle_state_binding_name": "#graphics_mode_radio_deferred", + "$option_enabled_binding_name": "#graphics_mode_radio_deferred_enabled", + "$radio_label_text": "options.graphicsMode.deferred" + } + }, + { + "@rainbowpieui_settings_common.rainbowpie_ui_radio_with_label": { + "$toggle_state_binding_name": "#graphics_mode_radio_ray_traced", + "$option_enabled_binding_name": "#graphics_mode_radio_ray_traced_enabled", + "$radio_label_text": "options.graphicsMode.rayTraced" + } + } + ], + + "$option_label": "options.graphicsMode", + "$dropdown_content": "general_section.graphics_mode_dropdown_content", + "$dropdown_area": "content_area", + "$dropdown_name": "graphics_mode_dropdown", + "$option_enabled_binding_name": "#graphics_mode_dropdown_enabled", + "$options_dropdown_toggle_label_binding": "#graphics_mode_dropdown_toggle_label", + "$dropdown_scroll_content_size": [ "100%", "255%" ] + } + }, + { + "advanced_graphics_options_button@common_buttons.light_content_button": { + "$button_image_size": [ "100%", "100% - 2px" ], + "$button_state_panel": "rainbowpie_ui_button.rainbowpie_ui_content_button", + + "size": [ "100%", 20 ], + "$button_content": "general_section.advanced_graphics_options_button_content", + "$pressed_button_name": "button.expand_advanced_graphics" + } + }, + { + "advanced_graphics_options_section@general_section.advanced_graphics_options_section": { + "bindings": [ + { + "binding_name": "#advanced_graphics_options_grid_visible", + "binding_name_override": "#visible" + } + ] + } + } + ] + } } ] },