GUI BitmapArrays
by David T. Thompson · in Torque Game Engine · 01/31/2005 (9:45 pm) · 2 replies
I want to start making a creative gui system and adding some more artwork to my game. How do I cram different parts of the new gui artwork into a single png file and get it to work in a game or even anything for that matter?
I am shooting for an effect like SDK/example/common/ui/darkborder.png or darkWindow.png
Thanks
I am shooting for an effect like SDK/example/common/ui/darkborder.png or darkWindow.png
Thanks
About the author
Associate Edward F. Maurina III
Roaming Gamer LLC
I'd like to help, but I'm a little unclear on what your question is:
1. Do you want to understand the organiziation of the bitmap arrays used for various GUIs that use them, or
2. Do you want to know how to write C++ code to parse a bitmap array?
For 1, there are a few (GUI) controls that support bitmap arrays: GUIBitmapBorderCtrl, GUIScrollCtrl, GUIPopupMenuCtrl, GUIMenuCtrl, each has its own layout.
For 2, my suggestion is that you take a look at the code for GUIBitmapBorderCtrl. This will lead you in the right direction.
Note: I cover the usage of almost all GUI controls and provide step-by-step layout instructions for the various types of bitmap arrays in my upcoming guide EGTGE Volume 1. GG doesn't have a release date set yet, but it shouldn't be too much longer. I know this does not help you now, so if you need some specific advice and I have not answered your question, please re-post in this thread.
Thanks,
[HOW]EdM|EGTGE