|
05-20-2006, 08:37 AM
|
A Young Mystail Rat
|
|
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 4
|
|
Level / Archtype in group window
ok, so I'm fairly new to programming the UI, and I'm trying to make a group window that displays level and archtype of players in your group. I've got everything looking good as far as placement of the text / image boxes goes, but now comes the troubble of getting the correct stuff to display.
I copied the level and archtype boxes from the Raid window (eq2ui_mainhud_raid.xml) and put it into my new group window, it appears as though it's not pulling the character information. Any thoughts?
Thanks,
Brian
|
05-20-2006, 01:04 PM
|
A Griffon
|
|
Join Date: Nov 2005
Server: Nagafen
Posts: 229
|
|
Think you are missing the gamedata, I found this in another groupwindow http://www.eq2interface.com/download...fo.php?id=4242.
Code:
<Text AbsorbsInput="false" actiontype="Target" DynamicData="/GameData.Group.Group_1.Level" Font="/TextStyles.Normal.NormalStyle" LocalText="55" Location="35,13" Margin="1,1,1,1" Name="Level" PackLocation="top,left" PackLocationProp="0035/0001,0013/0001" PackSize="absolute,fixed" PackSizeProp="0120/0001,0002/0003" ScrollExtent="20,18" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="20,18" TextAlignment="Right" TextColor="#F0D090">55</Text>
Hope that helps some
__________________
~ Savie
92 Warden, Nagafen.
|
05-20-2006, 03:06 PM
|
A Young Mystail Rat
|
|
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 4
|
|
I'll check it out, thanks!
|
05-20-2006, 10:21 PM
|
A Young Mystail Rat
|
|
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 4
|
|
ok, so the level box works now. the only thing is, the Archetype does not display correctly. I'm grouping with different archetypes, and no matter what their archetype, they're icon is always for a scout.
is there any kind of if statements that I need to put somewhere or what?
Lemmie know what I'm doing wrong.
Thanks,
Brian
|
05-21-2006, 12:30 AM
|
|
A Green Troll
|
|
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
|
|
1) you're using the "Class" DD rather than the "Archtype" DD.
2) Haven't tested this but I bet these DDs only return text info. If so, you'll need to add a hidden text object to accept the DD and an OnShow script to each MemberInfoPage that sets the icon style based on that text value. Something like...
Code:
<Page BackgroundColor="#00FF00" Name="MemberInfoPage" PackLocation="left,top" PackLocationProp="0000/0001,0000/0001" ScrollExtent="153,63" Size="153,63" Visible="false" OnShow="ArchtypeIcon.Style=Archtype.text">
<Text AbsorbsInput="false" DynamicData="/GameData.Group.Group_1.Archtype" Name="Archtype" Location="-10,-10" Size="1,1"/>
Also remove the word "Archtype" from the ImageStyle names so their names match what the DD returns.
|
05-21-2006, 02:33 AM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
Here is the code I use to get the class image to show for group members
Code:
<Button Name="ClassControler" OnActivate="
Parent.Paladin.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Paladin)
Parent.Shadowknight.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Shadowknight)
Parent.Berserker.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Berserker)
Parent.Guardian.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Guardian)
Parent.Bruiser.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Bruiser)
Parent.Monk.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Monk)
Parent.Swashbuckler.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Swashbuckler)
Parent.Brigand.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Brigand)
Parent.Dirge.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Dirge)
Parent.Troubador.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Troubador)
Parent.Ranger.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Ranger)
Parent.Assassin.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Assassin)
Parent.Wizard.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Wizard)
Parent.Warlock.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Warlock)
Parent.Illusionist.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Illusionist)
Parent.Coercer.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Coercer)
Parent.Necromancer.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Necromancer)
Parent.Conjuror.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Conjuror)
Parent.Templar.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Templar)
Parent.Inquisitor.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Inquisitor)
Parent.Warden.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Warden)
Parent.Fury.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Fury)
Parent.Mystic.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Mystic)
Parent.Defiler.Visible=(Test ? True : False) Test=(Parent.Class.LocalText==Defiler)
Activated=False">eXtremeClass</Button>
<text Font="/TextStyles.Normal.NormalStyle" DynamicData="/GameData.Group.Group_0.Subclass" Name="Class" Size="20,20" Visible="False"></text>
<Image Location="0,0" Name="Paladin" Size="20,20" SourceRect="159,0,241,81" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Shadowknight" Size="20,20" SourceRect="243,0,325,79" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Berserker" Size="20,20" SourceRect="0,0,82,78" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Guardian" Size="20,20" SourceRect="80,0,162,78" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Bruiser" Size="20,20" SourceRect="405,0,487,78" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Monk" Size="20,20" SourceRect="323,0,405,78" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Swashbuckler" Size="20,20" SourceRect="75,245,157,323" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Brigand" Size="20,20" SourceRect="240,245,322,323" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Dirge" Size="20,20" SourceRect="240,245,322,323" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Troubador" Size="20,20" SourceRect="0,245,82,323" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Ranger" Size="20,20" SourceRect="160,245,242,323" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Assassin" Size="20,20" SourceRect="319,244,401,322" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Wizard" Size="20,20" SourceRect="76,83,158,161" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Warlock" Size="20,20" SourceRect="240,84,322,162" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Illusionist" Size="20,20" SourceRect="405,79,487,157" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Coercer" Size="20,20" SourceRect="159,79,241,157" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Necromancer" Size="20,20" SourceRect="324,81,406,159" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Conjuror" Size="20,20" SourceRect="0,82,82,160" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Templar" Size="20,20" SourceRect="78,160,160,238" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Inquisitor" Size="20,20" SourceRect="157,165,239,243" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Warden" Size="20,20" SourceRect="323,164,405,242" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Fury" Size="20,20" SourceRect="240,161,322,239" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Mystic" Size="20,20" SourceRect="0,164,82,242" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
<Image Location="0,0" Name="Defiler" Size="20,20" SourceRect="404,163,486,241" SourceResource="images/ico_cls_symbls.dds" Stretch="True" Visible="False"/>
|
05-21-2006, 02:44 AM
|
A Young Mystail Rat
|
|
Join Date: Jan 2006
Server: Antonia Bayle
Posts: 4
|
|
I actually think I'm getting really close to having it working without a bunch of code, and using EQ2's Standard icon files. Which is nice. The only thing is, I'm having troubble connecting to the test server, so I'm logging into my character, seeing if it works, and logging out to change stuff.
The only other hard part is finding someone to group up with me so I can see if it works.
2 things I've learned thus far that'll REALLY help; SPELLING matters (duh) and Capitalization matters alot too.
Thanks,
-Brian
oh, and BTW, I did search, alot, even the web. nothing. which is why I asked, I also like the way I have my UI set up now, and don't want to download an entirely new one. I also like to program a bit, but just didn't know how SOE coded it's variables.
Last edited by andrewsbrian : 05-21-2006 at 02:49 AM.
|
05-21-2006, 01:18 PM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
You don't really need a group to test it. Just use group_0 (that is you) and place your code in your player window to test the icon. Once you get it working just incorporate that code into the group windows. Thats what I had to do, as its a pain to have to log in and out and try to get a group if all your buddys are offline
Last edited by Landiin : 05-21-2006 at 01:27 PM.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:22 AM.
|
|