tp
10-12-2009 13:53:46
I want to have a widget that is rotated as things happen in my game. Preferably this would happen so that just one subskin in a widget rotates, while others stay stationary.
I think the RotatingSkin subskin type is there for this purpose, but how do I use it? If I have read the API correctly, the Widget interface does not allow me to get to subskins, so I can never get a reference to the RotatingSkin object, neither is there anything on the Widget level for this. Is the only way implementing a new widget type that gets lower level control over the subskins?
I don't think the usage of RotatingSkins is covered by any demos, although I'd be more than happy to be proven wrong on this.
Any help would be appreciated.
I think the RotatingSkin subskin type is there for this purpose, but how do I use it? If I have read the API correctly, the Widget interface does not allow me to get to subskins, so I can never get a reference to the RotatingSkin object, neither is there anything on the Widget level for this. Is the only way implementing a new widget type that gets lower level control over the subskins?
I don't think the usage of RotatingSkins is covered by any demos, although I'd be more than happy to be proven wrong on this.
Any help would be appreciated.