Thread Tools Display Modes
02-24-10, 04:01 PM   #1
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,961
Ah, thanks for those images.

First off I'm glad that the MEDIUM/LOW options seem to do what you want. I will stick with the default Blizz setting for LOW though just in case.

Secondly, thanks for showing me the effect with background off. I thought I had sorted out the scroll bar effect there but mayhap amongst my other changes prior to uploading it somehow got removed. I will look into a way for that scroll bar to hide but the scrolling still to work but not sure how that will work. Worse case scenario is that the border frame will still exist but will be fully transparent instead of partially.

Thirdly, feel free to offer any other suggestions as most of the functionality in there is based on suggestions and how I personally would like it to work. However, I do not actively play WoW anymore but am able to keep my addons up to date, so the little day to day things may get overlooked ( such as your bag issue ). I generally make sure the addon does what it is supposed to do and sometimes I forget what else may get affected in the long run. So, thanks again for pointing this problem out for me.
__________________


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
 
02-24-10, 09:30 PM   #2
Nightmare_Lord
A Cliff Giant
 
Nightmare_Lord's Avatar
Join Date: Oct 2008
Posts: 70
Your welcome the bag issues what happens where ever the frame is sitting when its on High, but on Medium/Low it seems to be one with the game like screenshot 3 shows.

I working with the other person addon to get it to take control of nui frame like your does, but so far I like yours better.

Originally Posted by Xrystal View Post
Ah, thanks for those images.

First off I'm glad that the MEDIUM/LOW options seem to do what you want. I will stick with the default Blizz setting for LOW though just in case.

Secondly, thanks for showing me the effect with background off. I thought I had sorted out the scroll bar effect there but mayhap amongst my other changes prior to uploading it somehow got removed. I will look into a way for that scroll bar to hide but the scrolling still to work but not sure how that will work. Worse case scenario is that the border frame will still exist but will be fully transparent instead of partially.

Thirdly, feel free to offer any other suggestions as most of the functionality in there is based on suggestions and how I personally would like it to work. However, I do not actively play WoW anymore but am able to keep my addons up to date, so the little day to day things may get overlooked ( such as your bag issue ). I generally make sure the addon does what it is supposed to do and sometimes I forget what else may get affected in the long run. So, thanks again for pointing this problem out for me.
 
02-25-10, 01:53 AM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,961
Thank You.

I assume you are trying to get Seerah's addon to work with nUI's control of the watch frame ? After she creates her copy of the watch frame something like the following needs to be used to reparent the watchframe after making nUI relinquish control of it. The first two lines may be all you need to add with the rest somewhere in their code already in some form or another so it may take some finding.

Code:
             nUI_Movers:lockFrame( WatchFrame, false, nil ); 
	nUI_Options.movedWatchFrame = true;


	local f = WatchFrame;

	f:ClearAllPoints();
	f:SetClampedToScreen( false );
	f:SetParent(parent);
	f:SetWidth( parent:GetWidth() - 27.5 );
	f:SetPoint( "TOPLEFT", 27.5, 0 );
	f:SetPoint( "BOTTOMRIGHT", 0, 0 );
		
	-- We don't want it to be altered once we have done our thing to it
	f.ClearAllPoints = function() end;
	f.SetPoint = function() end;
	f.SetAllPoints = function() end;
__________________


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
 
02-25-10, 02:32 AM   #4
Nightmare_Lord
A Cliff Giant
 
Nightmare_Lord's Avatar
Join Date: Oct 2008
Posts: 70
yeah that looks nice, but really you does what I need it 2 do,

once you get that scroll bar to hide or like make a command to make it do what /swf background does, and make it only show up when there more quest/lines needed that the size of the frame.

example if you set its height and it only big enough to hold 5 quest with out needing to scroll and adding a 6th makes it scroll, that when the scroll bar comes out of hiding, scroll is cool just the bottom part of it (end of scroll bar) real problem is the end of the scroll bar that just sticks out on the screen where ever you put it and since I like it on the left more have it to like /swf height 700 makes the end of the scroll bar cover a buff (using nui aura buff plugin) when I get lot, like it can if I have 10 buffs per row like buff 6 gets covered, and making the frame bigger /swf height 750 put the end of the scroll bar over a nui left action button.

don't know if you know Visual Basic but if you do and know ListBox, you know how when you add more item than the size of the list box a scroll bar is auto add? maybe you can do that kinda thing for the watchframe scrollbar,

