Game Development Community

About GuiTabBookCtrl bitmap file

by Nabarro · in Torque Game Engine · 04/04/2008 (12:22 am) · 2 replies

We want to test GuiTabBookCtrl class by making one tabable GUI. But the problem is that we don't have the testable bitmap file for GuiTableBookCtrl profile. Could anyone help to instruct us how to make such Tab file? Or provide us with one?

We're using TGE152, and from the bitmap definieion:
enum
{
TabSelected = 0, ///< Index of selected tab texture
TabNormal, ///< Index of normal tab texture
TabHover, ///< Index of hover tab texture
TabSelectedVertical, ///< Index of selected tab texture
TabNormalVertical, ///< Index of normal tab texture
TabHoverVertical, ///< Index of hover tab texture
TabBackground = 19, ///< Index of background texture (tiled)
NumBitmaps ///< Number of bitmaps in this array
};


Since NumBitmaps is 20, so how to create such bitmap file?


Thanks,

#1
04/04/2008 (7:39 pm)
Doesn't anyone have such bitmap file for testing?

Thanks,
#2
04/05/2008 (2:31 pm)
I read the code, did some experimenting, and it resulted in this:
www.garagegames.com/mg/forums/result.thread.php?qt=72739

To create a working test texture:

Take the common/ui/darktab.png
Make bunch of extra rows below the three existing (empty)
Add two red vertical partition lines to separate the png into left, large center, and right columns.