Thread Tools Display Modes
01-23-10, 05:17 PM   #81
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
You should be able to resize the scroll child...

Code:
local function myWatchFrame_Collapse(self)
    print("In my Collapse Function");
    if ( WatchFrameScrollFrame and not tFlags.nUI_InfoPanel ) then   
    
        WatchFrameScrollFrame:SetHeight( WatchFrame:GetHeight() );
        WatchFrame_Container.c:SetHeight( 2 );
    end
end

local function myWatchFrame_Expand(self)
    print("In my Expand Function");
    if ( WatchFrameScrollFrame and not tFlags.nUI_InfoPanel ) then        
        WatchFrameScrollFrame:SetHeight( tValues.height );
        WatchFrame_Container.c:SetHeight( 1000 );
    end
end

hooksecurefunc( "WatchFrame_Collapse", myWatchFrame_Collapse );
hooksecurefunc( "WatchFrame_Expand", myWatchFrame_Expand );
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
01-23-10, 05:32 PM   #82
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Rofl, setting it to anything lower than 75 seems to make the whole watchframe title and button disappear

Yep, tried putting container to 75 instead of watchframe height and nada. But scrolling sorted.

Ended up adding this at the top of the file. And works a charm.

Code:
local function Collapse(self)
	if ( WatchFrameScrollFrame and not tFlags.nUI_InfoPanel ) then	
		WatchFrameScrollFrame:SetHeight( WatchFrame:GetHeight() );
		WatchFrameScrollFrame.Child:SetHeight( 75 );
	end
end
local function Expand(self)
	if ( WatchFrameScrollFrame and not tFlags.nUI_InfoPanel ) then		
		WatchFrameScrollFrame:SetHeight( tValues.height );
		WatchFrameScrollFrame.Child:SetHeight( tValues.scrollheight );
	end
end
hooksecurefunc( "WatchFrame_Collapse", Collapse );
hooksecurefunc( "WatchFrame_Expand", Expand );
Screenie time
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_012310_232843.jpg
Views:	596
Size:	244.4 KB
ID:	3891  
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-23-10, 06:07 PM   #83
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Okay, final tweak for the day, as I'm back into playing with the other half

It needs work but I can use a slash command to toggle the frame into an infopanel and out of the infopanel. Now I just need to get it so it removes the infopanel from the display system when it isn't being used and make the frame unmovable. Getting there though. Something to do next time along with resizing and locking/unlocking and using saved variables
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-23-10, 06:40 PM   #84
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
It may be much harder to do that (remove it from the rotation).
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
01-25-10, 06:13 AM   #85
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Originally Posted by spiel2001 View Post
It may be much harder to do that (remove it from the rotation).
Yep, so it would seem.

Okay, so far, it remembers all sorts of data such as position when collapsed and expanded so you can store it in different locations based on that condition. It restores the frame back to its original position when you toggle it out of the infopanel and does everything else I expect it to.

Now this is the weird part. If the infopanel doesn't exist in the first instance ( new addon so by default not an infopanel ) and then you toggle it, it will enabled the panel and put it in there. However, I can't do the reverse. I either come across a container = nil error or it totally ignores it. And thats with using any combination of the setEnabled, enabled and active values to no avail.

I did find one way of hiding the infopanel stuff but it hid the whole stuff, button as well, which is fine, if I can select the panel previous or even the first panel in the list, but can't find a table that stores that information.

Well, thats enough for today, rofl, woke up after 4hrs sleep and spent 4 hrs doing this .. rofl, better get some more sleep or Ill be asleep when he wants to play
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-25-10, 12:25 PM   #86
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
ooh, forgot new screenshots.

Oh, and also. Reparented title and button to my frame so that it could shrink down more.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_012510_094916.jpg
Views:	592
Size:	226.2 KB
ID:	3901  Click image for larger version

Name:	WoWScrnShot_012510_094914.jpg
Views:	597
Size:	232.5 KB
ID:	3902  
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-25-10, 02:29 PM   #87
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
That's awesome
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
01-25-10, 03:00 PM   #88
Marthisdil
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 363
Sweeeeeeeet
__________________

Marth



 
01-25-10, 03:10 PM   #89
whereswaldo
A Chromatic Dragonspawn
 
whereswaldo's Avatar
Join Date: May 2008
Posts: 167
I want it now!!!!!!!

 
01-25-10, 03:15 PM   #90
Marthisdil
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 363
Xyrstal - can't wait to see it workin in an infopanel plugin

