Game Development Community

remove cursor, header bar

by rennie moffat · in iTorque 2D · 08/20/2010 (3:49 pm) · 9 replies

Hi Guys, so to finish up my app I simply need to know how to remove the cursor, from being seen and to remove the header, timer, airport bar from being seen. I know I had asked this earlier, but I can not find the thread. IF you know this, please help. Much appreciated.




Rennie

About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
08/20/2010 (6:03 pm)
Rennie, seriously? I'm all for everyone helping each other out, but you clearly haven't even tried to work this out. It is SUPER EASY to do.
#2
08/20/2010 (7:23 pm)
Ok will check out. I just thought it would be easy. No worries.


::)(
#3
08/22/2010 (6:22 pm)
For the header bar it is easy:
<iFeatureStatusBarType>0</iFeatureStatusBarType>
in commonConfig.xml

I don't remember that hiding the mouse cursor was that obvious, I had to change levelManagement.cs and common.cs if I remember well. If you need details I can find out for you.

Probably there is an easy way for cursor that I am not aware of.
#4
08/22/2010 (6:33 pm)
Thanks c4dgames. Yah, I am sure it is as simple as removing or adding a line of code some where, but what that line is, and where I have no idea.





I did try what you suggested for the status bar. But it did not work for me. I am sure I am running it in the common/commonConfig.xml.



:?





#5
08/22/2010 (10:01 pm)
Try from TGB.
Go to tab Project, section iDevice Feature Builder.
Set Status Bar Type to Hidden.
Click Apply.

Will post you the code for the cursor, need to find it first :).

Selvin
#6
08/22/2010 (10:05 pm)
To hide the cursor ...

if (isiPhoneBuild()) {
	hideCursor();	
}
#7
08/22/2010 (10:07 pm)
Also, how I hide the status bar ...

Edit Info_device.plist in your xCode_iPhone build folder:

Add this key to the bottom:

<key>UIStatusBarHidden</key>
	<true/>
#8
08/22/2010 (10:08 pm)
end of the file levelManagement.cs
function t2dSceneGraph::onLevelLoaded(%this)
{
   if( $platform !$= "iphone" ){
		showCursor();
   }
}
in the function initializeCommon of the file common.cs
Canvas.setCursor(DefaultCursor);
   // Set a default cursor.
   if( $platform $= "iphone" ){
		hideCursor();
   }else{
		Canvas.showCursor();
   }

Selvin
#9
08/22/2010 (10:19 pm)
Thanks Scott, Selvin,
The code to remove the header is perfect Scott, and at first I did not get it Selvin, but I just deleted the code at the end of levelManagement.cs and it is gone.



Much appreciated.