[USABILITY] Player Group Raid indicator
gaveer opened this issue ยท 3 comments
Problem
Player Group Raid indicator hide as soon i enter the game / option Turned off / Outside of the Raid / still not showing after go inside the raid
Desired solution
Try to describe the solution you are aiming for
Optional Context (e.g. Screenshots, Scribbles ...)
{
optionName = "MiscellaneousShowHidePlayerGroupIndicator",
displayName = "Hide Player Group Indicator",
frame = PlayerFrame.PlayerFrameContent.PlayerFrameContentContextual.GroupIndicator,
description = "Hides the players group indicator",
type = "toggle",
setFn = function(option)
if IsInRaid() then
hideFrame(option)
end
end,
restoreOriginalValueFn = function(option)
if IsInRaid() then
showFrame(option)
end
end,
frameHooks = {
function(option)
local frame = option.frame
if not frame.__BlizzHUDTweaksOnShowHooked then
frame:HookScript(
"OnShow",
function()
hideFrame({frame = frame})
end
)
frame.__BlizzHUDTweaksOnShowHooked = true
end
end
}
},
```
Hey, sorry for the late reply. Do you still have the issue? If not how did you resolve it? I can't reproduce it with my testasccount.
i trid to debugg the frame and it show its nil, i disable the sub module while inside the raid
and got this error
4x BlizzHUDTweaks/Miscellaneous.lua:90: attempt to index local 'veryFirstButton' (a nil value)
[string "@BlizzHUDTweaks/Miscellaneous.lua"]:90: in function <BlizzHUDTweaks/Miscellaneous.lua:85>
[string "@BlizzHUDTweaks/Miscellaneous.lua"]:174: in function `RestoreActionbarPadding'
[string "@BlizzHUDTweaks/Options/Miscellaneous.lua"]:69: in function `restoreOriginalValueFn'
[string "@BlizzHUDTweaks/Miscellaneous.lua"]:276: in function `RestoreOriginal'
[string "@BlizzHUDTweaks/Miscellaneous.lua"]:328: in function `Disable'
[string "@BlizzHUDTweaks/Options.lua"]:119: in function <BlizzHUDTweaks/Options.lua:116>
[string "=[C]"]: ?
[string "@Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:45: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:43>
[string "@Ace3/AceConfig-3.0-3/AceConfigDialog-3.0-86/AceConfigDialog-3.0.lua"]:836: in function <...nfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.lua:658>
[string "=[C]"]: ?
[string "@Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:66: in function <Ace3/AceGUI-3.0/AceGUI-3.0.lua:64>
[string "@Ace3/AceGUI-3.0-41/AceGUI-3.0.lua"]:300: in function `Fire'
[string "@Ace3/AceGUI-3.0-41/widgets/AceGUIWidget-CheckBox.lua"]:64: in function <...ns/Ace3/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua:53>
Locals:
options = <table> {
type = "actionbarpaddinggroup"
displayName = "Pet Action Bar"
restoreOriginalValueFn = <function> defined @BlizzHUDTweaks/Options/Miscellaneous.lua:64
frame = PetActionBar {
}
actionButtonName = "PetActionButtonContainer"
optionName = "MiscellaneousActionbarPaddingOverwritePetActionBar"
}
actionbar = PetActionBar {
0 = <userdata>
buttonPadding = 2
GetShowAllButtons = <function> defined @FrameXML/ActionBar.lua:179
UpdateSystemSettingAlwaysShowButtons = <function> defined @FrameXML/EditModeSystemTemplates.lua:994
UpdateMagnetismRegistration = <function> defined @FrameXML/EditModeSystemTemplates.lua:731
GetSnapOffsets = <function> defined @FrameXML/EditModeSystemTemplates.lua:609
UpdateFrameStrata = <function> defined @FrameXML/ActionBar.lua:183
IsFrameAnchoredToMe = <function> defined @FrameXML/EditModeSystemTemplates.lua:694
TrySetCompositeNumberSettingValue = <function> defined @FrameXML/EditModeSystemTemplates.lua:212
downKeys = <table> {
}
GetFixedSize = <function> defined @SharedXML/LayoutFrame.lua:156
buttonTemplate = "PetActionButtonTemplate"
GetFixedWidth = <function> defined @SharedXML/LayoutFrame.lua:148
IsShown = <function> defined @FrameXML/ActionBar.lua:282
GetSelectionOffset = <function> defined @FrameXML/EditModeSystemTemplates.lua:540
ResetToDefaultPosition = <function> defined @FrameXML/EditModeSystemTemplates.lua:254
oldGridSettings = <table> {
}
GetScaledSelectionSides = <function> defined @FrameXML/EditModeSystemTemplates.lua:532
SelectSystem = <function> defined @FrameXML/EditModeSystemTemplates.lua:763
SetFixedWidth = <function> defined @SharedXML/LayoutFrame.lua:135
GetFrameMagneticEligibility = <function> defined @FrameXML/EditModeSystemTemplates.lua:714
Update = <function> defined @FrameXML/PetActionBar.lua:119
AddLayoutChildren = <function> defined @SharedXML/LayoutFrame.lua:55
IsBelowFrame = <function> defined @FrameXML/EditModeSystemTemplates.lua:499
UpdateSystemSettingIconSize = <function> defined @FrameXML/EditModeSystemTemplates.lua:933
SetFixedSize = <function> defined @SharedXML/LayoutFrame.lua:143
HasActiveChanges = <function> defined @FrameXML/EditModeSystemTemplates.lua:381
GetScaledCenter = <function> defined @FrameXML/EditModeSystemTemplates.lua:525
DoesSettingDisplayValueEqual = <function> defined @FrameXML/EditModeSystemTemplates.lua:445
OnLoad = <function> defined @FrameXML/PetActionBar.lua:49
UpdateDisplayInfoOptions = <function> defined @FrameXML/EditModeSystemTemplates.lua:456
GetSystemName = <function> defined @FrameXML/EditModeSystemTemplates.lua:822
ProcessMovementKey = <function> defined @FrameXML/EditModeSystemTemplates.lua:39
GetSettingValueBool = <function> defined @FrameXML/EditModeSystemTemplates.lua:436
HasCompositeNumberSetting = <function> defined @FrameXML/EditModeSystemTemplates.lua:385
IsLayoutFrame = <function> defined @SharedXML/LayoutFrame.lua:36
DoesSettingValueEqual = <function> defined @FrameXML/EditModeSystemTemplates.lua:440
dividersDirty = false
MarkDirty = <function> defined @SharedXML/LayoutFrame.lua:99
ShouldResetSettingsDialogAnchors = <function> defined @FrameXML/EditModeSystemTemplates.lua:168
UpdateCooldowns = <function> defined @FrameXML/PetActionBar.lua:186
dirtySettings = <table> {
}
UpdateGridLayout = <function> defined @FrameXML/EditModeSystemTemplates.lua:870
IsToTheLeftOfFrame = <function> defined @FrameXML/EditModeSystemTemplates.lua:481
GetSettingsDialogAnchor = <function> defined @FrameXML/EditModeSystemTemplates.lua:465
hasActiveChanges = false
OnSystemLoad = <function> defined @FrameXML/EditModeSystemTemplates.lua:3
ClearFrameSnap = <function> defined @Interfac