Want me to send you some cookies?
__________________

Marth



 
01-25-10, 05:58 PM   #91
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Originally Posted by Marthisdil View Post
Xyrstal - can't wait to see it workin in an infopanel plugin

Want me to send you some cookies?
Rofl, well I have a screenshot of it in an infopanel, just trying to get it so it can be toggled. But darn it. Maybe it will be one of those things where you change stuff and it says 'This will take effect the next time you log in ' rofl.
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_012310_214246.jpg
Views:	595
Size:	251.3 KB
ID:	3903  
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-25-10, 06:04 PM   #92
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Originally Posted by whereswaldo View Post
I want it now!!!!!!!

Patience grasshopper. Rofl, soon

Tasks to do :
1. Tackle InfoPanel Toggling Problem, one way or another rofl.
2. Set up Either Slash Commands or a UI for several options ( width/height/scroll height/back color, border color, alpha level, font color, font size, maybe even change the font, but not sure yet on that, I try to stick to built in fonttypes.
3. Set up Localisation.
4. Retest in both nUI, non nUI and InfoPanel toggle versions to make sure it still works fine rofl.
5. Ready to go
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-25-10, 06:23 PM   #93
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Originally Posted by Xrystal View Post
Rofl, well I have a screenshot of it in an infopanel, just trying to get it so it can be toggled. But darn it. Maybe it will be one of those things where you change stuff and it says 'This will take effect the next time you log in ' rofl.
In nUI5, it really is going to have to be done that way I'm afraid.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
01-25-10, 06:34 PM   #94
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Originally Posted by spiel2001 View Post
In nUI5, it really is going to have to be done that way I'm afraid.
Its no biggie. I just like it neat. Can enable it on the fly but not disable it so it will just mean users will have to have a black panel in their sequence until they next log I'll test it some more to make sure its at least consistent with the changes and go from there.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-25-10, 08:14 PM   #95
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
I'm curious if enabling it on the fly works, even... I suspect the rotation will be screwed up... I could be wrong though.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
01-25-10, 08:18 PM   #96
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Hmm, maybe, thats why I want to test to make sure but the stuff I did today didn't look any different than if I had enabled it and ran reloadui to update it.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-26-10, 05:09 AM   #97
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Yeah... I'd have to go back and review the code for the info panels, but if memory serves me correctly, nUI is setting up some secure frame code to build the rotation list and such. Manipulating that could cause issues, but it may be okay, as well.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
01-26-10, 02:51 PM   #98
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Okay, while all the game servers were down, well apart from Aion but we don't play that much at the moment rofl, I decided to go through the code again and tidy it up, rename some stuff to make it more unique/memorable etc. And added the slash commands I could think of. So here goes.

Changeable Values So Far :
InfoPanel docking toggle - defaults to false - needs ReloadUI()
BackDrop display toggle - defaults to false
Width value - defaults to 400
Height value - defaults to 500
Scroll value - defaults to 1000
Lock toggle - defaults to false
Hide toggle - defaults to false
Reset command - sets all values to defaults - needs ReloadUI()

All changed via slash commands at the moment but probably will implement a UI version if it gets too configurable and users request it.

Automatically Updated Values So Far :
Collapsed State for Scrolling Frame Display
Anchor Positions based on Collapsed State and Users Positioning
nUI Loaded based on whether nUI is active in that session

Any other ideas guys ? I don't want to make it too similar to Seerah's or Amenity's watchers though so don't get carried away
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
01-26-10, 02:55 PM   #99
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Keep in mind that when running in InfoPanel mode that height and width are being controlled by nUI and the layout engine, not your user options... so those values should have zero effect (be ignored) while in InfoPanel mode and the data for those values taken from the info panel contain itself as per normal.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
01-26-10, 03:06 PM   #100
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,927
Originally Posted by spiel2001 View Post
Keep in mind that when running in InfoPanel mode that height and width are being controlled by nUI and the layout engine, not your user options... so those values should have zero effect (be ignored) while in InfoPanel mode and the data for those values taken from the info panel contain itself as per normal.
Yeppers, all handled by the update functions to the frame. InfoPanel mode = ignore hide/collapsed state/width/height etc. Hmm, quickly checks code .. yeah, it definitely does that ... scrambles away to make a note to check these things when I next dabble with the code rofl
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Developer Chat » Quest Tracker Info Panel

Thread Tools
Display Modes

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