suggesting some modifications in tutorial:Simple HUD - LOGGED (TDOC-260)
by Ahsan Muzaheed · in Site Feedback · 08/08/2011 (10:18 pm) · 1 replies
in tutorial:Simple HUD(http://docs.garagegames.com/torque-3d/official/content/documentation/GUI%20Editor/Tutorials/Gameoverlay.html)
there are some confusing things for beginner like me.
confusion 1:
in
STEP 1:
it should be:
property name: lblTime
property text: Time:00 //seems no confusion
confusion 2:
it should be:
property name: lblClicks
property text: Clicks:00 //seems no confusion
confusion 3:
but there is no GuiPanelCtrl,it is named GuiPanel.
(a search bar to find any ctrl from a huge stock could be a great help).
confusion 4:
in the whole tutorial there should be more picture on step1 and step 2.
confusion 5:
(not necessary,but may be helpful)
updated above code according to t3d 1.1 could be helpful(for those who r new in programming).
and also see this comment:
http://www.garagegames.com/community/forums/viewthread/126635/1#comment-811120
there are some confusing things for beginner like me.
confusion 1:
in
STEP 1:
Quote:
Set its property to:
property text: Time
property text: 00 // confusion here
property name: lblTime
it should be:
property name: lblTime
property text: Time:00 //seems no confusion
confusion 2:
Quote:
Left Text property text: Clicks:
Right Text property text: 00 // confusion here
Right Text property name: lblClicks
it should be:
property name: lblClicks
property text: Clicks:00 //seems no confusion
confusion 3:
Quote:
"If you think the black text will not show up in your project you could always add a GuiPanelCtrl"
but there is no GuiPanelCtrl,it is named GuiPanel.
(a search bar to find any ctrl from a huge stock could be a great help).
confusion 4:
in the whole tutorial there should be more picture on step1 and step 2.
confusion 5:
(not necessary,but may be helpful)
Quote:
This is how the function should look with our new line of code at the end.
function PlayGui::onWake(%this)
{
// Turn off any shell sounds...
// sfxStop( ... );
$enableDirectInput = "1";
activateDirectInput();
// just update the action map here
moveMap.push();
// hack city - these controls are floating around and need to be clamped
schedule(0, 0, "refreshCenterTextCtrl");
schedule(0, 0, "refreshBottomTextCtrl");
schedule(100,0, updateDisplay);//our new schedule
}
updated above code according to t3d 1.1 could be helpful(for those who r new in programming).
and also see this comment:
http://www.garagegames.com/community/forums/viewthread/126635/1#comment-811120
About the author
Torque 3D enthusiastic since 2010.Have been working in several T3D projects besides of Unreal Engine 4 and Unity 3D. NEED a hand with your project? SHoot me a mail. http://www.garagegames.com/community/forums /viewthread/138437/
Torque 3D Owner Christopher Tauscher
Default Studio