EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 10-16-2007, 07:42 PM
Prefader Prefader is offline
A Sea Turtle
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Blackburrow
Posts: 32
Angry Hotkey bank_page issue

Wow, I'm just all over these boards this week.

Ok, so I'm trying to do the following:

I prefer my hotkey windows to be arranged 4 high and 3 wide, with the page buttons at the top, and centered horizontally. Once upon a time, this was a simple matter! Not so anymore, though. I've tried a few different approaches:

1) Just move the bank_page to the top of the window, and re-orient the iconbank to fit under it. This only sort of works - I end up with a nice gap at the top of the window where the bank_page SHOULD appear, but the buttons appear in the middle of the window. Now, all of the elements in the bank_page window are set to align to center,top - but it appears that the game has the bank_page hardcoded to vertical center.

2) In light of that possibility, I tried making the bank_page fit the window totally, both vertically and horizontally, and set pack_size to a,a. This fixed the location of the buttons in the bank page, but completely hosed the rest of the window's layout. I'm guessing that the iconbank doesn't like to intersect the bank_page, but I can't even begin to understand what sort of math the iconbank was under the influence of. Try it yourself - you'll be amazed.

3) I tried doing what gm9 has done in ProfitUI, and added the onshow and onhide code from that hotkey window to mine, in order to get around the hardcoded vertical size of the hotkey window. This gave me the exact same results as I had in example 1.

4) On a whim, I then tried making the bank_page the full width of the window, and just reducing the height. Same result, as would be expected.

I really don't know what's going on here. Can anybody produce a hotkey window with the bank_page at the top, and centered horizontally? I highly suggest you try it yourself - it's maddening!
Reply With Quote
  #2  
Unread 10-16-2007, 08:44 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

It seems the BankPage location is recalculated each time you change the hotbar window size, so you may have to reset it OnHoverIn.

Quick hack into my hotbar window to make it work:

