Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > Developer Discussion > General authoring help / discussion
User Name
Password

Reply
 
Thread Tools Display Modes
Old 04-10-2012, 04:42 AM   #1
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default Achievement Window Borders

Has anyone had any success creating custom borders for the Achievement Window WITHOUT modifying EQUI_animations.xml, EQUI_templates.xml?

I've tried creating custom borders to replace WDT_AchievementOpen, WDT_AchievementCompleted, and WDT_AchievementLocked but the engine doesn't seem to recognize my new templates when called in EQUI_AchievementsWnd.xml and EQUI_AchievementWnd.xml.

I also tried creating a new .tga file which didn't work very well with my intricately detailed borders due to the fact the default border dimensions don't line up exactly. It turned out pixelated with gaps and uneven borders.

My UI isn't throwing any errors, the new borders just don't get recognized. I assume this is due to some dynamic action on the back end used to expand the sub-achievement window when clicked.
__________________

firescue17 is offline   Reply With Quote
Old 04-10-2012, 09:18 AM   #2
valaury3169
Enhanced Imperial Golem
 
Join Date: Jun 2008
Posts: 204
Interface Author - Click to view interfaces
Default

You can define custom elements in any xml file. You can gut EQUI_Templates.xml, and paste its entire contents into EQUI_PotionBeltWnd.xml, and the UI will continue to work exactly as it did before. Animations and templates exist just for organization.

Can you post the files you have in progress? It sounds like you have some properties defined incorrectly, and is making appear as if what you are trying won't work. There is no reason why you can't make a custom border for the Achievments window.
valaury3169 is offline   Reply With Quote
Old 04-10-2012, 11:14 AM   #3
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default

One would think so; however, if elements were defined incorrectly one of two things would happen: A) a UI error and / or crash to default;or B) a new border with messed up graphics due to incorrect Ui2DAnimations.

Neither of those results occur. Nothing occurs. The two templates in question are:

WDT_AchievementOpen (Filigree border with black background)
WDT_AchievementCompleted (Filigree Border with blue background)

WDT_AchievementOpen is called as a template in both EQUI_AchievementsWnd.xml and EQUI_AchievementWnd.xml. Nowhere can i find a reference to the blue background template WDT_AchievementCompleted. My hunch is that template is called on the backend when the game renders the window and checks for quest flags.

I don't have a full file. I trashed them since they don't work. It's easy to test yourself.

In the EQUI_AchievementsWnd.xml, replace:

<DrawTemplate>WDT_AchievementOpen</DrawTemplate>

with

<DrawTemplate>WDT_AchievementOpen_TEST</DrawTemplate>


Stick this code wherever you want:

<WindowDrawTemplate item="WDT_AchievementOpen_TEST">
<Background>yourgraphichere.tga</Background>
</WindowDrawTemplate>

You can even make a matching completed border:

<WindowDrawTemplate item="WDT_AchievementCompleted_TEST">
<Background>yourgraphichere.tga</Background>
</WindowDrawTemplate>

That should make both borders disappear with only a background of your choosing.

Last edited by firescue17 : 04-10-2012 at 12:18 PM.
firescue17 is offline   Reply With Quote
Old 04-11-2012, 09:58 AM   #4
valaury3169
Enhanced Imperial Golem
 
Join Date: Jun 2008
Posts: 204
Interface Author - Click to view interfaces
Default

I played around a little bit, and I was able to change the draw template some. I just viewed in SidlWidl though, not in game.

Is it possible when you are editing the .tga, you are losing your alpha channel?
valaury3169 is offline   Reply With Quote
Old 04-11-2012, 03:35 PM   #5
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default

No, not in this instance.
firescue17 is offline   Reply With Quote
Old 04-11-2012, 09:20 PM   #6
valaury3169
Enhanced Imperial Golem
 
Join Date: Jun 2008
Posts: 204
Interface Author - Click to view interfaces
Default

Ok, after extensive testing in game, I can confirm without a doubt that, no, you can not edit that part of the achievement window without editing the templates file. When it renders that window, they have hardcoded to use WDT_AchievementOpen and WDT_AchievementCompleted depending on its state, regardless of what you define in the Screen element. You can, however, change the definition of the Draw Template, but since you can't have more than one element with the same name (as I am sure you know), you have to edit it in the Templates xml.

As far as your background being jacked, I did discover one interesting thing. The texture definition in the Animations file is set to 1x1, even though the file is 32x32. Since 1x1 is still powers of 2, it dosen't mangle anything, but I found that odd. If you change the texture definition to 32x32, you can edit the Achievement_unlock_color.tga texture to be an actual texture instead of just a 1 pixel fill color.

You should also be able to change the 'Border' elements in the WDT_AchievementOpen template to different border pieces without a hitch, assuming they are all defined correctly. I changed all of the borders to my custom 'InnerFrame' animations, and they showed perfectly.

One additional thing I learned a while back, when creating your own textures, and defining them in a <TextureInfo> tag, it is case sensative. It will not throw an error anywhere. For example, if your texture is named MyTexture.tga, but the definition has mytexture.tga, it just won't display anything.

Good luck.
valaury3169 is offline   Reply With Quote
Old 04-11-2012, 09:50 PM   #7
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default

That confirms my results as well. My new borders worked fine redefining the default templates and animations provided I used the same naming scheme, just not with custom names.

I hate to redefine the default .xml and .tga's, but it would seem to be unavoidable in this case.

Thanks for checking into it!
firescue17 is offline   Reply With Quote
Reply



Thread Tools
Display Modes

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


All times are GMT -5. The time now is 03:43 PM.


vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI