View Single Post
  #10  
Unread 05-24-2007, 09:06 PM
Othesus's Avatar
Othesus Othesus is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
Default

Whew! After a few more hours of testing and debugging I think this window works.

The script buttons control the visibility of all the window parts, so there isn't any funky size changing scripts. The real trick was figuring out which objects should trigger the buttons since the game client shows and hides a lot of parts by itself. It turned out that the buttons need to be triggered from the "Info" level text object and the v0/v1 pages.

The InfoTestButton makes each part visible depending on the "Info" level text and triggers the ShineyTestButton if necessary. The ShineyTestButton checks if the Name is ? or ! and makes the Name2 font really big if it is.

<Button Name="InfoTestButton" OnActivate="Parent.Health.Visible=Parent.Info.Visible
Parent.Power.Visible=Parent.Info.Visible
Parent.Name.Visible=Parent.Info.Visible
Parent.Parent.Common.Name2.Visible='!'Parent.Info.Visible
Parent.ShineyTestButton.Activated='!'Parent.Info.Visible
Activated=False" Visible="False"/>
<Button Name="ShineyTestButton" OnActivate="QuestionText = (Parent.Name.Text == '?')
ExclamationText = (Parent.Name.Text == '!')
ShineyCOND = QuestionText || ExclamationText
Parent.Parent.Common.Name2.Font = ShineyCOND ? '/Fonts.FontKabosGyula30' : '/Profit.Fonts.Font20'
Activated=False" Visible="False"/>

I only got to test this target window against the sparring partners in Hate's Envy and in that area. If anyone else can, please test it out in other situations.
Attached Files
File Type: zip Othesus tries Profit eq2ui_mainhud_target.zip (2.9 KB, 505 views)

Last edited by Othesus : 05-26-2007 at 12:01 AM.
Reply With Quote