Skip to content

Commit

Permalink
improvement: update options and gui
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed May 4, 2023
1 parent d50d581 commit 1db7088
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ C.CharacterSettings = {

MuteAnnoyingSounds = true,
WeeklyLottery = true,

BlockStrangerInvite = false,
BlockStrangerRequest = false,
},
Combat = {
Enable = true,
Expand Down Expand Up @@ -125,6 +128,8 @@ C.CharacterSettings = {
DebuffSize = 50,
DebuffPerRow = 12,
DebuffReverse = true,
PrivateSize = 50,
PrivateReverse = true,
HideBlizzFrame = false,
},
Inventory = {
Expand Down
12 changes: 12 additions & 0 deletions src/gui/extra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,13 @@ function GUI:SetupAuraSize(parent)
[1] = { key = 'DebuffSize', value = db.DebuffSize, text = L['Size'], min = 24, max = 50, step = 1 },
[2] = { key = 'DebuffPerRow', value = db.DebuffSize, text = L['Per Row'], min = 6, max = 20, step = 1 },
},
private = {
[1] = { key = 'PrivateSize', value = db.PrivateSize, text = L['Size'], min = 24, max = 50, step = 1 },
},
layout = {
[1] = { value = 'BuffReverse', text = L['Buffs Reverse Growth'] },
[2] = { value = 'DebuffReverse', text = L['Debuffs Reverse Growth'] },
[3] = { value = 'PrivateReverse', text = L['Private Auras Reverse Growth'] },
},
}

Expand All @@ -436,6 +440,14 @@ function GUI:SetupAuraSize(parent)
createSlider(scroll, mKey, v.key, v.text, v.min, v.max, v.step, v.value, 20, offset - 130, UpdateAuraSize)
offset = offset - 65
end

scroll.groupTitle = nil

for _, v in ipairs(datas.private) do
createGroupTitle(scroll, L['Private Aura'], offset - 130)
createSlider(scroll, mKey, v.key, v.text, v.min, v.max, v.step, v.value, 20, offset - 180, UpdateAuraSize)
offset = offset - 65
end
end

-- Inventory
Expand Down
22 changes: 22 additions & 0 deletions src/gui/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,28 @@ GUI.OptionsList = {
nil,
L['Collapse objective tracker automatically when you enter the instance, and restore it when you leave the instance.'],
},
{},
{
1,
'General',
'BlockStrangerInvite',
L['Block invite from strangers'],
nil,
nil,
nil,
L['If checked, only accept invites from friends and guild members.'],
},
{
1,
'General',
'BlockStrangerRequest',
L['Block join request from strangers'],
true,
nil,
nil,
L['If checked, only popout join requests from friends and guild members.'],
},

},
[2] = { -- notification
{
Expand Down

0 comments on commit 1db7088

Please sign in to comment.