Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit 06d6422

Browse files
committed
feat: Revert "feat: 屏蔽旗舰端背包、仓库搜索与对比功能"
This reverts commit 094ec07.
1 parent b25f4d4 commit 06d6422

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

MY_BagEx/src/MY_BagEx_GenericFilters.lua

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ if not X.AssertVersion(MODULE_NAME, _L[MODULE_NAME], '^27.0.0') then
1818
return
1919
end
2020
--[[#DEBUG BEGIN]]X.ReportModuleLoading(MODULE_PATH, 'START')--[[#DEBUG END]]
21-
X.RegisterRestriction('MY_BagEx_GenericFilters', { remake = true })
2221
--------------------------------------------------------------------------------
2322

2423
local O = X.CreateUserSettingsModule(MODULE_NAME, _L['General'], {
@@ -30,7 +29,6 @@ local O = X.CreateUserSettingsModule(MODULE_NAME, _L['General'], {
3029
}),
3130
xSchema = X.Schema.Boolean,
3231
xDefaultValue = true,
33-
szRestriction = 'MY_BagEx_GenericFilters',
3432
},
3533
})
3634
local D = {}
@@ -417,7 +415,7 @@ local function Unhook()
417415
end
418416

419417
local function Apply(bEnable)
420-
if bEnable and not X.IsRestricted('MY_BagEx_GenericFilters') then
418+
if bEnable then
421419
Hook()
422420
X.RegisterFrameCreate('BigBagPanel', 'MY_BAGEX', Hook)
423421
X.RegisterFrameCreate('BigBankPanel', 'MY_BAGEX', Hook)
@@ -456,18 +454,15 @@ end)
456454
end
457455

458456
function D.OnPanelActivePartial(ui, nPaddingX, nPaddingY, nW, nH, nX, nY, nLH)
459-
if not X.IsRestricted('MY_BagEx_GenericFilters') then
460-
nX = nX + ui:Append('WndCheckBox', {
461-
x = nX, y = nY, w = 200,
462-
text = _L['Generic package searcher and filters'],
463-
checked = O.bEnable,
464-
onCheck = function(bChecked)
465-
D.Enable(bChecked)
466-
end,
467-
}):AutoWidth():Width() + 5
468-
nX = nPaddingX
469-
nY = nY + nLH
470-
end
457+
nX = nX + ui:Append('WndCheckBox', {
458+
x = nX, y = nY, w = 200,
459+
text = _L['Generic package searcher and filters'],
460+
checked = O.bEnable,
461+
onCheck = function(bChecked)
462+
D.Enable(bChecked)
463+
end,
464+
}):AutoWidth():Width() + 5
465+
-- y = y + 25
471466
return nX, nY
472467
end
473468

MY_BagEx/src/PS.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ function PS.OnPanelActive(wnd)
2929
local nLH = 28
3030

3131
nX, nY = MY_BagEx_GenericFilters.OnPanelActivePartial(ui, nPaddingX, nPaddingY, nW, nH, nX, nY, nLH)
32+
nX = nPaddingX
33+
nY = nY + nLH
3234
nX, nY = MY_BagEx_Bag.OnPanelActivePartial(ui, nPaddingX, nPaddingY, nW, nH, nX, nY, nLH)
3335
nX = nPaddingX
3436
nY = nY + nLH

0 commit comments

Comments
 (0)