View Single Post
Old 05-14-2003, 10:51 PM   #5
forry
Enhanced Imperial Golem
 
Join Date: Aug 2002
Server: Tarew Marr
Posts: 236
Interface Author - Click to view interfaces
Default

Ok, here it goes:

** EDIT - This is only for the forry UI, because I moved code around from the original timer windows.

How to change the timers.



1. First you need to calculate the duration for the timer. This is done by
using the following formula:

X = the time in minutes that you want the timer to be (then just add any seconds that you want to the answer of the X*60)

[(X * 60) / 120] * 1000

ex. I want a 6 minute timer: 6 * 60 = 360
360 / 120 = 3
3 * 1000 = 3000
so the duration = 3000

2. Now open the EQUI_Forry.xml file and search for the following: A_ForryTimerBar
(You will find two of these, #1 [top] and #2 [bottom])

3. This item will be made up of multiple <Frame> lines. In these <Frame> lines
you will see a <Duration> section (ex. <Duration>2500</Duration>)
These duration numbers must be changed to what you calculated above.

- Easiest way to do this is to do a Find/Replace and use the current setting
of the duration section for the find.
(ex. Find = <Duration>2500</Duration>
Replace = <Duration>3000</Duration> )

4. Once you are done, save the file.

5. Now open the EQUI_TargetWindow.xml file.

6. Do a search for the following: TW_ForryTimerName0 or TW_ForryTimerName1
(0 is the top timer, 1 is the bottom)

7. You should see something like this:

<StaticText item="TW_ForryTimerName0">
<Location>
<X>10</X>
<Y>5</Y>
</Location>
<Size>
<CX>90</CX>
<CY>10</CY>
</Size>
<Font>1</Font>
<TextColor>
<R>0</R>
<G>0</G>
<B>0</B>
</TextColor>
<NoWrap>true</NoWrap>
<Text>5 Minutes</Text>
</StaticText>

<StaticText item="TW_ForryTimerDuration0">
<Location>
<X>97</X>
<Y>5</Y>
</Location>
<Size>
<CX>36</CX>
<CY>10</CY>
</Size>
<Font>1</Font>
<TextColor>
<R>0</R>
<G>0</G>
<B>0</B>
</TextColor>
<NoWrap>true</NoWrap>
<AlignRight>true</AlignRight>
<Text>5:00</Text>
</StaticText>

8. Edit the <Text> item in both the TW_ForryTimerName and the
TW_ForryTimerDuration to be what you have changed the timer too
(ex. <Text>6 Minute Timer</Text> - TW_ForryTimerName
<Text>6:00</Text> - TW_ForryTimerDuration )

9. After making the needed changes, save this file.

10. You should be set to go!


If this is confusing, I'm sorry Tried to make it easy for you. Good luck
__________________

forry is offline   Reply With Quote