GUIButton with bitmaps
by rwillis · in Torque X 2D · 03/18/2008 (10:03 pm) · 2 replies
For the GUIButton class, is there some built-in way to assign it a bitmap and change it based on whether it's selected or not?
I WAS using the GUIBitmapButton class (froma starter kit I think) which had a ".SelectedTexture" and ".NormalTexture" parameters that automatically changed the bitmap based on whether it was selected or not, but that class no longer works with Torque 2.0.
How are other people assigning bitmaps to GUIButtons?
I WAS using the GUIBitmapButton class (froma starter kit I think) which had a ".SelectedTexture" and ".NormalTexture" parameters that automatically changed the bitmap based on whether it was selected or not, but that class no longer works with Torque 2.0.
How are other people assigning bitmaps to GUIButtons?
About the author
#2
To get the changing bitmap feature, you'll have to write your own class! Don't know why GUIButton changed. I found a GUIBitmapButton class in one of the demos.
But eventually I gave up with the current GUI and have written my own which I hope to contribute in the not too distant future.
03/19/2008 (1:32 pm)
In 2.0, GUIButton has text that changes color based on the button state. You can also have a filled rectangle background and/or a border that changes color. There is a bug in DrawUtil which screws up the border which I previously reported.To get the changing bitmap feature, you'll have to write your own class! Don't know why GUIButton changed. I found a GUIBitmapButton class in one of the demos.
But eventually I gave up with the current GUI and have written my own which I hope to contribute in the not too distant future.
Torque 3D Owner Jonathon Stevens