EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 01-20-2008, 12:51 AM
RickF7666's Avatar
RickF7666 RickF7666 is offline
A Griffawn
Interface Author - Click to view interfaces
 
Join Date: Jun 2005
Server: Oasis
Posts: 70
Default 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.
Reply With Quote
  #2  
Unread 01-20-2008, 12:54 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

grab the subclass from a dynamicdata objec and assign it to the image style
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #3  
Unread 01-20-2008, 04:22 AM
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

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.
__________________

Visit Othesus World!
Reply With Quote
  #4  
Unread 01-20-2008, 10:34 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

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>
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 01-20-2008 at 10:38 AM.
Reply With Quote
  #5  
Unread 01-21-2008, 06:17 PM
RickF7666's Avatar
RickF7666 RickF7666 is offline
A Griffawn
Interface Author - Click to view interfaces
 
Join Date: Jun 2005
Server: Oasis
Posts: 70
Default 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="&#xD;&#xA;Parent.Archtype.Style=(eX_Test ? ClassStyles.WarriorArchtype : False) eX_Test=(Parent.TArchetype.LocalText==Fighter)&#xD;&#xA;Parent.Archtype.Style=(e X_Test ? ClassStyles.MageArchtype : False) eX_Test=(Parent.TArchetype.LocalText==Mage)&#xD;&#xA;Parent.Archtype.Style=(eX_T est ? ClassStyles.PriestArchtype : False) eX_Test=(Parent.TArchetype.LocalText==Priest)&#xD;&#xA;Parent.Archtype.Style=(eX _Test ? ClassStyles.ScoutArchtype : False) eX_Test=(Parent.TArchetype.LocalText==Scout)&#xD;&#xA;Parent.Archtype.LocalToolT ip=Parent.TClass.LocalText&#xD;&#xA;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".
Reply With Quote
  #6  
Unread 01-22-2008, 08:27 AM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

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.
Reply With Quote
  #7  
Unread 01-22-2008, 08:34 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by RickF7666 View Post
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.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #8  
Unread 01-22-2008, 09:01 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

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>
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #9  
Unread 01-22-2008, 09:08 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Quote:
Originally Posted by Landiin View Post
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.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #10  
Unread 01-22-2008, 10:33 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

Quote:
Originally Posted by gm9 View Post
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.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #11  
Unread 01-22-2008, 01:18 PM
RickF7666's Avatar
RickF7666 RickF7666 is offline
A Griffawn
Interface Author - Click to view interfaces
 
Join Date: Jun 2005
Server: Oasis
Posts: 70
Default 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.
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:26 PM.


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