EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 11-19-2005, 04:04 PM
dredd2032 dredd2032 is offline
A Young Mystail Rat
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 4
Wink Seting a new font in a custom window ??

Well, I thought I had it. Here is where I am at. Keep in mind I am only editing one window different then the default skin. (for now)

I added a file FontArial12.xml to my default UI folder. It is an exact copy of the FontArial14.xml file with the font size changed to 12 (I am after a 12 point font) and the name changed to FontArial12
Then I added <include>FontArial12.xml</include> in place in eq2ui_fonts.xml

This worked and I can use Fonts.FontArial12 in my window xml file and get the correct font, however, I would like to be able to setup the font info in my own xml custom folder and not modify the default UI to get this working.

I tried adding this to the top of my windows xml file

<Namespace Name="Fonts">
<TextStyle Algorithm="Simple" FontName="Arial" Language="english" Name="FontArial12" PointSize="12" UseCachedFont="true"/>
</Namespace>

However I get nothing there. I understand the default way I described above uses includes to get the info into the xml but I cant figure out how to set it up myself?

Or am I barking up the wrong tree completly?

Sorry for being an XML noob, and thanks for any help.

Last edited by dredd2032 : 11-19-2005 at 05:27 PM.
Reply With Quote
  #2  
Unread 11-19-2005, 04:09 PM
dredd2032 dredd2032 is offline
A Young Mystail Rat
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 4
Default

Ahhh, I got it


Its a namespace issue, I can setup my own fonts namespace to use

First copy the "eq2ui.ini" from default to my custom folder. Then add this
line
<include>_DreddStyles.xml</include>


Next made a file "_DreddStyles.xml" in my custom folder with the following

<Namespace Name="Dredd">
<Namespace Name="Fonts">
<TextStyle Algorithm="Simple" FontName="Arial" Language="english" Leading="-2" Name="FontArial12" PointSize="12" UseCachedFont="true"/>
</Namespace>
</Namespace>

Now, I can use in my xml file
Font="/Dredd.Fonts.FontArial12"

And it works just like I want. Last question though, can I do all this in just my custom window xml file? Or do I have to do it through this system?


-Dredd

Last edited by dredd2032 : 11-19-2005 at 05:41 PM.
Reply With Quote
  #3  
Unread 11-19-2005, 07:05 PM
Morpheusdead Morpheusdead is offline
A Dervish Cutthroat
Interface Author - Click to view interfaces
 
Join Date: Jun 2005
Server: Unrest
Posts: 38
Default

yes you got it you must doit just like that which means anyone using your mod will need the font AND your custom .xml you made pointing to it
__________________

“It is a curious thing, that God learned Greek when he wished to turn author--and even more curious that he did not learn it better.” (Friedrich Wilhelm Nietzsche)
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 06:05 AM.


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