EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > General Discussion > Request

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12  
Unread 09-20-2006, 04:37 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

Loops aren't the issue. You can make a single page toggle it self on and off to create a loop. The issue I ran into is SelectedItemIndex will not accept a floating point number and as we all know EQ2's script engine always turns any number into a floating point when math is done on it. (1+1 = 2.000).

If one could find a way to increment the Events List SelectedItemIndex other then adding a ton of dummy pages to do so, then something like this would be a good tool for DKP automation:P

Here is the code I used, just insert into Guild.MainTabPage.MainPage.After

Code:
<Page Location="247,83" Name="GuildEventDump" ScrollExtent="233,31" Size="233,31">
<Page Count="1.000" Name="DumpLoop" OnHide="RangeCheck=Parent.Parent.Events.List.SelectedItemIndex &lt; Range
OutPut=&apos;ID: &apos; ## Parent.Parent.Events.List.SelectedItem.id
OutPut=OutPut ## &apos; Date: &apos; ## Parent.Parent.Events.List.selectedItem.date
OutPut=OutPut ## &apos; Time: &apos; ## Parent.Parent.Events.List.selectedItem.timestamp
OutPut=OutPut ## &apos; Type: &apos; ## Parent.Parent.Events.List.selectedItem.type
OutPut=OutPut ## &apos; Text: &apos; ## Parent.Parent.Events.List.selectedItem.text
Count=Count +1
Parent.Parent.Events.List.SelectedItemIndex=Parent.Parent.Events.List.SelectedItemIndex +1
Visible=(RangeCheck ? True : False)" OnShow="RangeCheck=Parent.Parent.Events.List.SelectedItemIndex &lt; Range
OutPut=&apos;ID: &apos; ## Parent.Parent.Events.List.SelectedItem.id
OutPut=OutPut ## &apos; Date: &apos; ## Parent.Parent.Events.List.selectedItem.date
OutPut=OutPut ## &apos; Time: &apos; ## Parent.Parent.Events.List.selectedItem.timestamp
OutPut=OutPut ## &apos; Type: &apos; ## Parent.Parent.Events.List.selectedItem.type
OutPut=OutPut ## &apos; Text: &apos; ## Parent.Parent.Events.List.selectedItem.text
Count=Count +1
Parent.Parent.Events.List.SelectedItemIndex=Parent.Parent.Events.List.SelectedItemIndex +1
Visible=(RangeCheck ? False : True)" OutPut="ID: 262534 Date: 01/03/2005 Time: 37265274 Type: 0 Text: :b86ef43fe3a89f2c:GuildName gained a level and is now level 10" Range="10" RangeCheck="true"/>
<DataSource Name="DumpRangeDS">
<Data Name="New Data" Range="--" text="Event DumpRange"/>
<Data Name="New Data" Range="--" text="ALL"/>
<Data Name="New Data" Range="10" text="10"/>
<Data Name="New Data" Range="20" text="20"/>
<Data Name="New Data" Range="30" text="30"/>
<Data Name="New Data" Range="40" text="40"/>
<Data Name="New Data" Range="50" text="50"/>
<Data Name="New Data" Range="60" text="60"/>
<Data Name="New Data" Range="70" text="70"/>
<Data Name="New Data" Range="80" text="80"/>
<Data Name="New Data" Range="90" text="90"/>
<Data Name="New Data" Range="100" text="100"/>
</DataSource>
<Dropdownbox BackgroundOpacity="1.000" CheckRange="true" DataSource="DumpRangeDS" Location="85,0" MaximumSize="16384,32" MinimumSize="50,32" Name="DumpRange" OnSelect="CheckRange=SelectedItemIndex &gt; 0
Parent.Dump.Enabled=(CheckRange ? True : False)" RowTemplate="/CommonElements.Dropdown.data.dropdown_template" ScrollExtent="147,32" SelectedItemIndex="2" Size="147,32" Style="/CommonElements.Dropdown.data.style"/>
<Button LocalText="Dump" Location="0,3" MaximumSize="16384,26" MinimumSize="26,26" Name="Dump" OnPress="Parent.DumpLoop.Temp=&apos;&apos;
Parent.DumpLoop.Count=0
Parent.Parent.Events.List.SelectedItemIndex=0
Parent.DumpLoop.Range=Parent.DumpRange.SelectedItem.Range
Parent.DumpLoop.Visible=(Parent.DumpLoop.Visible ? False : True)" ScrollExtent="89,26" Size="89,26" Style="/CommonElements.SmallPushButton.data.style">Dump</Button>
</Page>
WARNING: This code will crash the UIBuilder and EQ2 because SelectedItemIndex will not get incremented correctly
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 09-20-2006 at 07:59 AM.
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:12 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI