完成多出修改
修复拾取界面点击无效问题 修复宠物训练界面不显示训练点问题 新增天赋分享到聊天界面 修复飞行界面无法关闭问题 修复术士宠物的显示问题 为天赋界面添加默认数据库支持 框架现在也可自主选择是否启用 玩家框架和目标框架可取消显示3D头像以及透明度修改 背包和银行也添加透明度自定义支持 优化tooltip性能和背包物品显示方式 修复布局模式在ui缩放后不能正常定位的问题 添加硬核模式危险和死亡的工会通报 添加拾取和已拾取的框体 等等
This commit is contained in:
24
GameMenu.lua
24
GameMenu.lua
@@ -68,8 +68,6 @@ end
|
||||
--------------------------------------------------------------------------------
|
||||
local MENU_BUTTON_ICONS = {
|
||||
["GameMenuButtonContinue"] = "exit",
|
||||
["GameMenuButtonOptions"] = "settings",
|
||||
["GameMenuButtonSoundOptions"] = "sound",
|
||||
["GameMenuButtonUIOptions"] = "talent",
|
||||
["GameMenuButtonKeybindings"] = "menu",
|
||||
["GameMenuButtonRatings"] = "backpack",
|
||||
@@ -219,8 +217,6 @@ end
|
||||
local BUTTON_ORDER = {
|
||||
"GameMenuButtonContinue",
|
||||
"__NANAMI_SETTINGS__",
|
||||
"GameMenuButtonOptions",
|
||||
"GameMenuButtonSoundOptions",
|
||||
"GameMenuButtonUIOptions",
|
||||
"GameMenuButtonKeybindings",
|
||||
"GameMenuButtonRatings",
|
||||
@@ -229,6 +225,11 @@ local BUTTON_ORDER = {
|
||||
"GameMenuButtonQuit",
|
||||
}
|
||||
|
||||
local HIDDEN_BUTTONS = {
|
||||
"GameMenuButtonOptions",
|
||||
"GameMenuButtonSoundOptions",
|
||||
}
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Frame Styling (called once at PLAYER_LOGIN, before first show)
|
||||
--------------------------------------------------------------------------------
|
||||
@@ -268,6 +269,18 @@ local function StyleGameMenuFrame()
|
||||
-- Create settings button
|
||||
local sBt = CreateSettingsButton(GameMenuFrame)
|
||||
|
||||
-- Hide removed buttons (Video / Sound)
|
||||
for _, name in ipairs(HIDDEN_BUTTONS) do
|
||||
local btn = _G[name]
|
||||
if btn then
|
||||
btn:Hide()
|
||||
btn:SetWidth(0.001)
|
||||
btn:SetHeight(0.001)
|
||||
btn:ClearAllPoints()
|
||||
btn:SetPoint("TOPLEFT", GameMenuFrame, "TOPLEFT", 0, 0)
|
||||
end
|
||||
end
|
||||
|
||||
-- Build a lookup of known names for quick check
|
||||
local knownSet = {}
|
||||
for _, name in ipairs(BUTTON_ORDER) do
|
||||
@@ -275,6 +288,9 @@ local function StyleGameMenuFrame()
|
||||
knownSet[name] = true
|
||||
end
|
||||
end
|
||||
for _, name in ipairs(HIDDEN_BUTTONS) do
|
||||
knownSet[name] = true
|
||||
end
|
||||
|
||||
-- Collect all child buttons that are NOT the settings button
|
||||
local children = { GameMenuFrame:GetChildren() }
|
||||
|
||||
Reference in New Issue
Block a user