Initial commit
This commit is contained in:
35
Torque/SDK/example/demo/client/scripts/fpsGui.cs
Normal file
35
Torque/SDK/example/demo/client/scripts/fpsGui.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
// Copyright (C) GarageGames.com, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// FpsGui is the main TSControl through which the racing game is viewed.
|
||||
// The FpsGui also contains the hud controls.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
function FpsGui::onWake(%this)
|
||||
{
|
||||
// Turn off any shell sounds...
|
||||
// alxStop( ... );
|
||||
|
||||
$enableDirectInput = "1";
|
||||
activateDirectInput();
|
||||
|
||||
// Message hud dialog
|
||||
Canvas.pushDialog(MainChatHud);
|
||||
chatHud.attach(HudMessageVector);
|
||||
|
||||
// Push the game's action key mapings
|
||||
moveMap.push();
|
||||
}
|
||||
|
||||
function FpsGui::onSleep(%this)
|
||||
{
|
||||
Canvas.popDialog(MainChatHud);
|
||||
|
||||
// Pop the keymaps
|
||||
moveMap.pop();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user