Upgrading an old UI to use /social

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
For those of you who have a custom UI of your own or that's not being updated any more, this might be of help:

In your ui/custom/styles.xml add the following (at the end before the </XML> or </ROOT_ELEMENT> attribute.

Code:
<TabsTemplate>
      <Name>generic_tabs</Name>
      <Parent>none</Parent>
      <ControlAreaFullResizeImageTemplate>dlg_interior_small</ControlAreaFullResizeImageTemplate>
      <TabButtonTemplate>button_tab</TabButtonTemplate>
      <TabXOffset>5</TabXOffset>
      <TabYOffset>2</TabYOffset>
   </TabsTemplate>

   <ButtonTemplate>
      <Name>button_tab</Name>
      <Parent>none</Parent>
      <Size>
         <X>60</X>
         <Y>16</Y>
      </Size>
      <Font>
         <Name>arial9</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorPressed>
            <R>255</R>
            <G>192</G>
            <B>0</B>
            <A>255</A>
         </ColorPressed>
         <ColorHighlit>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorHighlit>
         <ColorDisabled>
            <R>128</R>
            <G>128</G>
            <B>128</B>
            <A>255</A>
         </ColorDisabled>
      </Font>
      <Texture>
         <TextureName>page4</TextureName>
         <Normal>
            <X>192</X>
            <Y>27</Y>
         </Normal>
         <Pressed>
            <X>192</X>
            <Y>27</Y>
         </Pressed>
         <NormalHighlit>
            <X>192</X>
            <Y>3</Y>
         </NormalHighlit>
         <PressedHighlit>
            <X>192</X>
            <Y>27</Y>
         </PressedHighlit>
         <Disabled>
            <X>192</X>
            <Y>27</Y>
         </Disabled>
      </Texture>
   </ButtonTemplate>

   <HorizontalResizeImageTemplate>
      <Name>listbox_header</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>223</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>223</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>223</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeButtonTemplate>
      <Name>listbox_hrbutton</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <Font>
         <Name>arial9</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorPressed>
            <R>255</R>
            <G>192</G>
            <B>0</B>
            <A>255</A>
         </ColorPressed>
         <ColorHighlit>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorHighlit>
         <ColorDisabled>
            <R>128</R>
            <G>128</G>
            <B>128</B>
            <A>255</A>
         </ColorDisabled>
      </Font>
      <Normal>listbox_header</Normal>
      <Pressed>listbox_header</Pressed>
      <NormalHighlit>listbox_header</NormalHighlit>
      <PressedHighlit>listbox_header</PressedHighlit>
      <Disabled>listbox_header</Disabled>
   </HorizontalResizeButtonTemplate>




<HorizontalResizeImageTemplate>
      <Name>generic_hr_image_normal</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>223</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>223</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>223</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeImageTemplate>
      <Name>generic_hr_image_pressed</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>240</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>240</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>240</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeImageTemplate>
      <Name>generic_hr_image_normalhighlight</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>206</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>206</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>206</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeImageTemplate>
      <Name>generic_hr_image_disabled</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>223</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>223</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>223</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeButtonTemplate>
      <Name>generic_hr_button</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <Font>
         <Name>button_large</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorPressed>
            <R>255</R>
            <G>192</G>
            <B>0</B>
            <A>255</A>
         </ColorPressed>
         <ColorHighlit>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorHighlit>
         <ColorDisabled>
            <R>128</R>
            <G>128</G>
            <B>128</B>
            <A>255</A>
         </ColorDisabled>
      </Font>
      <Normal>generic_hr_image_normal</Normal>
      <Pressed>generic_hr_image_pressed</Pressed>
      <NormalHighlit>generic_hr_image_normalhighlight</NormalHighlit>
      <PressedHighlit>generic_hr_image_pressed</PressedHighlit>
      <Disabled>generic_hr_image_disabled</Disabled>
   </HorizontalResizeButtonTemplate>
   <TextAreaTemplate>
      <Name>generic_textarea_sm</Name>
      <Parent>none</Parent>
      <ScrollbarTemplate>generic_vscroll</ScrollbarTemplate>
      <LinePadding>0</LinePadding>
      <BackgroundTemplate>dlg_interior_small</BackgroundTemplate>
      <TextOffset>
         <X>10</X>
         <Y>5</Y>
      </TextOffset>
      <Font>
         <Name>resize_font</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorActive>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorActive>
      </Font>
      <ScrollbarOffset>
         <X>3</X>
         <Y>2</Y>
      </ScrollbarOffset>
      <ScrollbarSizeOffset>
         <X>0</X>
         <Y>-4</Y>
      </ScrollbarSizeOffset>
   </TextAreaTemplate>
   <TextAreaTemplate>
      <Name>generic_textarea_sm_nobg</Name>
      <Parent>none</Parent>
      <ScrollbarTemplate>generic_vscroll</ScrollbarTemplate>
      <LinePadding>0</LinePadding>
      <BackgroundTemplate>none</BackgroundTemplate>
      <TextOffset>
         <X>10</X>
         <Y>5</Y>
      </TextOffset>
      <Font>
         <Name>resize_font</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorActive>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorActive>
      </Font>
      <ScrollbarOffset>
         <X>3</X>
         <Y>2</Y>
      </ScrollbarOffset>
      <ScrollbarSizeOffset>
         <X>0</X>
         <Y>-4</Y>
      </ScrollbarSizeOffset>
   </TextAreaTemplate>


in your ui/custom/assets.xml add

Code:
<Texture>
      <Name>page4</Name>
      <File>isles/page_04.tga</File>
   </Texture>

again before the </XML> or </ROOT_ELEMENT> (or whatever the outer node is called).

If none of this makes any sense I'd suggest getting a new UI ;)

This only fixes the social window - doesn't do anything for tooltips or the like.
 

Quinlan

Fledgling Freddie
Joined
Dec 24, 2003
Messages
590
A thanks alot!

I was actually gonna look into to that since my UI aint updated anymore! but no need anymore :)
 

