Quote:
|
Originally Posted by ger
I didn't mean resizeable in-game so much as in the underlying code. If I understand your code correctly, each guage would have to be coded at actual size, meaning you'd have to define image and progressbar sets for every size. I was shooting for a model where the image and progressbar definitions are only done once but the code for the rest of the objects changes. I think in the long run your method saves on a lot of really annoying math.
|
Hmm I'm not 100% sure you would need different styles and images for different sizes..
It uses 3 images for Horizontal PBs that are 480x120
and 2 images for Vertical PBs that are 120x480..
as long as you kept the ratios for the sizes 1/4 and 4/1 the same and reposistioned it corectly it should work..
What I mean is if you change the Size of all the vertical PBs to say 60x240 and reposistion it correctly.. Then change the sizes of the horizontal PBs to 240x60 and reposistioned them correctly.. They should look ok..
However if you wanted one to empty clockwise and another to empty counter clockwise you would need another set of images and styles..
Again not 100% sure.. I will check it out if I get a chance..