View Single Post
  #199  
Unread 11-21-2008, 05:28 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

That's what I've been doing
Quote:
Originally Posted by nluerdarea View Post
Sounds like almost all the setbacks have been hurdled, just need to code something up =)

Ok, it's almost fully functional. I think the only problem is the CombatBubbles (and lag), but this is working better than I thought. I still notice little problems with Primary/Secondary working together, but I'm sure we can fix that. I'm under the impression that the Primary/Secondary problem has to do with the CombatBubbles.

I noticed that Ranged Combat bubbles function differently than melee. What happens is that you don't see the combat bubble until the arrow hits the target (It takes half of the delay time). I had to multipy the ranged SpeedCalc by 2 so that the ranged speed of the bar would be on par with the attack.

Please report any bugs/issues in this thread


Remember to put <include>eq2ui_custom_autoattacktimer.xml</include> inside your eq2ui_custom file. You don't need to type anything to make it work, just auto-attack
Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="317,572" MinimumSize="400,43" Name="AutoAttackTimer" PackLocation="center,bottom" ScrollExtent="400,43" Size="400,43" UserMovable="true">
<Composite AbsorbsInput="false" MinimumSize="400,43" Name="TimerPages" PackSize="a,a" ScrollExtent="400,82" Size="400,82" SpacingType="Fill">
<Button AbsorbsInput="false" Location="0,0" Name="CombatBubbleOnShow" OnPress="Parent.Parent.Parent.Parent.ProxyActor.CombatBubble.OnShow=TMP" ScrollExtent="0,0" Size="0,0" TMP="Parent.Parent.AutoAttackTimer.TimerPages.MeleePage.Primary.ProgressPage.ProgressTimer.Press=true Parent.Parent.AutoAttackTimer.TimerPages.MeleePage.Secondary.ProgressPage.ProgressTimer.Press=true Parent.Parent.AutoAttackTimer.TimerPages.Ranged.ProgressPage.ProgressTimer.Press=true" Visible="false"/>
<Page AbsorbsInput="false" MinimumSize="400,43" Name="MeleePage" ScrollExtent="400,82" OnShow="Secondary.Visible=false
Secondary.Visible=Secondary.DelayValue.Visible
Parent.CombatBubbleOnShow.Press=true" PackSize="a,a" Size="400,82" Visible="false">
<Page AbsorbsInput="false" DynamicData="/GameData.Self.AutoAttack" MaximumSize="400,39" MinimumSize="400,39" Name="Primary" OnHide="hide_window Custom.AutoAttacktimer" OnShow="Parent.Visible=true
show_window Custom.AutoAttacktimer" ScrollExtent="400,39" Size="400,39" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Primary Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Primary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false"/>
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" 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"/>
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerPrimary.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerPrimary" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false"/>
<LocationEffector Name="TimerTriggerPrimary"/>
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14"/>
</Page>
<Page AbsorbsInput="false" Location="0,39" MaximumSize="400,39" MinimumSize="400,39" Name="Secondary" OnHide="Parent.Parent.Parent.Size=&apos;400,43&apos;" OnShow="Parent.Parent.Parent.Size=&apos;400,82&apos;
Parent.Parent.Parent.WindowFrame.Size=&apos;402,85&apos;
Parent.Parent.Parent.WindowFrame.Frame.Size=&apos;402,85&apos;
Parent.Parent.Parent.WindowFrame.Bkg.Size=&apos;402,85&apos;" ScrollExtent="400,39" Size="400,39" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Secondary Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Secondary_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" OnHide="Parent.Visible=false" OnShow="Parent.Visible=true" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false" Visible="false"/>
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" 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"/>
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
Parent.TimerTriggerSecondary.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerSecondary" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false"/>
<LocationEffector Name="TimerTriggerSecondary"/>
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14"/>
</Page>
</Page>
<Page AbsorbsInput="false" DynamicData="/GameData.Self.RangedAutoAttack" Location="0,39" MaximumSize="400,39" MinimumSize="400,39" Name="Ranged" OnHide="Parent.MeleePage.Visible=true" OnShow="Parent.Parent.Size=&apos;400,43&apos;
Parent.Parent.WindowFrame.Size=&apos;402,46&apos;
Parent.Parent.WindowFrame.Frame.Size=&apos;402,46&apos;
Parent.Parent.WindowFrame.Bkg.Size=&apos;402,46&apos;
Parent.MeleePage.Visible=false" ScrollExtent="400,39" Size="400,39" Visible="false">
<Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="40,4" Margin="1,0,2,2" Name="AutoAttackText" ScrollExtent="356,21" ShadowStyle="/ShadowStylesNew.OutlineDrop.style" Size="356,21" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#F0D080">Ranged Auto Attack</Text>
<Text AbsorbsInput="false" DynamicData="/GameData.Stats.Ranged_Delay" Enabled="false" Font="/TextStyles.Small.SmallStyle" Location="4,26" Name="DelayValue" ScrollExtent="35,12" ShadowStyle="/ShadowStylesNew.Drop.style" Size="35,12" TextAlignment="Right" TextAlignmentVertical="Center" UserScrollable="false"/>
<Page AbsorbsInput="false" Location="43,28" Name="ProgressPage" 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"/>
<Button AbsorbsInput="false" Location="-350,0" MaximumSize="350,8" MinimumSize="350,8" Name="ProgressTimer" OnEffectFinished="Location=&apos;-350,0&apos;" OnPress="SpeedCalc=350/Parent.Parent.DelayValue.Text
SpeedCalc=SpeedCalc*2
Parent.TimerTriggerRanged.Speed=SpeedCalc ## &apos;,0&apos;" OnPressEffector="TimerTriggerRanged" ScrollExtent="350,8" Size="350,8" Style="ProgressTimerStyle" Visible="false"/>
<LocationEffector Name="TimerTriggerRanged"/>
</Page>
<Image AbsorbsInput="false" Location="43,28" Name="Bkg" ScrollExtent="350,8" Size="350,8" SourceRect="220,472,380,478" SourceResource="/images/window_elements_generic.dds"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="40,25" Name="Frame" RStyleDefault="/rectlist.chat_bubble_frame" ScrollExtent="356,14" Size="356,14"/>
</Page>
</Composite>
<ButtonStyle Name="ProgressTimerStyle" RStyleDefault="Progress_Timer.progress_timer_rect"/>
<Namespace Name="Progress_Timer">
<ImageStyle Name="progress_timer_fill">
<ImageFrame Name="progress_fill" Source="images/window_elements_generic.dds" SourceRect="218,464,219,470"/>
</ImageStyle>
<RectangleStyle Center="progress_timer_fill" CenterShrinkV="true" CenterStretchH="false" Name="progress_timer_rect" NorthStretch="false" SouthStretch="false" TitleStretch="false" WestStretch="false"/>
</Namespace>
<Page Location="-1,-2" MinimumSize="402,46" Name="WindowFrame" PackSize="absolute,absolute" ScrollExtent="402,46" Size="402,46">
<Page AbsorbsInput="false" BackgroundOpacity="1.000" MinimumSize="402,46" Name="Frame" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.frame.rect" ScrollExtent="402,46" Size="402,46"/>
<Page AbsorbsInput="false" BackgroundOpacity="1.000" MinimumSize="402,46" Name="Bkg" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.bkg.rect" ScrollExtent="402,46" Size="402,46"/>
</Page>
</Page>
Attached Files
File Type: xml eq2ui_custom_autoattacktimer.xml (9.4 KB, 370 views)
__________________
May Jesus Have Mercy On Us

Last edited by dragowulf : 11-21-2008 at 05:31 PM.