MaditioN

Can't get enough of FH
Joined
Dec 26, 2003
Messages
1,361
wtf it worked! thanks alot:clap:

edit: almost atleast, news page worked good, when switching over to guild daoc crashes ;<
 

Kami

Can't get enough of FH
Joined
Dec 22, 2003
Messages
2,254
Excellent post Flim, one note of caution though for those doing this if you already see a page 4 in your assets.xml then you'll probably have a little bit of fiddling about to do depending on the UI your using. I know I had one on my derida/shadowraven UI that I use so still checking it all works again :)
 

Coldbeard

Part of the furniture
Joined
Jun 14, 2004
Messages
5,183
Did that fix and it only crashes the game when I try to use /social :<
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
MaditioN said:
wtf it worked! thanks alot:clap:

edit: almost atleast, news page worked good, when switching over to guild daoc crashes ;<

eep - not got that problem here, might be the images it's referencing need to be updated?

hmm have you got a page4 reference already in your assets.xml?
it might be there's a smaller image file in there and it's trying to access something that's not within the bounds.

coldbeard - can you check as well?

(if you do you'll probably have a bit more bother - either replace the existing one and have some of your custom ui textures go weird, or move things around and have to change the coords on the stuff to add to styles.xml)
 

Quinlan

Fledgling Freddie
Joined
Dec 24, 2003
Messages
590
Have the same problem as the others when switching to guild DAOC crashes.

I dont have any other page4 reference in my assests.xml
 

MaditioN

Can't get enough of FH
Joined
Dec 26, 2003
Messages
1,361
Quinlan said:
Have the same problem as the others when switching to guild DAOC crashes.

I dont have any other page4 reference in my assests.xml

yepp still same, checked assets and style.xml, should be right, still crashes when switching to guildpage in social.
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
oh well :p your UI's must just suck then! ner! ... erm bah ;)

can someone who's crashing post their assets.xml and styles.xml here and I'll see if I can work it out?

use [ code ] tags so that it doesn't mangle the formatting.
 

Quinlan

Fledgling Freddie
Joined
Dec 24, 2003
Messages
590
Here we go

Assets.xml

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Root_Element ID="DAOCUi">

<!-- @@ Edited with the DAoC User Interface Editor v1.71 -->
<!-- @@ Free download available at http://www.bradtownsend.com/daoced -->


    <!--         Auto-Generated using DAoC User Interface Editor v0.4 - BETA         -->


    <!--         Free download available at http://fire.prohosting.com/~daoced         -->


    <Font>
        <Name>button_small</Name>
        <File>fonts/button_10.tga</File>
    </Font>


    <Font>
        <Name>button_large</Name>
        <File>fonts/button_12.tga</File>
    </Font>


    <Font>
        <Name>brit9</Name>
        <File>fonts/brit9gry_light.tga</File>
    </Font>


    <Font>
        <Name>arial9</Name>
        <File>fonts/arial09ds.tga</File>
    </Font>


    <Font>
        <Name>arial11</Name>
        <File>fonts/arial11ds.tga</File>
    </Font>


    <Font>
        <Name>arial14</Name>
        <File>fonts/arial14ds.tga</File>
    </Font>


    <Texture>
        <Name>isles_skin</Name>
        <File>minimal/skin2_pieces.tga</File>
    </Texture>


    <Texture>
        <Name>shared_pieces</Name>
        <File>minimal/skin2_pieces2.tga</File>
    </Texture>


    <Texture>
        <Name>compass</Name>
        <File>isles/compass.bmp</File>
    </Texture>


    <Texture>
        <Name>page1</Name>
        <File>midgard/midgard_01.tga</File>
    </Texture>


    <Texture>
        <Name>page22</Name>
        <File>atlantis/atlantis_01.tga</File>
    </Texture>


    <Include>custom0_window.xml</Include>


    <Include>custom1_window.xml</Include>


    <Include>custom2_window.xml</Include>


    <Include>custom3_window.xml</Include>


    <Include>custom4_window.xml</Include>


    <Include>custom5_window.xml</Include>


    <Include>custom6_window.xml</Include>


    <Include>custom7_window.xml</Include>


    <Include>custom8_window.xml</Include>


    <Include>custom9_window.xml</Include>


    <Texture>
        <Name>shroudmid</Name>
        <File>custom/midsi.tga</File>
    </Texture>


    <Texture>
        <Name>shroudhib</Name>
        <File>custom/hibsi.tga</File>
    </Texture>
    
    <Texture>
      <Name>page4</Name>
      <File>isles/page_04.tga</File>
   </Texture> 


</Root_Element>

Cant post styles.xml due to the post being to long which leads to i cant PM it to you. You have disabled receiving mail. Will put a text file on my homepage with it tonight as i cant ftp here. Unless you maybe PM a mail address i can send it too.
 

Wazkyr

One of Freddy's beloved
Joined
Jun 26, 2004
Messages
1,726
after doing this, i cant even get ingame, either i crash before char screen, or right after, removed the modfied style.xml and assets.xml to the original from the custom ui im using and it worked again oO
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
Quinlan said:
Cant post styles.xml due to the post being to long which leads to i cant PM it to you. You have disabled receiving mail. Will put a text file on my homepage with it tonight as i cant ftp here. Unless you maybe PM a mail address i can send it too.

Try splitting it into two posts?
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
Wazkyr said:
after doing this, i cant even get ingame, either i crash before char screen, or right after, removed the modfied style.xml and assets.xml to the original from the custom ui im using and it worked again oO

UI shouldn't have any effect on char screen - it might be you've put the elements outside the main root one and it's got confused though.
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
Quinlan said:
yeah was still way to big

three? ;) pmed you an email address :p but won't be able to take a look till late-on tonight.
 

