View Single Post
  #188  
Unread 11-21-2008, 03:04 AM
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

Quote:
Originally Posted by gm9 View Post
What's the issue with resetting?
It resynchs upon each time anything happens with the combat bubbles (ie. when u attack, get hurt, riposite, etc.). I think I can fix it by making the OnPress take off the bubble's OnShow and then when effect is finished it would be reapplied.

I also have a new problem. (NOTE: I want to keep secondary and primary in the same window). What happens is that when I have dual wield weapons equipped upon logging in, it works fine. But when I have only the primary equipped upon logging in, it doesn't work. I've tried a couple things and I think I could use some help.

I changed a lot and renamed it eq2ui_autoattacktimer. I haven't got to ranged yet, but I'm assuming it will be easy.
Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="317,572" MinimumSize="400,43" Name="AutoAttackTimer" OnHide="Parent.Parent.ProxyActor.CombatBubble.OnShow=&apos;&apos;" PackLocation="center,bottom" ScrollExtent="400,82" Size="400,82" UserMovable="true">
<Composite AbsorbsInput="false" MinimumSize="400,43" Name="TimerPages" PackSize="a,a" ScrollExtent="400,82" Size="400,82" SpacingType="Fill">
<Page AbsorbsInput="false" DynamicData="/GameData.Self.AutoAttack" MaximumSize="400,39" MinimumSize="400,39" Name="Primary" 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.Parent.ProxyActor.CombatBubble.OnShow=TMP2" OnShow="Parent.Parent.Parent.Parent.ProxyActor.CombatBubble.OnShow=TMP" ScrollExtent="400,39" Size="400,39" TMP="Parent.Parent.AutoAttackTimer.TimerPages.Primary.ProgressPage.ProgressTimer.Press=true Parent.Parent.AutoAttackTimer.TimerPages.Secondary.ProgressPage.ProgressTimer.Press=true" 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 AbsorbsInput="false" DynamicData="/GameData.Self.RangedAutoAttack" Location="0,39" MaximumSize="400,39" MinimumSize="400,39" Name="Ranged" 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
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,85" Size="402,85">
<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,85" Size="402,85" />
<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,85" Size="402,85" />
</Page>
</Page>
__________________
May Jesus Have Mercy On Us