Thread Tools Display Modes
09-09-11, 08:45 AM   #1
FaulTier
A Theradrim Guardian
 
FaulTier's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2009
Posts: 61
Grid - Change FrameSize with Layout

Hey everybody!

At the moment I'm trying to do the follwing:
I want Grid to change the height of the raidframes depending on of the chosen layout. To be more specific, I want the following:
If the actual layout is 'Group', i want the height of my group-member-frames to be 70.
If the actual layout is '10 men raid', the height should be e.g. 35.
25 Men Raid/Batleground -> height = 21

So the height shouldn't be connected with my actual groupmembers, but my chosen layout.

Is there a way to embed the frameheight in a layout @ GridLayoutLayout.lua?

Greetz, Fauli
__________________
  Reply With Quote
09-10-11, 03:55 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
No. You will need to set up multiple profiles, and either switch between the profiles manually, or use one of the numerous plugins that auto-switch your profile based on preset conditions.
  Reply With Quote
09-10-11, 04:36 AM   #3
FaulTier
A Theradrim Guardian
 
FaulTier's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2009
Posts: 61
Geez, thought so.

Any addon you'd recommend to use?

Because I'm using an UI, which has two different layouts, based on layoutchanging ingame. That's my scheme:
Code:
Grid ----------------- Heal-Layout
      \                           \
        DD-Layout                  5-Men-Group
                 \                 10-Men-Raid
                  5-Men-Grouo      AnyRaidSizeAbove
                  AnyRaidSize
But maybe i will exchange Grid with oUF. Just need to find a way to make it grid a like. (FrameSize depending on Group Size should be possible with "if GetPartyMembers() <= 10 then .... elseif .... end", shouldn't it?)

Another Idea would be to edit the savedvariable of grid.
If Im right, Grid is saving it's profiles @/WTF/Account/SAvedVariables/ and the frame size is saved within the profiles.
So it should be possible to edit the part with the frame size adding that indicates the raidsize..
Let's see if i can do sowmthing about that
__________________

Last edited by FaulTier : 09-10-11 at 06:52 AM.
  Reply With Quote
09-10-11, 07:04 AM   #4
FaulTier
A Theradrim Guardian
 
FaulTier's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2009
Posts: 61
Ok, editing the savedvariable doesn't wor - i forgot the it will be 'corrected' after ervery log in/off and /reload...
__________________
  Reply With Quote
09-10-11, 10:19 PM   #5
Rigorous
Noggenfogger Anonymous
 
Rigorous's Avatar
Join Date: Jul 2006
Posts: 420
Originally Posted by Phanx View Post
No. You will need to set up multiple profiles, and either switch between the profiles manually, or use one of the numerous plugins that auto-switch your profile based on preset conditions.
And where would one find one of those numerous plugins? I've been looking....haven't found one here, at wowace or at Curse. At least nothing that I could identify as doing that specifically.
__________________
"I guess I kinda lost control, because in the middle of the play I ran up and lit the evil puppet villain on fire. No, I didn't. Just kidding. I just said that to help illustrate one of the human emotions, which is freaking out. Another emotion is greed, as when you kill someone for money, or something like that. Another emotion is generosity, as when you pay someone double what he paid for his stupid puppet." - Jack Handy

Last edited by Rigorous : 09-11-11 at 12:56 AM. Reason: clarity
  Reply With Quote
09-11-11, 05:06 AM   #6
FaulTier
A Theradrim Guardian
 
FaulTier's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2009
Posts: 61
Yip, same goes for me.
Can't find any PlugIn, which changes the Profile based on Raid-Size.

So, need to go with oUF_Grid.... Will be 'interesting' :/
__________________
  Reply With Quote
09-11-11, 02:17 PM   #7
Rigorous
Noggenfogger Anonymous
 
Rigorous's Avatar
Join Date: Jul 2006
Posts: 420
I've found several that change the frame size, but that does not address the issue of altering unit size based on raid size.

What exactly is the point of modifying the frame size based on raid size? The only reason I can think of (and I'm admittedly far from an expert...just a long-time add-on nerd) is in case you use it to parent a kgpanel to? I'm just curious what purpose it serves.

I did find GridDynamicZoneSwitch which would theoretically serve at least my purposes, but it has been abandoned according to its wowace page. Also found GridConfigurableLayouts but this looks to provide a far deeper level of functionality than I personally am looking for.

Last edited by Rigorous : 09-11-11 at 02:37 PM. Reason: identified two potentially useful plug-ins
  Reply With Quote
09-11-11, 02:49 PM   #8
FaulTier
A Theradrim Guardian
 
FaulTier's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2009
Posts: 61
I want to use the same space for 5-Men-Groups, 10-men-raids and 25-raids, therefore the framesize needs to be resized.

It's mostly for optical reasons...
__________________
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Grid - Change FrameSize with Layout


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off