EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-18-2005, 06:19 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default Highlighting selected group member.

As a healer I find it hard to see in the middle of battle who I have selected. and I don't really like all the arrows and glows.

So, what I've done is when I click on group members from the group window, the selected member's name increases in font size and the other members font size returns to normal.

Now this works fine, and now it's easy to spot which member I have selected, however... this will not work if I use the F Keys, I have tried OnActivate etc. but no joy.

Any ideas how I can achieve this?
Reply With Quote
  #2  
Unread 05-18-2005, 10:26 AM
dc_roenfanz's Avatar
dc_roenfanz dc_roenfanz is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Unkown
Posts: 588
Default

Quote:
Originally Posted by Profit
As a healer I find it hard to see in the middle of battle who I have selected. and I don't really like all the arrows and glows.

So, what I've done is when I click on group members from the group window, the selected member's name increases in font size and the other members font size returns to normal.

Now this works fine, and now it's easy to spot which member I have selected, however... this will not work if I use the F Keys, I have tried OnActivate etc. but no joy.

Any ideas how I can achieve this?
What about OnSelect and OnDeselect (OnUnselect) not sure if they are there but worth a shot.

and remember you hafta have an un-event too. IE Make sure your using Activate and Deactivate .. would be nice to see th exact code you have posted
__________________
Reply With Quote
  #3  
Unread 05-19-2005, 12:36 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Hmm...

OnShow event for the Target window. Triggers "if statement" events that compare the target's name to each groupmember name. If there's a match, it could change the font or color on the name in the group window.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #4  
Unread 05-19-2005, 01:29 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Yes, this sort of solution seems to be the only way.
Reply With Quote
  #5  
Unread 05-19-2005, 02:47 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Ok, I've tried the Targets' OnShow, OnActivate etc and none of them trigger events between switching targets.

Was a good idea.
Reply With Quote
  #6  
Unread 05-19-2005, 03:00 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Edit:

Bah, forgot the OnShow event doesn't trigger if you already have a target. Need to include visible=false in the OnShow script. Should force it to trigger each time you target anything.

Going to try something that won't involve the target window at all, just make use of its dynamicdata. I'll need someone else to see if it works, though.
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 05-19-2005 at 03:15 AM.
Reply With Quote
  #7  
Unread 05-19-2005, 03:17 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Okay, test Groupmembers window. The number below the LFG buttons should increase by 1 every time you target something or change targets.

Need someone to test and tell me whether it:

- Doesn't work at all
- Increases only when targetting something when you don't currently have a target, or
- Increases with every target change.
Attached Files
File Type: xml eq2ui_mainhud_groupmembers.xml (17.8 KB, 249 views)
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #8  
Unread 05-19-2005, 04:49 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Thanks for helping

Ok, basicially the number only increases if you target something when the target window is not shown. i.e you press escape or target something that removes the window.

Switching between different targets does not increase the number.

Pressing ALT+T to hide/show the window does not increase the number either.

Last edited by Profit : 05-19-2005 at 04:59 AM.
Reply With Quote
  #9  
Unread 05-19-2005, 05:29 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Okay, try this one. Should increase by 7 when acquiring a target, and increase anywhere from 0 to 7 (hopefully not 0) when switching targets. Let me know if/how much it does in each case.
Attached Files
File Type: xml eq2ui_mainhud_groupmembers.xml (18.6 KB, 262 views)
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #10  
Unread 05-19-2005, 05:46 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Great work

Target with Target Window Hidden =+7
New Target with Target Window Shown =+6

Have to work out what you did now...

And try these if statements.
Reply With Quote
  #11  
Unread 05-19-2005, 05:48 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Ok, so looks like Name and HealthPage are being triggered every target change
Reply With Quote
  #12  
Unread 05-19-2005, 05:59 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Excellent. I'll code the if statement scripting, then you'll just need to change the script to do what you want (change the name font, toggle the visiblity of a green frame, whatever) and copy it a few times.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #13  
Unread 05-19-2005, 06:10 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Thanks DB

I'm looking at the If statements now, but really need an example to continue.

Putting it simply, I am looking for something like:

If Target.Name = GroupMember1.Name
GroupMember1.Fkey.TextColor=#FF0000
Else If Target.Name = GroupMember2.Name
GroupMember2.Fkey.TextColor=#FF0000
.....
...
..
End If

Will also have to code resetting all the other group members back to original color.
Reply With Quote
  #14  
Unread 05-19-2005, 06:17 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Okay, here it is.

Leave the main Name alone. It handles the target change event and all the if statements.

In GroupMember1.MemberInfoPage is a Button object named Trigger. Change Trigger's OnActivate event to what you want to happen when the groupmember is targetted, and OnDeActivate to what you want to happen when not targetted. Right now it's a font change with a bigger font if the member is targetted.

Once you've got that how you want it, just copy the Trigger object into each MemberInfoPage.

If it works in UIBuilder (test by selecting the main Name object, changing the name to/from GroupMember, and clicking the visiblity toggle) but not in-game, some re-working might help.

