EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-16-2009, 04:49 PM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default Window settings!

Is there a way to change a window's settings with a button AND save it. So when you log in again it is still the same?
Reply With Quote
  #2  
Unread 05-16-2009, 05:38 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

As far as there are /commands to do it the changes will save, but any property which you change via direct manipulation of the XML will only save after the user manipulates that window in whichever way (of course only insofar as said property is one that will be stored at all in the uisettings.xml).
__________________
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
  #3  
Unread 05-16-2009, 05:45 PM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

Quote:
Originally Posted by gm9 View Post
As far as there are /commands to do it the changes will save, but any property which you change via direct manipulation of the XML will only save after the user manipulates that window in whichever way (of course only insofar as said property is one that will be stored at all in the uisettings.xml).
Come again sir?? Do you mean to say if there was a /command to change the window size etc it would save. Though at the moment there is no way to do it?
Reply With Quote
  #4  
Unread 05-16-2009, 06:35 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Basically yes, but of course there's a way to do it, I'd have thought you'd see it after I told you what I did!

Pure XML settings manipulations don't save because they do not set the changed flag of the window and thus the window settings do not get dumped to the uisettings file. However, there are at least two ways to set the changed flag. The "normal" one is user manipulation. However, since we know that properties changed via /commands are saved we conclude that those /commands also set the changed flag. After the changed flag is set the entire window settings are dumped to the uisettings.

Thus it follows that if you want to manipulate the window size you'd simply change the size attribute and then you'd toggle some window property via a /command, e.g. close/reopen or lock/unlock it.
__________________
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 05-16-2009, 06:39 PM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

Well as you know! I have plenty of experience opening and closing windows!! I will try that if it does not work prepared to be bugged again!
Reply With Quote
  #6  
Unread 05-16-2009, 07:16 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Functions I tested that worked included /window_close and /window_property lock|unlock.

PS: Yours will probably be the first mod ever to implement this trick I think, I don't think anyone is using it, and tbh I never thought of doing it this way either until a couple of months ago.
__________________
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 : 05-16-2009 at 07:21 PM.
Reply With Quote
  #7  
Unread 05-16-2009, 09:28 PM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

Edit I Am Dumb

Last edited by samejima : 05-16-2009 at 09:31 PM.
Reply With Quote
  #8  
Unread 05-16-2009, 10:28 PM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

Alright I give up, I get the window to close via!

window_close MainHUD DetrimentalEffects

It closes the window. Then I camp out, I come back in and it is still closed hopeful! I then show the window and the size is no different....

Code:
OnPress="Parent.Parent.Parent.DetrimentalEffects.Size=500,20
window_close MainHUD DetrimentalEffects"
The code I am using. If I can get this to work! So many options open up for what I want to do!
Reply With Quote
  #9  
Unread 05-17-2009, 02:28 AM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

Logged out(for a while cooked dinner etc) came back deleted my button retyped it. No difference from what I can tell but seems to be working now!!! Thanks a ton sir!

Last edited by samejima : 05-17-2009 at 02:49 AM.
Reply With Quote
  #10  
Unread 06-30-2009, 06:39 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
Send a message via Yahoo to Zonx
Default

Not sure /hide_window will reliably force a save. You may have better luck using script to press the default close button.
Reply With Quote
  #11  
Unread 07-01-2009, 01:43 AM
samejima samejima is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jul 2005
Server: Unrest
Posts: 156
Default

Locking and unlocking the window is what I eventually ended up doing here is a snip it of my code.

Code:
OnPress="window_property unlock Custom RS_C2C
Parent.Parent.RS_C2C.Height=(COND ? 2 : 1) COND=(checked == true)
window_property lock Custom RS_C2C
Parent.CancelSpellCast.LocalText=COND"
That was some time ago though! Have you been on vacation? :P
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

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


All times are GMT -5. The time now is 08:55 AM.


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