View Single Post
  #1  
Unread 07-15-2006, 03:26 AM
robear0001 robear0001 is offline
A Young Mystail Rat
 
Join Date: Apr 2006
Server: Antonia Bayle
Posts: 2
Default Images Affected by DynamicData

I am going to admit right away that though I have been programming for years and I have been following this site since I started playing EQ2. I have modified some UI's but have hit a brick wall.

Here is my wall. I know how to display the gamedata.self.experienceyadayada as text. I also know how to make an image display and to set which rect area of my image is displayed in the image window. I know you can scroll it, but have not figured out how to scroll the main image file through the rect

Is there a way to alter an images SourceRect based on the value of the dynamicdata. I hate being a noob... kind of like-

dd=dynamicdata

if dd<10 then sourcerect="0,0,20,30"
if dd<20 && dd>10 then sourcerect="20,0,40,30"

etc...

I know this isn't xml conditions, thats my problem, how would you code that to adjust the images position based on one of the dynamic data variables

Thanks in advance

Robear
Reply With Quote