Code:
<?xml version="1.0" encoding="utf-8"?>
<Page clientmarginFrame="10,10,5,10" clientmarginNone="10,10,5,10" eq2usescomwndcontrols="true" Location="307,717" Name="Hotkey" OnHoverIn="BankPage.Location=Grab2ResizeDummyN.Placer.Location" OnShow="MinimumSize=&apos;0,0&apos;
VerticalSizeOf40ResizeBugAndOnShowNotWorkingOnNewHotbarOpenBugWorkaround.Size=IconPage.Icons.Size
IconsSize=IconPage.Icons.Size
Size=VerticalSizeOf40ResizeBugAndOnShowNotWorkingOnNewHotbarOpenBugWorkaround.RealHotkeySize.Size
IconPage.Icons.Size=IconsSize" PackLocation="npn,fff" PackLocationProp="0307/1024,-019/0001" PackSize="f,f" PackSizeProp="0002/0003,0002/0003" ScrollExtent="396,32" Size="396,32" UserMovable="true" UserResizable="true" version="2.0">
<Page Name="Grab2ResizeDummyN" PackLocation="left,top" PackLocationProp="0000/0001,0000/0001" PackSize="a,f" PackSizeProp="0000/0001,0002/0003" ScrollExtent="396,1" Size="396,1">
<Button Name="Placer" PackLocation="center,top" Size="12,1"/>
</Page>
<Page Name="Grab2ResizeDummyW" PackLocation="left,top" PackLocationProp="0000/0001,0000/0001" PackSize="f,a" PackSizeProp="0002/0003,0000/0001" ScrollExtent="1,32" Size="1,32"/>
<Page Location="395,0" Name="Grab2ResizeDummyE" PackLocation="right,top" PackLocationProp="-001/0001,0000/0001" PackSize="f,a" PackSizeProp="0002/0003,0000/0001" ScrollExtent="1,32" Size="1,32"/>
<Page Location="0,31" Name="Grab2ResizeDummyS" PackLocation="left,bottom" PackLocationProp="0000/0001,-001/0001" PackSize="a,f" PackSizeProp="0000/0001,0002/0003" ScrollExtent="396,1" Size="396,1"/>
<Page AbsorbsInput="false" Name="BankPage" OnHide="Parent.MinimumSize=&apos;0,0&apos;" OnShow="Location=Parent.Grab2ResizeDummyN.Placer.Location Parent.MinimumSize=&apos;0,0&apos;" ScrollExtent="396,32" Size="396,32">
<Text AbsorbsInput="false" Color="#F0D080" Font="/ProfitUI_Styles.Fonts.FontArial12T" LocalText="10" Location="0,9" Name="CurrentBank" ScrollExtent="12,14" ShadowStyle="/ShadowStyles.BlackOutlineNoShadow.Outline2" Size="396,14" TextAlignment="Center" TextAlignmentVertical="Center">10</Text>
<Checkbox AbsorbsInput="false" LocalTooltip="Show move target" Location="0,11" Name="ToggleMoveTarget" OnSet="Parent.Parent.IconPage.MoveButton.Visible=true
Tooltip=&apos;Hide move target&apos;" OnUnset="Parent.Parent.IconPage.MoveButton.Visible=false
Tooltip=&apos;Show move target&apos;" ScrollExtent="12,10" Size="12,10" Tooltip="Show move target" />
<Button AbsorbsInput="false" LocalText="Up" LocalTooltip=":b7d61af6404eacdc:Previous Bank" Location="193,22" Name="DownArrow" OnPress="Parent.Parent.Refresh_ButtonLabels.Activated=true" ScrollExtent="10,10" Size="10,10" Style="/ProfitUI_Styles.ButtonStyles.BankSelector_down" Tooltip=":b7d61af6404eacdc:Previous Bank">Up</Button>
<Button AbsorbsInput="false" LocalText="Dn" LocalTooltip=":b7d61af6b99ebb95:Next Bank" Location="193,0" Name="UpArrow" OnPress="Parent.Parent.Refresh_ButtonLabels.Activated=true" ScrollExtent="10,10" Size="10,10" Style="/ProfitUI_Styles.ButtonStyles.BankSelector_up" Tooltip=":b7d61af6b99ebb95:Next Bank">Dn</Button>
</Page>
<Button Name="BankPageToggle" OnHoverIn="Parent.BankPage.Visible=true" OnHoverOut="Parent.BankPage.Visible=false" Opacity="0.000" PackLocation="nfn,cfc" PackLocationProp="0000/0001,0000/0001" PackSize="f,p" PackSizeProp="0002/0003,0032/0032" ScrollExtent="14,32" Size="14,32" />
<Page Location="12,0" Name="IconPage" PackSize="a,a" PackSizeProp="0012/0001,0000/0001" ScrollExtent="384,32" Size="384,32">
<Image Activated="true" GetsInput="true" LocalTooltip="Move/Access right-click menu here" Location="372,20" Name="MoveButton" OnHoverIn="Parent.Parent.UserResizable=false" OnHoverOut="Parent.Parent.UserResizable=true" PackLocation="right,bottom" PackLocationProp="-012/0001,-012/0001" ScrollExtent="12,12" Size="12,12" SourceRect="122,476,136,490" SourceResource="/images/window_elements_generic.dds" Tooltip="Move/Access right-click menu here" UserScrollable="false" Visible="false"/>
<IconBank Dragable="true" Font="/ProfitUI_Styles.Fonts.FontArial13T" FrameColor="#B5B5B5" IconFramePadding="0" IconPadding="0" IconStyle="/IconStyles.button" Name="Icons" PackSize="a,a" PackSizeProp="0000/0001,0000/0001" RenderFrame="true" RenderOutlines="true" ScrollExtent="384,32" Size="384,32" TextColor="#FFFFFF" TextMargin="2,-1,2,-2" TreatAsButton="true"/>
</Page>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Enabled="false" GetsInput="false" Name="WC_Backdrop" PackSize="p,p" PackSizeProp="0396/0396,0032/0032" ScrollExtent="396,32" Size="396,32"/>
<Page Name="WC_Frame" OnHide="Parent.BankPageToggle.Visible=true" OnShow="Parent.BankPageToggle.Visible=false" PackSize="a,a" PackSizeProp="0000/0001,0000/0001" ScrollExtent="396,32" Size="396,32" Visible="false"/>
<Page Location="4000,4000" Name="VerticalSizeOf40ResizeBugAndOnShowNotWorkingOnNewHotbarOpenBugWorkaround" PackSize="a,a" ScrollExtent="384,32" Size="384,32">
<Page Name="RealHotkeySize" PackSize="a,a" ScrollExtent="396,32" Size="396,32"/>
</Page>
</Page>
There is almost certainly a more elegant solution but I'm way too tired right now to even consider thinking about it.

PS: Didn't run into your problems under 2), likely because my window uses a number of workarounds around the hardcoding already...
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 10-16-2007 at 08:46 PM.
Reply With Quote
  #3  
Unread 10-17-2007, 10:59 AM
Prefader Prefader is offline
A Sea Turtle
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Blackburrow
Posts: 32
Default

Wow - I'm gonna need a little time to pour over that and understand what's happening. I like the way you've doc'd the workarounds right there in the code like that.
Reply With Quote
  #4  
Unread 10-18-2007, 12:57 PM
Prefader Prefader is offline
A Sea Turtle
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Blackburrow
Posts: 32
Default

Hmm, that doesn't work for me. The bank_page still appears centered vertically for me.

Also, It seems to kill my framerate.

Anyway, I've decided to go with the bank_page on the side, like it would normally appear, and just trimmed out the deadspace. Close enough, I guess.

Thanks once again for the help!
Reply With Quote
  #5  
Unread 10-18-2007, 02:13 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Strange, that code moved it to the top OnHoverIn for me. But ok.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #6  
Unread 10-19-2007, 10:56 AM
Prefader Prefader is offline
A Sea Turtle
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Blackburrow
Posts: 32
Default

Hmmm - I'm just being impatient, I think. I logged in with your code in my hotkey window (minus your styles) and didn't bother mousing over to see what was going on. Not thinking things through - sorry about that. I'll have another look at it.

Also, I'm aware that there's a LOT going on in your UI that might cause it to work poorly if I try to pull code from yours and insert it into mine. No doubt this was the cause of the framerate drop I saw.

Thanks again for the help - I'll keep working with what you've given me.
Reply With Quote
Reply



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
Forum Jump


All times are GMT -5. The time now is 03:35 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI