EQ2Interface.com
Search Downloads


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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 01-21-2005, 08:31 PM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default Blocking Escape

Blocking Escape(or your custom key) from closing windows without blocking all other windows or widows under blocked window:

It seems that the escape key only closes windows with a WC_CloseButton (with the exception of the ChatWindows, maybe others)
So to block it rename the close button to something else and change the OnPress to close the window..

I made a map window(Attached) with a togglable escape key blocker..

The steps I took in UI builder are:
1. I renamed WC_CloseButton to Close
2. I moved Close to the WC_Titlebar page (So it disappears with titlebar)
3. I set the OnPress event to:
Code:
Parent.Parent.Visible=false
Escape is now blocked..

To set up the toggle:
1. I added a button named BlockEscOn to WC_Titlebar
2. I set the OnPress to:
Code:
Visible=false
Parent.BlockEscOff.Visible=true

Parent.Close.IsCancelButton=false
3. Set BlockEscOff.Visible=true

4. I added a button named BlockEscOff to WC_Titlebar and lined it up with BlockEscOn
5. I set the OnPress to:
Code:
Visible=false
Parent.BlockEscOn.Visible=true

Parent.Close.IsCancelButton=true
6. Set BlockEscOn.Visible=false
Attached Files
File Type: zip mainhud_map_escapeblock_switch.zip (11.1 KB, 315 views)

Last edited by Talyns : 01-21-2005 at 10:02 PM.
Reply With Quote
  #2  
Unread 01-21-2005, 09:01 PM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

Woo! Awesome discovery and wonderful that it's so simple to implement. Thank you for this writeup.

Quib
Reply With Quote
  #3  
Unread 01-21-2005, 09:59 PM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

Imadruid figured it out like over a month ago..
http://www.eq2interface.com/forums/s...2&postcount=15

I just reread the post and it gave me the idea to change the name, etc
Reply With Quote
  #4  
Unread 01-24-2005, 11:05 AM
Talyns's Avatar
Talyns Talyns is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Everfrost
Posts: 604
Default

The toggle only works for the escape key.. If you set a custom key to close the windows, the windows using IsCancelButton do not close with the custom key..

The first 3 steps is still a good way block the close key though..
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 04:23 PM.


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