Onwake Function
by Dustin Mullen · in Technical Issues · 12/11/2007 (10:21 am) · 1 replies
Where do I put the onwake function for this gui? I put it in the dynamic feild, but maybe I'm doing something wrong.
Also, where would this line go: CharView.setModel("base/data/shapes/player/Human/player.dts", base/data/shapes/player/Human/player.jpg");
Resource:
GuiPlayerView
I set it up in the gui like this
new GuiPlayerView(CharView) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 5";
extent = "242 209";
minExtent = "8 2";
visible = "1";
cameraZRot = "0";
forceFOV = "0";
};
Then in onWake function I use this
// Character Viewer
CharView.setModel("base/data/shapes/player/Human/player.dts", base/data/shapes/player/Human/player.jpg");
Throw in a previous and next button and you have a viewer with changeable skins.
Look at the code and if you don't have it go and buy Tribes 2 everthing in there is in TGE especially the older builds if you keep them, I do.
Also, where would this line go: CharView.setModel("base/data/shapes/player/Human/player.dts", base/data/shapes/player/Human/player.jpg");
Resource:
GuiPlayerView
I set it up in the gui like this
new GuiPlayerView(CharView) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 5";
extent = "242 209";
minExtent = "8 2";
visible = "1";
cameraZRot = "0";
forceFOV = "0";
};
Then in onWake function I use this
// Character Viewer
CharView.setModel("base/data/shapes/player/Human/player.dts", base/data/shapes/player/Human/player.jpg");
Throw in a previous and next button and you have a viewer with changeable skins.
Look at the code and if you don't have it go and buy Tribes 2 everthing in there is in TGE especially the older builds if you keep them, I do.
Torque Owner Steve D
function CharView::OnWake()
{
}