if Quest > than Height of Watch Frame then
Scrollbar.Visible = True
Else
Scrollbar. Visible = False
End If

*that something I would do like using a <, > , = operator to makes something visible or non visible. Of course not a code I know for sure can be done like that for wow* just hope that might help clearly any confusing you have on what I am trying to say lol.


Originally Posted by Xrystal View Post
Ah, thanks for those images.

First off I'm glad that the MEDIUM/LOW options seem to do what you want. I will stick with the default Blizz setting for LOW though just in case.

Secondly, thanks for showing me the effect with background off. I thought I had sorted out the scroll bar effect there but mayhap amongst my other changes prior to uploading it somehow got removed. I will look into a way for that scroll bar to hide but the scrolling still to work but not sure how that will work. Worse case scenario is that the border frame will still exist but will be fully transparent instead of partially.

Thirdly, feel free to offer any other suggestions as most of the functionality in there is based on suggestions and how I personally would like it to work. However, I do not actively play WoW anymore but am able to keep my addons up to date, so the little day to day things may get overlooked ( such as your bag issue ). I generally make sure the addon does what it is supposed to do and sometimes I forget what else may get affected in the long run. So, thanks again for pointing this problem out for me.
Originally Posted by Xrystal View Post
Thank You.

I assume you are trying to get Seerah's addon to work with nUI's control of the watch frame ? After she creates her copy of the watch frame something like the following needs to be used to reparent the watchframe after making nUI relinquish control of it. The first two lines may be all you need to add with the rest somewhere in their code already in some form or another so it may take some finding.

Code:
             nUI_Movers:lockFrame( WatchFrame, false, nil ); 
	nUI_Options.movedWatchFrame = true;


	local f = WatchFrame;

	f:ClearAllPoints();
	f:SetClampedToScreen( false );
	f:SetParent(parent);
	f:SetWidth( parent:GetWidth() - 27.5 );
	f:SetPoint( "TOPLEFT", 27.5, 0 );
	f:SetPoint( "BOTTOMRIGHT", 0, 0 );
		
	-- We don't want it to be altered once we have done our thing to it
	f.ClearAllPoints = function() end;
	f.SetPoint = function() end;
	f.SetAllPoints = function() end;
 
02-25-10, 09:42 AM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,961
Yeah it works kinda the same way in lua. But I am not sure the functionality is hidden as well. So if I hide the scroll bar it might stop the scrolling.

However, the scrollbar is linked to the scroll frame size and not the main frame itself. You can have the main frame any size you like ( within reason ) and scroll to access the other watchable quests. That was the whole reason for this addon, to allow the frame to be resizeable for visible decision but allow more than 2 or 3 quests to be tracked as required by users.

Try playing with /swf scroll x as well /swf height x and see the result there. I think if the scroll height is smaller than the frame height the bar will automatically disappear otherwise it will stay there.

Edit 1 : Actually, just looked at my code and it seems I have already added a test in there to hide the scrollbar if there is nothing to scroll, as in the scroll height is less than the frame height.

-- If the Scroll Size is less than the frame itself then hide the scrollbar as there is nothing to scroll
Code:
	if ( addonData["ScrollFrame"].ScrollSize > addonData["Frames"].SWF_WatchFrame:GetHeight() ) then
		addonData["Frames"].SWF_WatchFrame.ScrollBar:Show();
	else
		addonData["Frames"].SWF_WatchFrame.ScrollBar:Hide();
	end
Edit 2: Also, despite several placements of the following code it still reverts back to containing a scrollbar for some reason. Perhaps default functionality for the scrollframe template * shrugs *. But I can tell you that at the points where it does work the scrolling still works so it is feasibly possible. I just can't figure out which areas I have missed if it is indeed somewhere in my code that is overriding it. Hopefully during the course of the next update changes I'll track down the spots I need to add it to, to work.

Code:
	if ( not addonData["ScrollFrame"].BackGround.Enabled ) then
		f.ScrollBar:Hide();
	end
__________________


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

Last edited by Xrystal : 02-25-10 at 10:10 AM.
 
02-25-10, 11:04 AM   #6
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
You might be able to work around the issue by making the scroll bar transparent [ SetAlpha(0) ] that way it isn't shown, but it's still active.
__________________

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/
 
02-25-10, 12:34 PM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,961
That might be the easiest solution. Add an option to have a transparent scroll bar and not worry about it at all 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: Plugin Support » NUI Minimap Quest Objectives Bug?

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