Replying to my own thread, as much as i talk to myself when writing code...
I fixed the problem i was having, only because i happened to stumble unto another
OnEvent, OnTextChanged. Was able to use that to rewrite the block to showup and not try to talk to chat.
For anyone who might be interested.
My next step would be to find a way to colorize each element of that text, before putting it together. Anyone have any ideas?
.Regards
---
Meh. Stupid thing wasn't updating properly, so had to go back to the beginning and did this instead.
Code:
<Page Location="2616,-2" MaximumSize="132,20" MinimumSize="132,20" Name="Coin" ScrollExtent="110,20" Size="117,20" c="0" plat.text="0">
<Text Margin="0,0,5,0" Name="Cash" Font="/TextStyles.Large.LargeStyle" ShadowStyle="/ShadowStyles.BlackOutlineNoShadow.Outline1" Location="1,2" ScrollExtent="93,21" Size="93,21" />
<Text Visible="False" actiontype="Coin" cointype="0" Dragable="true" DragAccepts="icon" DragType="coin" DynamicData="/GameData.Coins.Coin_0" Font="/TextStyles.Large.LargeStyle" ShadowStyle="/ShadowStyles.BlackOutlineNoShadow.Outline1" Location="87,2" Margin="0,0,5,0" Name="Copp" ScrollExtent="23,16" Size="23,16" TextAlignmentVertical="Center" TextColor="#EA9129" Tooltip=":80c1011d45dc813c:Copper" TreatAsButton="true" ActionData="coin 0" TextAlignment="right" ontextchanged="
havp = Parent.Plat.text > 0
havg = Parent.Gold.text > 0
havs = Parent.Silv.text > 0
havc = Parent.Copp.text > 0
putp = Parent.Plat.text ## ('p ') ## Parent.Gold.text ## ('g ') ## Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
putg = Parent.Gold.text ## ('g ') ## Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
puts = Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
putc = Parent.Copp.text ## ('c ')
cres = (havc ? putc : ' poor ' )
sres = (havs ? puts : cres)
gres = (havg ? putg : sres)
pres = (havp ? putp : gres)
parent.cash.Text = pres
"/>
<Text Visible="False" actiontype="Coin" cointype="1" Dragable="true" DragAccepts="icon" DragType="coin" DynamicData="/GameData.Coins.Coin_1" Font="/TextStyles.Large.LargeStyle" ShadowStyle="/ShadowStyles.BlackOutlineNoShadow.Outline1" Location="64,2" Margin="0,0,5,0" Name="Silv" ScrollExtent="23,16" Size="23,16" TextAlignmentVertical="Center" TextColor="#A0A0A0" Tooltip=":80c1011dd708e292:Silver" TreatAsButton="true" ActionData="coin 1" TextAlignment="right" ontextchanged="
havp = Parent.Plat.text > 0
havg = Parent.Gold.text > 0
havs = Parent.Silv.text > 0
havc = Parent.Copp.text > 0
putp = Parent.Plat.text ## ('p ') ## Parent.Gold.text ## ('g ') ## Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
putg = Parent.Gold.text ## ('g ') ## Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
puts = Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
putc = Parent.Copp.text ## ('c ')
cres = (havc ? putc : '' )
sres = (havs ? puts : cres)
gres = (havg ? putg : sres)
pres = (havp ? putp : gres)
parent.cash.Text = pres
"/>
<Text Visible="False" actiontype="Coin" cointype="2" Dragable="true" DragAccepts="icon" DragType="coin" DynamicData="/GameData.Coins.Coin_2" Font="/TextStyles.Large.LargeStyle" ShadowStyle="/ShadowStyles.BlackOutlineNoShadow.Outline1" Location="41,2" Margin="0,0,5,0" Name="Gold" ScrollExtent="23,16" Size="23,16" TextAlignmentVertical="Center" TextColor="#FFEE70" Tooltip=":80c1011d18644d90:Gold" TreatAsButton="true" ActionData="coin 2" TextAlignment="right" ontextchanged="
havp = Parent.Plat.text > 0
havg = Parent.Gold.text > 0
havs = Parent.Silv.text > 0
havc = Parent.Copp.text > 0
putp = Parent.Plat.text ## ('p ') ## Parent.Gold.text ## ('g ') ## Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
putg = Parent.Gold.text ## ('g ') ## Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
puts = Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
putc = Parent.Copp.text ## ('c ')
cres = (havc ? putc : '' )
sres = (havs ? puts : cres)
gres = (havg ? putg : sres)
pres = (havp ? putp : gres)
parent.cash.Text = pres
"/>
<Text Visible="False" actiontype="Coin" cointype="3" Dragable="true" DragAccepts="icon" DragType="coin" DynamicData="/GameData.Coins.Coin_3" Font="/TextStyles.Large.LargeStyle" ShadowStyle="/ShadowStyles.BlackOutlineNoShadow.Outline1" Location="1,2" Margin="0,0,5,0" MaxLines="1" Name="Plat" ScrollExtent="40,16" Size="40,16" TextAlignmentVertical="Center" Tooltip=":80c1011d293ba1c4:Platinum" TreatAsButton="true" ActionData="coin 3" TextAlignment="right" ontextchanged="
havp = Parent.Plat.text > 0
havg = Parent.Gold.text > 0
havs = Parent.Silv.text > 0
havc = Parent.Copp.text > 0
putp = Parent.Plat.text ## ('p ') ## Parent.Gold.text ## ('g ') ## Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
putg = Parent.Gold.text ## ('g ') ## Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
puts = Parent.Silv.text ## ('s ') ## Parent.Copp.text ## ('c ')
putc = Parent.Copp.text ## ('c ')
cres = (havc ? putc : '' )
sres = (havs ? puts : cres)
gres = (havg ? putg : sres)
pres = (havp ? putp : gres)
parent.cash.Text = pres
"/>
</Page>
Probably the most cumbersome thing i've ever written. Yah EQ scripting !!!!!! Still no colorizing, which i really wanted.
Anyway, the objective of this post was to find a way to do this, and basically to get a list of
OnEvents that i could use to execute the scripts. I'm still seeking that list, if anyone has anything.
.Regards