From a44fe42a05049eefad039f63bfa83e626b6e10ec Mon Sep 17 00:00:00 2001 From: Dreomite Date: Thu, 29 Apr 2021 10:18:33 +0300 Subject: [PATCH 1/3] [Mod Options] Fix invisible popup widgets in VT2 --- vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua index ac94792..e72c63f 100644 --- a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua +++ b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua @@ -2919,7 +2919,7 @@ VMFOptionsView.initialize_settings_list_widgets = function (self) self.definitions.scenegraph_2nd_layer[scenegraph_id_start_2nd_layer] = { size = {0, 0}, - position = {0, 0, 0}, + position = {0, 0, 510}, offset = {0, 0, 0}, vertical_alignment = "bottom", From 4e4cf3ef44d82072dc88871f5de1dc8c5f60e946 Mon Sep 17 00:00:00 2001 From: Dreomite Date: Thu, 29 Apr 2021 10:20:08 +0300 Subject: [PATCH 2/3] [Mod Options] Fix broken cursor stack in VT2 --- vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua index e72c63f..bdbfc4b 100644 --- a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua +++ b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua @@ -4216,7 +4216,7 @@ end VMFOptionsView.on_enter = function (self) - if ShowCursorStack.stack_depth == 0 then ShowCursorStack.push() end + if ShowCursorStack.stack_depth == 0 or not VT1 then ShowCursorStack.push() end local input_manager = self.input_manager input_manager.block_device_except_service(input_manager, "vmf_options_menu", "keyboard", 1) From bf8b12d72c73ec2b997df9609f01b62297abfc49 Mon Sep 17 00:00:00 2001 From: Dreomite Date: Thu, 29 Apr 2021 10:22:26 +0300 Subject: [PATCH 3/3] Fix polluted scenegraph node VT2 warnings --- vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua index bdbfc4b..de31a69 100644 --- a/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua +++ b/vmf/scripts/mods/vmf/modules/ui/options/vmf_options_view.lua @@ -51,7 +51,6 @@ local scenegraph_definition = { parent = "sg_root", - scale = "fit", horizontal_alignment = "center", vertical_alignment = "center" }, @@ -2920,7 +2919,6 @@ VMFOptionsView.initialize_settings_list_widgets = function (self) self.definitions.scenegraph_2nd_layer[scenegraph_id_start_2nd_layer] = { size = {0, 0}, position = {0, 0, 510}, - offset = {0, 0, 0}, vertical_alignment = "bottom", horizontal_alignment = "left"