Quinlan

Fledgling Freddie
Joined
Dec 24, 2003
Messages
590
Ok thanks for the trouble (ps also without your additions it was to big. So the one you will receive is a styles.xml WITH your additions in it)
 

Wazkyr

One of Freddy's beloved
Joined
Jun 26, 2004
Messages
1,726

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
not played around with derida - I'd guess it's a particular xml file for the window that does the targetting part but no idea which one without looking at derida (and looking through xml files ain't really that much fun ;) maybe some other day :p)
 

MaditioN

Can't get enough of FH
Joined
Dec 26, 2003
Messages
1,361
Flimgoblin said:
is that from before you add in the UI stuff I posted above?

its before, as the game crash when i check guildpage with your code innit
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
ok need whatever's inside these files:

Code:
  <Include>custom0_window.xml</Include>


    <Include>custom1_window.xml</Include>


    <Include>custom2_window.xml</Include>


    <Include>custom3_window.xml</Include>


    <Include>custom4_window.xml</Include>


    <Include>custom5_window.xml</Include>

take a backup of your files

add in the code I posted above

and remove these includes - check if it works.
(it will break your custom popup windows like RA lists and Maps btw, just want to check if the social window works)

If it does work - add back in these lines one at a time.

Tell me which ones break it :) and post the xml here.

If removing these doesn't work then post a copy of your xmls with the code I posted added in.
 

Quinlan

