View Single Post
  #160  
Unread 11-17-2008, 10:40 PM
dragowulf's Avatar
dragowulf dragowulf is offline
A man among men
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Nagafen
Posts: 934
Default

Ok. I'm using a LocationEffector. To make the delay count down, I took the Size of the movementbar and divided it by the Delay, which equals the Speed of the LocationEffector, which in turn counts down the delay number exactly and perfectly.

Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="317,572" Name="AutoAttack" PackLocation="center,bottom" ScrollExtent="429,43" Size="429,43" UserMovable="true">
<Page eq2usescomwndcontrols="true" Loaded="true" MaximumSize="429,43" Name="AutoAttackTimer" Press="true" ScrollExtent="429,43" Size="429,43">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Margin="1,0,2,2" Name="AutoAttackText" PackSize="absolute,fixed" ScrollExtent="429,22" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="429,22" TextAlignment="Center" TextColor="#F0D080">Primary Auto Attack</Text>
<Text AbsorbsInput="false" Color="#00FF40" DynamicData="/GameData.Stats.Primary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="0,22" Name="PrimaryDelayValue" ScrollExtent="39,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="39,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false">10.0</Text>
<Page AbsorbsInput="false" Name="CalcPage">
<Button AbsorbsInput="false" DynamicData="/GameData.Self.AutoAttack" MaximumSize="0,0" Name="AutoAttack" OnShow="SpeedCalc=350/(Parent.Parent.PrimaryDelayValue.Text)
Parent.Parent.MoveRight.Speed=SpeedCalc ## &apos;,0&apos;
Parent.Parent.ProgressPage.ProgressTimer.Visible=false
Parent.Parent.ProgressPage.ProgressTimer.Visible=true" Opacity="0.000" Rotation="0.500" SpeedCalc="35.000" TextMaxLines="0" Visible="false" />
</Page>
<Page AbsorbsInput="false" Location="43,24" Name="ProgressPage" PackLocation="top,left" ScrollExtent="350,8" Size="350,8">
<Page BackgroundOpacity="0.475" Location="68,0" Name="Marker20" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="137,0" Name="Marker40" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="205,0" Name="Marker60" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundOpacity="0.475" Location="274,0" Name="Marker80" PackLocation="npn,nfn" ScrollExtent="1,8" Size="1,8" />
<Page BackgroundColor="#FF0000" BackgroundOpacity="1.000" Location="-350,0" Name="ProgressTimer" OnHide="Location=&apos;-350,0&apos;" OnShowEffector="MoveRight" PackSize="a,f" RStyleDefault="ProgressBar" ScrollExtent="350,8" Size="350,8" Visible="false" />
</Page>
<LocationEffector Loop="true" Name="MoveRight" Speed="35,0" />
<RectangleStyle Center="progress_fill" CenterShrinkV="true" CenterStretchH="false" Name="ProgressBar" NorthStretch="false" SouthStretch="false" TitleStretch="false" WestStretch="false" />
<ImageStyle Name="progress_fill">
<ImageFrame Name="progress_fill" Source="images/window_elements_generic.dds" SourceRect="218,464,219,470" />
</ImageStyle>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,21" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14" />
<Image AbsorbsInput="false" Location="43,24" Name="Bkg" PackSize="absolute,fixed" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds" />
</Page>
</Page>
Attached Files
File Type: xml eq2ui_custom_autoattack.xml (3.1 KB, 393 views)
__________________
May Jesus Have Mercy On Us

Last edited by dragowulf : 11-17-2008 at 11:00 PM.