EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-17-2006, 07:33 PM
zeppelin1 zeppelin1 is offline
A Young Mystail Rat
 
Join Date: Aug 2005
Server: Antonia Bayle
Posts: 2
Default Windows properties

Hi All,
Is it possible to access (view) and set window properties in game? What my goal is to make macros that can move my various hud windows around depending on what I am doing. Any ideas appreciated.

Thanks,
z
Reply With Quote
  #2  
Unread 05-17-2006, 09:33 PM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default

Sort of. Not pretty or elegantly.

Really, the only interaction that a macro can have with the UI is via /show_window and /hide_window commands.

So, if you wanted to move the clock window to 400,400 on your screen, for example - you could add an element to the clock window called "Moveto400400" or whatever and set its visibility to false.

Then you could have your ingame macro issue a "/show_window MainHUD.Clock.Moveto400400" command.

You set the OnShow of your "Moveto400400" to

parent.Location=400,400
Visible=false

Then you could from a macro move your clock. But you'd have to have elements for each position you want to move that window to.

In general, I would say that you'd not get the kind or results you want without way too much effort. But it is technically possible.
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
Reply With Quote
  #3  
Unread 05-18-2006, 01:26 AM
zeppelin1 zeppelin1 is offline
A Young Mystail Rat
 
Join Date: Aug 2005
Server: Antonia Bayle
Posts: 2
Default

Thank you for the explaination. Also, is there a way to view a parameter in game? I know you mention you cant move the window directly, but can you type something like: /window_property mainhud.clock.location

Can it be done in OhShow event code? You could do something interesting like dock another window next to the one your opening.

Thanks,
z
Reply With Quote
  #4  
Unread 05-18-2006, 08:38 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

Tricks I've found handy for this sort of stuff...

1) An ingame window can be made with text input boxes for "object path", "Property name" and "Value". A button on this window can then execute a script to set the value of any property of any UI object. This will in fact move windows, change colors, etc.

2) A similar window can be created that displays the value of any input path and property.

That being said, I think the easiest method for swapping window arangements is to arange everything for 1 layout. Camp, dupe and rename your settings file. Repeate for each setup. This should give you seperate settings files for each layout. Now you can load those settings files as needed.
Reply With Quote
  #5  
Unread 05-18-2006, 11:17 AM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default

Yeah, Zonx, thinking on it, I was just about to suggest to the OP that he look into the /load_uisettings command as it would likely do what he wanted a lot easier. But you beat me to it.
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
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 09:23 AM.


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