---------------------------------------------------
Instalation instructions for Mahonri's Timer Window
---------------------------------------------------

This readme file assumes you know how to or have already
setup a custom ui folder so you can use custom ui pieces.

If you need assistance with setting up a custom ui folder,
please visit this page:

http://www.eq2interface.com/forums/faq.php?faq=howto_install#faq_installing_eq2ini


File placement
--------------
After downloading Mahonri's_Timer_Window.zip extract the xml
file into your custome ui folder and the dds file into
a folder called "images" inside your custom ui folder.


XML file alterations
--------------------
First locate these files in your custom ui folder:
- eq2ui_mainhud.xml
- eq2ui_mainhud_startbutton.xml

if either or both are missing from your custom ui folder
you will need to copy and paste them from the default ui
folder.

Once they are both in your custom ui folder right click on
eq2ui_mainhud.xml and select Open With > Notepad.  This opens
the file in Notepad. Now you will need to add a line of code.

Here is an example of what you see when you open the file:

<?xml version="1.0" encoding="utf-8"?>
<Page ismodule="true" Name="MainHUD" PackSize="1,1" PackSizeProp="0002/0003,0002/0003" ScrollExtent="1024,768" Size="1024,768" Visible="false">
<include>eq2ui_mainhud_advancementchoice.xml</include>
<include>eq2ui_mainhud_advancementbutton.xml</include>
<include>eq2ui_mainhud_breath.xml</include>
<include>eq2ui_mainhud_popup.xml</include>
<include>eq2ui_mainhud_casting.xml</include>
<include>eq2ui_mainhud_character.xml</include>
<include>eq2ui_mainhud_chatoptions.xml</include>
<include>eq2ui_mainhud_clock.xml</include>
<include>eq2ui_mainhud_compass.xml</include>
<include>eq2ui_mainhud_death.xml</include>
<include>eq2ui_mainhud_editmacro.xml</include>
<include>eq2ui_mainhud_effects.xml</include>
...

Notice all the lines that begin with <include>
These lines are what allow all the ui windows to show up
on your screen.  Without them there would be no ui elements.

Note: there are many more lines than this.  I am only including
an example for the purposes of this readme file.

Now, what you need to do is add your own <include> line for the
Coin Info window.  Here's what you do:

Copy these lines:

<include>eq2ui_mainhud_timer.xml</include>
<include>eq2ui_mainhud_timersettings.xml</include>

within all the others

the elements are set up alphabetically in the default file, but
the purposes of this readme file we'll just stick 'em in.  (Order
doesn't really matter here.)  Paste the new line after the one
for the clock window like this:

<?xml version="1.0" encoding="utf-8"?>
<Page ismodule="true" Name="MainHUD" PackSize="1,1" PackSizeProp="0002/0003,0002/0003" ScrollExtent="1024,768" Size="1024,768" Visible="false">
<include>eq2ui_mainhud_advancementchoice.xml</include>
<include>eq2ui_mainhud_advancementbutton.xml</include>
<include>eq2ui_mainhud_breath.xml</include>
<include>eq2ui_mainhud_popup.xml</include>
<include>eq2ui_mainhud_casting.xml</include>
<include>eq2ui_mainhud_character.xml</include>
<include>eq2ui_mainhud_chatoptions.xml</include>
<include>eq2ui_mainhud_clock.xml</include>
<include>eq2ui_mainhud_compass.xml</include>
<include>eq2ui_mainhud_death.xml</include>
<include>eq2ui_mainhud_editmacro.xml</include>
<include>eq2ui_mainhud_effects.xml</include>
<include>eq2ui_mainhud_timer.xml</include>		   <=== NEW CODE
<include>eq2ui_mainhud_timersettings.xml</include>	   <=== NEW CODE
...

Save the file.

Your eq2ui_mainhud.xml file is ready.



Now for the eq2ui_mainhud_startbutton.xml file...

Open this file the same way you opened the last one.
Here's some of what you see in the default file:

<?xml version="1.0" encoding="utf-8"?>
<Page Activated="true" alwaysonbottom="false"
 eq2usescomwndcontrols="true" Location="-3,712"
 MaximumSize="1024,1024" Name="StartButton"
 PackLocation="left,bottom" PackLocationProp="-003/0001,-056/0001"
 savessettings="true" ScrollExtent="58,56" Size="58,56" UserMovable="true">
...

NOTE: This will all be on the first line of the file.  Do not
alter the line.  I only did this to show the entire line on one screen,

The reason we need to alter this file is so that the new file, which
is not a standard window, will appear when you log in.  To do this we
need to add a command to this line.

After Name="StartButton" and before PackLocation="left,bottom" add this command:

OnShow="show_window=(MainHUD.Timer) show_window=(MainHUD.Timer)"

So the new code will loke like this:

<?xml version="1.0" encoding="utf-8"?>
<Page Activated="true" alwaysonbottom="false"
 eq2usescomwndcontrols="true" Location="-3,712"
 MaximumSize="1024,1024" Name="StartButton"
 OnShow="show_window=(MainHUD.CoinInfo) show_window=(MainHUD.Timer)" 	 <=== NEW CODE
 PackLocation="left,bottom" PackLocationProp="-003/0001,-056/0001"
 savessettings="true" ScrollExtent="58,56" Size="58,56" UserMovable="true">
...

Yes, it does look repetative with the same thing being said twice in
the command, but for some odd reason that's how it has to be.

If you have a version of the eq2ui_mainhud_startbutton.xml file that
already has an OnShow command in the first line then simply add this:

show_window=(MainHUD.Timer) show_window=(MainHUD.Timer)

within the quotation marks for the command.

Save the file.

Your eq2ui_mainhud_startbutton.xml file is ready.


Conclusion
----------

Assuming I have explained correctly, your new Timer Window should
be waiting for you next time you log on.

ENJOY!