From fc40c8c12f51a043b5885c6d1b8c9891a020086a Mon Sep 17 00:00:00 2001 From: Yugang Zhou Date: Sun, 10 May 2026 09:26:47 +0800 Subject: [PATCH] Restore separate game menu option panels Add dedicated Video, Sound, and Interface buttons to the custom game menu so users can access the original Blizzard option panels while the Reforged menu module is enabled. --- modules/menu/menu.lua | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/modules/menu/menu.lua b/modules/menu/menu.lua index 5cf5f1f..8e15d2d 100644 --- a/modules/menu/menu.lua +++ b/modules/menu/menu.lua @@ -6,7 +6,7 @@ DFRL:NewMod("Menu", 1, function() local Setup = { menuframe = nil, w = 200, - h = ShopFrame_Toggle and 370 or 315, + h = ShopFrame_Toggle and 430 or 375, gap = 0, space = 15, btnw = 120, @@ -148,7 +148,7 @@ end) donationBtn:Hide() end - local videoBtn = DFRL.tools.CreateButton(self.menuframe, "Options", self.btnw, self.btnh) + local videoBtn = DFRL.tools.CreateButton(self.menuframe, "Video", self.btnw, self.btnh) if ShopFrame_Toggle then videoBtn:SetPoint("TOP", donationBtn, "BOTTOM", 0, -self.space) else @@ -159,8 +159,22 @@ end) ShowUIPanel(OptionsFrame) end) + local soundBtn = DFRL.tools.CreateButton(self.menuframe, "Sound", self.btnw, self.btnh) + soundBtn:SetPoint("TOP", videoBtn, "BOTTOM", 0, -self.gap) + soundBtn:SetScript("OnClick", function() + self.menuframe:Hide() + ShowUIPanel(SoundOptionsFrame) + end) + + local interfaceBtn = DFRL.tools.CreateButton(self.menuframe, "Interface", self.btnw, self.btnh) + interfaceBtn:SetPoint("TOP", soundBtn, "BOTTOM", 0, -self.gap) + interfaceBtn:SetScript("OnClick", function() + self.menuframe:Hide() + ShowUIPanel(UIOptionsFrame) + end) + local keyBtn = DFRL.tools.CreateButton(self.menuframe, "Key Bindings", self.btnw, self.btnh) - keyBtn:SetPoint("TOP", videoBtn, "BOTTOM", 0, -self.space) + keyBtn:SetPoint("TOP", interfaceBtn, "BOTTOM", 0, -self.space) keyBtn:SetScript("OnClick", function() self.menuframe:Hide() KeyBindingFrame_LoadUI()