Fledgling Freddie
Joined
Dec 24, 2003
Messages
590
It also crashes with all of the custom includes taken out. So it looks like they are not the problem :(

All my xml's can be aquired from here. Your code is in them and i excluded all the maps etc to decrease size
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
Quinlan said:
It also crashes with all of the custom includes taken out. So it looks like they are not the problem :(

All my xml's can be aquired from here. Your code is in them and i excluded all the maps etc to decrease size

ta - I'll have a play and see if I can track down the bug with it.
 

Herjulf

Banned
Joined
Dec 24, 2003
Messages
673
I did this and it worked just fine.

Make shure you dont use a "different" page_04.tga: then the one flimgoblin does use.
I am using foots as base for my own custom UI it also works with derida´s page_04.tga .
However if there differences in for example the x, y size of the image,
It might if you are unlucky cause problems, i had that problem when was snagging stuff from some different UI authors.

What you could do is copy a confirmed page_04.tga and rename it to for example social_texture.tga

then change: assets.xml

Code:
    <Texture>
      <Name>page4</Name>
      <File>isles/page_04.tga</File>
   </Texture>

TO

Code:
    <Texture>
      <Name>social_texture</Name>
      <File>isles/social_texture.tga</File>
   </Texture>

AND

Change all references to page4 in Flimgoblins style.xml code example to point to social_texture instead.

And thanks Flim for this good informative thread. /em wipes my brown nose.

edit: oh and make shure you copy and paste his entire code and place it correctly, and avoid double defining page_04.tga, shouldnt but could cause problems. dont miss out on any <> characters and such.
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
Quinlan said:
It also crashes with all of the custom includes taken out. So it looks like they are not the problem :(

All my xml's can be aquired from here. Your code is in them and i excluded all the maps etc to decrease size

ok found one thing that might be causing problems, but can't test to see if fixing it helps as I can't run yer UI without the images :(

In styles.xml (that you emailed to me) you have a new line here:
Code:
</ControlAreaFullResizeIma
geTemplate>

should be
</ControlAreaFullResizeImageTemplate>

might not be the problem, if you can just make a rar of your custom directory (with or without the additions) I'll have another go :) but can't really tweak and test without being able to boot up the UI :(

One more thing to watch - don't open it in a UI editor once you've added the code above - it will break it.
 

Flimgoblin

It's my birthday today!
Joined
Dec 24, 2003
Messages
8,324
for Herjulf's suggestion here's the additions to styles.xml (instead of the ones at the start of this post)

Code:
<TabsTemplate>
      <Name>generic_tabs</Name>
      <Parent>none</Parent>
      <ControlAreaFullResizeImageTemplate>dlg_interior_small</ControlAreaFullResizeImageTemplate>
      <TabButtonTemplate>button_tab</TabButtonTemplate>
      <TabXOffset>5</TabXOffset>
      <TabYOffset>2</TabYOffset>
   </TabsTemplate>

   <ButtonTemplate>
      <Name>button_tab</Name>
      <Parent>none</Parent>
      <Size>
         <X>60</X>
         <Y>16</Y>
      </Size>
      <Font>
         <Name>arial9</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorPressed>
            <R>255</R>
            <G>192</G>
            <B>0</B>
            <A>255</A>
         </ColorPressed>
         <ColorHighlit>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorHighlit>
         <ColorDisabled>
            <R>128</R>
            <G>128</G>
            <B>128</B>
            <A>255</A>
         </ColorDisabled>
      </Font>
      <Texture>
         <TextureName>social_page4</TextureName>
         <Normal>
            <X>192</X>
            <Y>27</Y>
         </Normal>
         <Pressed>
            <X>192</X>
            <Y>27</Y>
         </Pressed>
         <NormalHighlit>
            <X>192</X>
            <Y>3</Y>
         </NormalHighlit>
         <PressedHighlit>
            <X>192</X>
            <Y>27</Y>
         </PressedHighlit>
         <Disabled>
            <X>192</X>
            <Y>27</Y>
         </Disabled>
      </Texture>
   </ButtonTemplate>

   <HorizontalResizeImageTemplate>
      <Name>listbox_header</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>223</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>223</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>223</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeButtonTemplate>
      <Name>listbox_hrbutton</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <Font>
         <Name>arial9</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorPressed>
            <R>255</R>
            <G>192</G>
            <B>0</B>
            <A>255</A>
         </ColorPressed>
         <ColorHighlit>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorHighlit>
         <ColorDisabled>
            <R>128</R>
            <G>128</G>
            <B>128</B>
            <A>255</A>
         </ColorDisabled>
      </Font>
      <Normal>listbox_header</Normal>
      <Pressed>listbox_header</Pressed>
      <NormalHighlit>listbox_header</NormalHighlit>
      <PressedHighlit>listbox_header</PressedHighlit>
      <Disabled>listbox_header</Disabled>
   </HorizontalResizeButtonTemplate>




<HorizontalResizeImageTemplate>
      <Name>generic_hr_image_normal</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>223</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>223</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>223</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeImageTemplate>
      <Name>generic_hr_image_pressed</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>240</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>240</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>240</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeImageTemplate>
      <Name>generic_hr_image_normalhighlight</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>206</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>206</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>206</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeImageTemplate>
      <Name>generic_hr_image_disabled</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <LeftWidth>4</LeftWidth>
      <RepeatWidth>10</RepeatWidth>
      <RightWidth>4</RightWidth>
      <Texture>
         <TextureName>page1</TextureName>
         <Left>
            <X>0</X>
            <Y>223</Y>
         </Left>
         <Repeat>
            <X>4</X>
            <Y>223</Y>
         </Repeat>
         <Right>
            <X>56</X>
            <Y>223</Y>
         </Right>
      </Texture>
   </HorizontalResizeImageTemplate>
   <HorizontalResizeButtonTemplate>
      <Name>generic_hr_button</Name>
      <Parent>none</Parent>
      <Height>16</Height>
      <Font>
         <Name>button_large</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorPressed>
            <R>255</R>
            <G>192</G>
            <B>0</B>
            <A>255</A>
         </ColorPressed>
         <ColorHighlit>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorHighlit>
         <ColorDisabled>
            <R>128</R>
            <G>128</G>
            <B>128</B>
            <A>255</A>
         </ColorDisabled>
      </Font>
      <Normal>generic_hr_image_normal</Normal>
      <Pressed>generic_hr_image_pressed</Pressed>
      <NormalHighlit>generic_hr_image_normalhighlight</NormalHighlit>
      <PressedHighlit>generic_hr_image_pressed</PressedHighlit>
      <Disabled>generic_hr_image_disabled</Disabled>
   </HorizontalResizeButtonTemplate>
   <TextAreaTemplate>
      <Name>generic_textarea_sm</Name>
      <Parent>none</Parent>
      <ScrollbarTemplate>generic_vscroll</ScrollbarTemplate>
      <LinePadding>0</LinePadding>
      <BackgroundTemplate>dlg_interior_small</BackgroundTemplate>
      <TextOffset>
         <X>10</X>
         <Y>5</Y>
      </TextOffset>
      <Font>
         <Name>resize_font</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorActive>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorActive>
      </Font>
      <ScrollbarOffset>
         <X>3</X>
         <Y>2</Y>
      </ScrollbarOffset>
      <ScrollbarSizeOffset>
         <X>0</X>
         <Y>-4</Y>
      </ScrollbarSizeOffset>
   </TextAreaTemplate>
   <TextAreaTemplate>
      <Name>generic_textarea_sm_nobg</Name>
      <Parent>none</Parent>
      <ScrollbarTemplate>generic_vscroll</ScrollbarTemplate>
      <LinePadding>0</LinePadding>
      <BackgroundTemplate>none</BackgroundTemplate>
      <TextOffset>
         <X>10</X>
         <Y>5</Y>
      </TextOffset>
      <Font>
         <Name>resize_font</Name>
         <ColorNormal>
            <R>192</R>
            <G>192</G>
            <B>192</B>
            <A>255</A>
         </ColorNormal>
         <ColorActive>
            <R>255</R>
            <G>255</G>
            <B>255</B>
            <A>255</A>
         </ColorActive>
      </Font>
      <ScrollbarOffset>
         <X>3</X>
         <Y>2</Y>
      </ScrollbarOffset>
      <ScrollbarSizeOffset>
         <X>0</X>
         <Y>-4</Y>
      </ScrollbarSizeOffset>
   </TextAreaTemplate>

to assets.xml

Code:
<Texture>
      <Name>social_page4</Name>
      <File>isles/page_04.tga</File>
   </Texture>
(don't need to rename the file as it's looking in the standard UI directories)

plus you'll need to create a community_window.xml as the default won't be able to find its textures with a different name (it falls back to the isles if you don't have one), so create a new community_window.xml with page4 replaced with social_page4

(here's one I made earlier: http://www.roguishness.com/daoc/uifix/community_window.xml)
 

Jupiter

Fledgling Freddie
Joined
Feb 1, 2004
Messages
1,443
eerm have these changes been changed on the first post? cause i just read the rest of the thread:p and nice work
 

Users who are viewing this thread

Top Bottom