One of the things troubling me most about our friendly UI interface is the Dynamic data issue. For example
the /Gamedata.self.experiencecurrent is updated whenever your XP changes however NONE of the onshow, onactivate, onenable etc... flags recognize that it changes.
Anyone have any ideas on how to know when a dynamic changes? I thought perhaps using the Actiontype="Experience" on a button or page would allow me to track it but no luck so far.
The usage I'm after is to get the XP value convert it properly to a number combine with the bubbleXP and make the correct number display. Otherwise if you just crop and past numbers you are always wrong when the number changes over a decade mark.
Cropping numbers ... like a picture doesn't change it at all you just adjust the "frame" in this case a page around it. A typical 3 digit number in Arial 14 would be 20,15 in size you right or left justify it depending on the end you want to cut off. Place it in a page of smaller size
Ok, that's the technique we are all using, that's just a visual crop (I had hoped you had found a way to crop the number itself). In that case you don't need events to copy the XP data to your text field, just make it use the dynamic data directly.
Nope, still want to find an event or way to know of change =)
Different example. Your target changes simple your UI will show it NP since you are using dynamicdata. However let us assume that if you could KNOW when it changed IE through an onXXX event or filter of some kind then you could implement say a target lock.
target <> oldtarget then dammit better change it back hehe. Not code but it is the idea.
Or in the XP bar version if you KNEW when it changed you could run the text value through a comparison and actually substitue the correct text. Since the last digit of currentexperience should actually be the tens digit of the experiencebubble you either want to change the 103% XP 25% bubble into 10 and then change the bubble text to 2.5% etc... or change the 103% to '102.' and simply crop the tens place off the bubble xp.
Lots of handy uses in different places where dynamic data occurs if only there is a way to detect the change. For progress bars the text value won't convert to a number for math, nor can you assign it to a textbox - slider etc... and use their onchange events.
Any ideas?
Sorry I was unclear before. There is a bastardized form of regular expressions that works occasionally on normal data but won't touch dynamics for some reason so I'm stumped unless I can detect the change and trigger a button.