GuiTextListCtrl
by Robert Fritzen · in Torque Game Engine Advanced · 03/29/2011 (9:26 am) · 2 replies
I'm having some problems adjusting the size of each row in my GuiTextListCtrl for my Pre Game Lobby GUI.
I'm trying to get it to have a larger text size so I can better fit in the client's rank image (make it look larger so players can see it better).
This is what I have currently:
and the Profile:
Am I missing something here, or is this not possible with the text list?
*edit 2*
Forget the problem above, that was solved, I have a new thing I need to know about.
Is it possible to adjust the row size via TS? so instead of it being the same as the text size, I can change it to be 6 greater than the text size.
So, say my fontSize above is 24, can I make the row size 30 to fit my rank icon bitmap?
I'm trying to get it to have a larger text size so I can better fit in the client's rank image (make it look larger so players can see it better).
This is what I have currently:
new GuiTextListCtrl(PlayerListControl) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
HorizSizing = "right";
VertSizing = "bottom";
Position = "1 1";
Extent = "167 2";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
Profile = "GuiPLYRNAMETEXTLISTProfile";
};and the Profile:
if(!isObject(GuiPLYRNAMETEXTLISTProfile)) new GuiControlProfile (GuiPLYRNAMETEXTLISTProfile : GuiTextProfile) {
tab = true;
canKeyFocus = true;
fontSize = 24;
};Am I missing something here, or is this not possible with the text list?
*edit 2*
Forget the problem above, that was solved, I have a new thing I need to know about.
Is it possible to adjust the row size via TS? so instead of it being the same as the text size, I can change it to be 6 greater than the text size.
So, say my fontSize above is 24, can I make the row size 30 to fit my rank icon bitmap?
About the author
Illinois Grad. Retired T3D Developer / Pack Dev.
#2
Got different text sizes/fonts to do what I needed, and then did some "l33t scripting majik" to put the image where I needed it to be.
04/16/2011 (7:21 pm)
Oh sorry, I figured this out a while back.Got different text sizes/fonts to do what I needed, and then did some "l33t scripting majik" to put the image where I needed it to be.
Torque 3D Owner Scott Richards
Are you still looking for a solution to this? I'm not up on all the latest additions to the engine, but I would guess that the answer is "no, that's not possible from TS". However, I could tell you how you can modify the engine to make it possible.