[Update] Config Window: Add VR Tab. Add Item, Enable OpenVR Switch.
This commit is contained in:
@@ -11,6 +11,7 @@ from .setting_box_containers.setting_box_transcription import createSettingBox_M
|
||||
from .setting_box_containers.setting_box_others import createSettingBox_Others, createSettingBox_Others_SendMessageFormats, createSettingBox_Others_ReceivedMessageFormats, createSettingBox_Others_Additional
|
||||
from .setting_box_containers.setting_box_advanced_settings import createSettingBox_AdvancedSettings
|
||||
from .setting_box_containers.setting_box_translation import createSettingBox_Translation
|
||||
from .setting_box_containers.setting_box_vr import createSettingBox_Vr
|
||||
|
||||
from .setting_box_containers.setting_box_about_vrct import createSettingBox_AboutVrct
|
||||
|
||||
@@ -103,6 +104,21 @@ def createSideMenuAndSettingsBoxContainers(config_window, settings, view_variabl
|
||||
]
|
||||
},
|
||||
},
|
||||
{
|
||||
"side_menu_tab_attr_name": "side_menu_tab_vr",
|
||||
"label_attr_name": "label_vr",
|
||||
"selected_mark_attr_name": "selected_mark_vr",
|
||||
"textvariable": view_variable.VAR_SIDE_MENU_LABEL_VR,
|
||||
"setting_box_container_settings": {
|
||||
"setting_box_container_attr_name": "setting_box_container_vr",
|
||||
"setting_boxes": [
|
||||
{
|
||||
"var_section_title": None,
|
||||
"setting_box": createSettingBox_Vr
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
{
|
||||
"side_menu_tab_attr_name": "side_menu_tab_others",
|
||||
"label_attr_name": "label_others",
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
from .createSettingBox_Vr import createSettingBox_Vr
|
||||
@@ -0,0 +1,22 @@
|
||||
from utils import callFunctionIfCallable
|
||||
|
||||
from .._SettingBoxGenerator import _SettingBoxGenerator
|
||||
|
||||
def createSettingBox_Vr(setting_box_wrapper, config_window, settings, view_variable):
|
||||
sbg = _SettingBoxGenerator(setting_box_wrapper, config_window, settings, view_variable)
|
||||
createSettingBoxSwitch = sbg.createSettingBoxSwitch
|
||||
|
||||
def switchEnableOverlayUiCallback(switch_widget):
|
||||
callFunctionIfCallable(view_variable.CALLBACK_SET_ENABLE_OVERLAY_UI, switch_widget.get())
|
||||
|
||||
|
||||
row=0
|
||||
config_window.sb__enable_overlay_ui = createSettingBoxSwitch(
|
||||
for_var_label_text=view_variable.VAR_LABEL_ENABLE_OVERLAY_UI,
|
||||
for_var_desc_text=view_variable.VAR_DESC_ENABLE_OVERLAY_UI,
|
||||
switch_attr_name="sb__switch_enable_overlay_ui",
|
||||
command=lambda: switchEnableOverlayUiCallback(config_window.sb__switch_enable_overlay_ui),
|
||||
variable=view_variable.VAR_ENABLE_OVERLAY_UI
|
||||
)
|
||||
config_window.sb__enable_overlay_ui.grid(row=row, pady=0)
|
||||
row+=1
|
||||
Reference in New Issue
Block a user