EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 11-15-2006, 12:18 AM
Arremis Arremis is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 108
Default Close Button and Window Settings

I'm working on a new bank mod here and I've run into a problem. From what I see the Window Settings button and Close Window button reside inside the Window Frame. Using the window settings, hiding the frame will cause these 2 buttons to disappear as well. I didn't want these buttons hidden when the frame was hidden so I pulled them out of the frame altogether. This caused them to not work. Digging through the command list, I came upon window_close and window_settings. So, I attached these commands to the OnPress event (OnPress window_settings and OnPress window_close in the UIBuilder). Upon loading the bank mod in game, and pressing the buttons, the window settings button didn't work at all, and close window button gave me the proper use for this command is window_close <module> <name>.

Can someone tell me what <module> <name> means, and either how to keep the buttons visible when the window frame is hidden, or how to make them work outside the window frame?
Reply With Quote
  #2  
Unread 11-15-2006, 12:34 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

My suggestion for you is to restore the original default buttons.

Shove them out of the frame so they can't been seen.

Now place copies wherever you want them and give them onPress scripts that Press the default buttons.

Be sure to change the name of the copies.

The advantage of this approach is that your buttons activate the standard mechanism rather than calling some poorly supported script command that may be broaken or break in the future
Reply With Quote
  #3  
Unread 11-15-2006, 09:59 AM
Arremis Arremis is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Antonia Bayle
Posts: 108
Default

Thanks Z...you're the man
Reply With Quote
  #4  
Unread 11-15-2006, 10:44 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Actually instead of the buttons in the window frame you can add a WC_Close button, which is another standard button valid on any window. The advantage is that this will cut down on file size. You do not need to move it out of the frame, just set it to Visible=false. Call it via another button as Zonx explained.
__________________
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
  #5  
Unread 11-15-2006, 08:02 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Yep, that works. But be aware all the WC_xxx objects are decremented so could stop functioning at some point.

I am slowly converting all my old window code to use the current SOE standard objects.
Reply With Quote
  #6  
Unread 12-04-2006, 07:47 AM
thorvang thorvang is offline
A Rumbleroot Sapling
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 68
Default

why not just put a onhide="Visible=true" to the RightGrouper window?
Reply With Quote
  #7  
Unread 12-04-2006, 08:10 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Say SOE adds some hard coded routine that fidles with the window when the close button is pressed. visible="false" doesn't actually call SOE's close button handler.

Pressing the default close button via another button guards against future breakage
Reply With Quote
  #8  
Unread 12-04-2006, 08:21 AM
thorvang thorvang is offline
A Rumbleroot Sapling
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 68
Default

well, they might aswell change the frame.rightgrouper.close order what will break your handler

just tried the /window_close command. the module is the parent window while the name is the actual window. /window_close MainHUD Persona would close the persona window.

/window_settings works the same

Last edited by thorvang : 12-04-2006 at 08:26 AM.
Reply With Quote
  #9  
Unread 12-13-2006, 09:02 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Since virtually every window in the UI now uses the current frame nesting, its unlikely they will change it in a way that requires every window to have the same change.

However, they could easily implement some function that fires on close button press that wont be triggered if you close the window via script.

For example, there does seam to be some function call to save setting changes when manually moving windows or using the settings window that isn't triggered if you move a window via script.
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 02:16 AM.


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