Game Development Community

GuiTabBookProfile + Skining

by AllynMcelrath · in Torque Game Engine · 02/22/2007 (5:40 pm) · 7 replies

Has anyone been able to skin this controal? I haveing a hard time geting it o use the array for the skin.

In defaultProfiles.cs

if( !isObject(GuiTabBookProfile) ) new GuiControlProfile (GuiTabBookProfile)
{
   fillColor = "255 255 255";
   fillColorHL = "64 150 150";
   fillColorNA = "150 150 150";
   fontColor = "0 0 0";
   fontColorHL = "32 100 100";
   fontColorNA = "0 0 0";
   justify = "center";
   bitmap = "./blackGlassTab";  // See #1 bellow
   tabWidth = 64;
   tabHeight = 24;
   tabPosition = "Top";
   tabRotation = "Horizontal";
   tab = true;
   cankeyfocus = true;
};

if( !isObject(GuiTabPageProfile) ) new GuiControlProfile (GuiTabPageProfile)
{
   bitmap = "./darkTabPage";
   tab = true;
};

1) Changed this from the default array (wich was not getting used aswell) to my custom array. This was only done to see it skinned quickly.



In customProfiles.cs
new GuiControlProfile (GuiTabBook_blackGlass_Profile)
{
   fillColor = "0 0 0";
   fillColorHL = "64 150 150";
   fillColorNA = "150 150 150";
   fontColor = "0 0 0";
   fontColorHL = "32 100 100";
   fontColorNA = "0 0 0";
   justify = "center";
   bitmap = "./blackGlassTab";
   tabWidth = 64;
   tabHeight = 24;
   tabPosition = "Top";
   tabRotation = "Horizontal";
   tab = true;
   cankeyfocus = true;
};

new GuiControlProfile (GuiTabPage_blackGlass_Profile)
{
   bitmap = "./darkTabPage";
   tab = true;
};

I went and made a custom profile in customProfiles.cs, (i like to keep the dafult stuff alone).

Well, nothing worked, the stock tab array doesn't show up, and the custom one i made also doesn't work. This has got to be one of the easyist controls to skin... so i know its not the image, and i had skinned it in 1.4.

No errors in console.

Is it just broken in 1.5? I did some searching, i cant find anything, even TDN is bare in regards to this.

I checked in a fresh download of the SDK also, the examples ETC.. also do not seem to want to use the stock array.

#1
02/23/2007 (8:55 am)
I am still not having any luck with this. Its skin able in 1.4, but not 1.5.
#2
03/01/2007 (8:09 am)
This is still an issue, wondering if anyone else has had this problem
#3
04/25/2007 (12:16 pm)
Anybody have a fix for this problem yet?
#4
04/25/2007 (12:51 pm)
It seems like the bitmap that comes in the example directory doesn't work with the 1.5 codebase. In guiTabBookCtrl.cc around line 340, it checks to see if the size of the bitmap array rects size is greater than NumBitmaps.
Currently, there's only 3 bitmap arrays in the default darkTab.png file and it's looking for 20 bitmaps. Anyone have an updated bitmap that works with TGE 1.5?

Thanks.
#5
04/29/2007 (3:08 pm)
The file for guiTabBookCtrl somehow is not included in SDK.
Here is the one that I used:
www.afterworld.ru/gg/tab.pngalternative (reversed):
www.afterworld.ru/gg/tabB.png
edit: url correction
#6
05/02/2007 (12:42 pm)
^^ You used those in 1.5?
#7
05/02/2007 (1:46 pm)
Hm. It's "working" for me in my custom "heavily modified" 1.4.2 + manual merges of TLK + TGE1.5 + T2D + AFX... so, not sure :) haven't tried it in clean TGE1.5 to say truth.
edit: corrections