If you need help on how to do what you want with the scripts, just ask.
Attached Files
File Type: xml eq2ui_mainhud_groupmembers.xml (18.5 KB, 247 views)
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #15  
Unread 05-19-2005, 06:23 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Quote:
Originally Posted by Profit
Thanks DB

I'm looking at the If statements now, but really need an example to continue.
For future reference, it's actually much simpler. :P

(Button_object).Activated=(X==Y)

(Button_object)'s OnActivate event triggers if X=Y. Otherwise, the OnDeActivate triggers. Just put the scripts into each event.

It's usually slightly more complicated than that (OnActivate won't trigger if Activated=true already), but in this case we don't need that since we want the change state to correspond directly to the true/false value at all times.
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 05-19-2005 at 06:25 AM.
Reply With Quote
  #16  
Unread 05-19-2005, 07:37 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Great Work,

I've got it working, will need to test it in a group when I get home from work.

That's taught me a lot, thanks for your hard work
Reply With Quote
  #17  
Unread 05-19-2005, 08:33 AM
Laffs's Avatar
Laffs Laffs is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Runnyeye
Posts: 1,404
Default

Hey thats a damn good idea.. I got a little cleric type dude and me being a bit slow in the healing department by the time I had delt with aggro and and trying to heal..... Well to cut it short I didnt know what the hell I had targeted half the time lol..

Think I will stick this or some variation of it into my group window, If you guys dont mind that is
__________________
Laffs UI Mods
I can only please one person per day. Today is not your day. Tomorrow doesn't look to good either !
(Wicann on Runnyeye)
Reply With Quote
  #18  
Unread 05-21-2005, 05:49 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Managed to try this in a group, and it works perfectly, accept... when you cancel a target with the escape key...

Any idea how to overcome this?
Reply With Quote
  #19  
Unread 05-21-2005, 05:55 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Hmm...

Try this:

-Make a copy of the Name object and name it Name2
-Remove the OnShow script.
-Set Visible to True
-Give it the following OnHide script:

Quote:
Parent.Name.Localtext=LongerThanLongestNamePoss
Parent.GroupMember1.MemberInfoPage.Trigger.Activated=((Parent.GroupMember1.Membe rInfoPage.Name.LocalText)==(LocalText))
Parent.GroupMember2.MemberInfoPage.Trigger.Activated=((Parent.GroupMember2.Membe rInfoPage.Name.LocalText)==(LocalText))
Parent.GroupMember3.MemberInfoPage.Trigger.Activated=((Parent.GroupMember3.Membe rInfoPage.Name.LocalText)==(LocalText))
Parent.GroupMember4.MemberInfoPage.Trigger.Activated=((Parent.GroupMember4.Membe rInfoPage.Name.LocalText)==(LocalText))
Parent.GroupMember5.MemberInfoPage.Trigger.Activated=((Parent.GroupMember5.Membe rInfoPage.Name.LocalText)==(LocalText))
visible=true
(Be sure to remove the space between .Membe and rInfoPage. Forum error.)

That should trigger the checking script (and make sure it's not retaining a text value of a groupmember's name) when you go from having a target to not having one.
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 05-21-2005 at 05:58 AM.
Reply With Quote
  #20  
Unread 05-21-2005, 10:15 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Thanks once again DB, I've implemented that and will try it later today.
Reply With Quote
  #21  
Unread 05-21-2005, 03:09 PM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Afraid that didn't work - I will check the code when I leave this group, just in case.
Reply With Quote
  #22  
Unread 05-21-2005, 04:04 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

Try this one (Same as post #14 but) I added a page called LabelReseter that looks like this:

<Page DynamicData="/GameData.Target.Window" DynamicDataFilter="0001" Name="LabelReseter" OnHide="Parent.GroupMember1.MemberInfoPage.Trigger.Activated=false
Parent.GroupMember2.MemberInfoPage.Trigger.Activated=false
Parent.GroupMember3.MemberInfoPage.Trigger.Activated=false
Parent.GroupMember4.MemberInfoPage.Trigger.Activated=false
Parent.GroupMember5.MemberInfoPage.Trigger.Activated=false
" Visible="false"/>
Attached Files
File Type: xml eq2ui_mainhud_groupmembers.xml (19.0 KB, 274 views)
__________________
Talyns
Reply With Quote
  #23  
Unread 05-24-2005, 02:46 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

Is this working correctly now?
__________________
Talyns
Reply With Quote
  #24  
Unread 05-24-2005, 03:16 AM
Profit Profit is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Apr 2005
Server: Everfrost
Posts: 253
Default

Yes, that fixed it, just remember to make this new page a size of 0,0 else none of the buttons/tooltips work.

Thanks
Reply With Quote
  #25  
Unread 05-24-2005, 04:15 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

Thank you.. This was an awesome Idea.. As a soloer/fighter I won't use it much but I'm sure my the other users of my UI will like it
__________________
Talyns
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 03:53 AM.


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