|
01-20-2008, 12:51 AM
|
|
A Griffawn
|
|
Join Date: Jun 2005
Server: Oasis
Posts: 70
|
|
Raid Archetype Icon in Group Window
I'm trying to get the Archetype Icon from the raid window to show up in the Group window. Any ideas?
In the raid window the game handles the assignment of the icon automatically. So far none of the OnWhatever stuff has any effect.
|
01-20-2008, 12:54 AM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
grab the subclass from a dynamicdata objec and assign it to the image style
|
01-20-2008, 04:22 AM
|
|
A Griffon
|
|
Join Date: Mar 2005
Server: Lucan DLere
Posts: 847
|
|
There was another thread about subclass icons and someone mentioned that Fetish has archetype icons in the group window so you could see it there.
|
01-20-2008, 10:34 AM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
Here is the code I use in eXtreme's group window for archetypes;
Code:
<Namespace Name="ClassStyles">
<ImageStyle Name="Warrior">
<ImageFrame Source="/images/widgets01.dds" SourceRect="217,4,249,34" />
</ImageStyle>
<ImageStyle Name="Mage">
<ImageFrame Source="/images/widgets01.dds" SourceRect="215,83,249,118" />
</ImageStyle>
<ImageStyle Name="Priest">
<ImageFrame Source="/images/widgets01.dds" SourceRect="217,43,249,74" />
</ImageStyle>
<ImageStyle Name="Scout">
<ImageFrame Source="/images/widgets01.dds" SourceRect="216,125,248,156" />
</ImageStyle>
</Namespace>
And just in case you want or someone else wants, here is the code I use for player's class in the player window.
Code:
<Image Name="Paladin" ScrollExtent="20,20" Size="20,20" SourceRect="159,0,241,81" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Shadowknight" ScrollExtent="20,20" Size="20,20" SourceRect="243,0,325,79" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Berserker" ScrollExtent="20,20" Size="20,20" SourceRect="0,0,82,78" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Guardian" ScrollExtent="20,20" Size="20,20" SourceRect="80,0,162,78" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Bruiser" ScrollExtent="20,20" Size="20,20" SourceRect="405,0,487,78" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Monk" ScrollExtent="20,20" Size="20,20" SourceRect="323,0,405,78" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Swashbuckler" ScrollExtent="20,20" Size="20,20" SourceRect="75,245,157,323" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Brigand" ScrollExtent="20,20" Size="20,20" SourceRect="240,245,322,323" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Dirge" ScrollExtent="20,20" Size="20,20" SourceRect="240,245,322,323" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Troubador" ScrollExtent="20,20" Size="20,20" SourceRect="0,245,82,323" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Ranger" ScrollExtent="20,20" Size="20,20" SourceRect="160,245,242,323" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Assassin" ScrollExtent="20,20" Size="20,20" SourceRect="319,244,401,322" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Wizard" ScrollExtent="20,20" Size="20,20" SourceRect="76,83,158,161" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Warlock" ScrollExtent="20,20" Size="20,20" SourceRect="240,84,322,162" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Illusionist" ScrollExtent="20,20" Size="20,20" SourceRect="405,79,487,157" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Coercer" ScrollExtent="20,20" Size="20,20" SourceRect="159,79,241,157" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Necromancer" ScrollExtent="20,20" Size="20,20" SourceRect="324,81,406,159" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Conjuror" ScrollExtent="20,20" Size="20,20" SourceRect="0,82,82,160" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Templar" ScrollExtent="20,20" Size="20,20" SourceRect="78,160,160,238" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Inquisitor" ScrollExtent="20,20" Size="20,20" SourceRect="157,165,239,243" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Warden" ScrollExtent="20,20" Size="20,20" SourceRect="323,164,405,242" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Fury" ScrollExtent="20,20" Size="20,20" SourceRect="240,161,322,239" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Mystic" ScrollExtent="20,20" Size="20,20" SourceRect="0,164,82,242" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
<Image Name="Defiler" ScrollExtent="20,20" Size="20,20" SourceRect="404,163,486,241" SourceResource="images/ico_cls_symbls.dds" Visible="false" />
</Page>
Last edited by Landiin : 01-20-2008 at 10:38 AM.
|
01-21-2008, 06:17 PM
|
|
A Griffawn
|
|
Join Date: Jun 2005
Server: Oasis
Posts: 70
|
|
Still not working
First off, thanks for the suggestions. I downloaded both extremeUI and Fetish UI and while they each came at the idea from two very different directions, neither of them worked for me. Fetish assigned the dynamicdata directly to the style field, while ExtremeUI tested for the archetype and then assigned a custom style to the field.
Fetish used:
OnShow="parent.parent.M1Cures.location=parent.location
parent.parent.M1Cures.visible=visible
ArchetypeIcon.Style=Archetype.text
"
While ExtremeUI used:
OnActivate="
Parent.Archtype.Style=(eX_Test ? ClassStyles.WarriorArchtype : False) eX_Test=(Parent.TArchetype.LocalText==Fighter)
Parent.Archtype.Style=(e X_Test ? ClassStyles.MageArchtype : False) eX_Test=(Parent.TArchetype.LocalText==Mage)
Parent.Archtype.Style=(eX_T est ? ClassStyles.PriestArchtype : False) eX_Test=(Parent.TArchetype.LocalText==Priest)
Parent.Archtype.Style=(eX _Test ? ClassStyles.ScoutArchtype : False) eX_Test=(Parent.TArchetype.LocalText==Scout)
Parent.Archtype.LocalToolT ip=Parent.TClass.LocalText
Activated=False"
Like I said, two very different approaches, and I tried using both but I still can't get the icon to show up.
What I have found is that if I don't use the dynamicdata for ArcheIcon I can get any specific one to show up. But when I use the dynamicdata I don't get anything. And as for the Extreme test version I get a false return on all the tests. When I display the "text" or "localtext" fields they do show the correct information. But when I try to assign that information to something else then nothing shows up. I even did a test.
OnShow="NewText.LocalText=ArchetypeText.text"
So when I display ArchetypeText it shows "Mage" but when I display NewText is doesn't show anything.
What is going on? I am stumped. And by the way it doesn't seem to matter if I use "text" or "localtext".
|
01-22-2008, 08:27 AM
|
Fetish Core author
|
|
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
|
|
I believe they are, at almost all times, identical.
Can you post your test code, button and text field and all?
Also, have you tried using OnHoverOver instead of OnShow? I know OnShow doesn't trigger all the time like hover does.
Also check fetish's again -- that one I _know_ he used hover for, as you have to hover over the group window before the icons appear.
|
01-22-2008, 08:34 AM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
Quote:
Originally Posted by RickF7666
I even did a test.
OnShow="NewText.LocalText=ArchetypeText.text"
So when I display ArchetypeText it shows "Mage" but when I display NewText is doesn't show anything.
|
Several things. First of all I assume you don't copy all of the elements each of those UIs uses in their code, and this is why they fail. Second, I assume that no NewText object exists in your .xml, which is why you cannot assign a property Text or LocalText to it. But of course I'm just assuming, might be something else entirely.
|
01-22-2008, 09:01 AM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
Mine will always come back false if you do not have a Text object named TArchetype with dd for archetype. Then the if testing in the UIBiulder you have to populate the localtext with one of the archetypes.
But now in my yet to be released window I do
Parent.Archetype.Style='ClassStyles.' ## Parent.TArchetype.LocalText
I have that in both the OnShow and OnHoverIn because the OnShow doesn't seem to always work.
Of course this will only work in you have the following code in the root node of the window.
Code:
<Namespace Name="ClassStyles">
<ImageStyle Name="Warrior">
<ImageFrame Source="/images/widgets01.dds" SourceRect="217,4,249,34" />
</ImageStyle>
<ImageStyle Name="Mage">
<ImageFrame Source="/images/widgets01.dds" SourceRect="215,83,249,118" />
</ImageStyle>
<ImageStyle Name="Priest">
<ImageFrame Source="/images/widgets01.dds" SourceRect="217,43,249,74" />
</ImageStyle>
<ImageStyle Name="Scout">
<ImageFrame Source="/images/widgets01.dds" SourceRect="216,125,248,156" />
</ImageStyle>
</Namespace>
|
01-22-2008, 09:08 AM
|
gm10-1
|
|
Join Date: Feb 2006
Posts: 6,479
|
|
Quote:
Originally Posted by Landiin
I have that in both the OnShow and OnHoverIn because the OnShow doesn't seem to always work.
|
Did you try OnShow of the MemberInfoPages? Works for me.
|
01-22-2008, 10:33 AM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
Quote:
Originally Posted by gm9
Did you try OnShow of the MemberInfoPages? Works for me.
|
I pretty sure thats where I put it. I'll have to double check, but seems it works sometimes and not others. I haven't debugged it I just tossed it together and got into playing and haven't revisited that section of code again yet.
|
01-22-2008, 01:18 PM
|
|
A Griffawn
|
|
Join Date: Jun 2005
Server: Oasis
Posts: 70
|
|
I think I have an idea
I think I might have an idea of what is going wrong with the Group Window. I think it has to do with when the Gamedata is loaded. Lets say that the sequence of events is:
1: person joins group
2: Load group window
3: populate gamedata
If this is true then when you do an OnShow in step 2. there is no gamedata loaded yet. So everything is blank. That would explain why OnShow doesn't work but OnHover does. Now all I have to do is figure a way around this particular hurdle.
|
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 12:39 PM.
|
|