Warning: This question is fairly technical so if you do not know a lot about lua then you may want to stop reading here!
I have a big issue with my UI for a KgPanels script. When I press the Panel (which is a button for my UI) it will switch from DPS / Tank layout to Healer. When this happens it changes a few profiles around for me including Grid. However my problem is that some times when I switch Grid profiles, the frames are showing when they should not be or hide when they should be. To fix this I used the following Script in the OnUpdate Script area of my KgPanel:
and this one for the DPS frame:
if IsInGroup() then
This works completely find and makes the frames show instantly when switching grid profiles like it should be. HOWEVER when I change the Solo Layout from None to "BY Group 25" or anything else (from the "/grid" and Layout tab options) which should at least show my own Grid frame, the script forces it to show nothing because I am not actually in a group.
if IsInRaid() then
I was wondering if there is anything I could do to work around this issue so for example a script to find out whether or not Solo is set to anything else besides "none" and if so the code above does not take effect but if Solo is on None then it does. That's just an idea.
I have contacted the author of the Grid addon but not sure he can help me. He said to ask on a forum as it is more to do with KgPanels and mmo-champion is usually good for this stuff. Thank you so much for taking the time to read this!