GuiNeedleIndicator for Irr

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
dalerank2
Posts: 121
Joined: Thu Dec 03, 2009 7:41 am

GuiNeedleIndicator for Irr

Post by dalerank2 »

Image
Image
Image
Image
Image

Example to user

Code: Select all

	needle = new gui::CNrpNeedleIndicator( L"needle", env, parent, id, rectangle );
	needle->SetBackgroundTexture( driver->getTexture( "media/NeedleBackground.png" ) );
	needle->SetNeedleTexture( driver->getTexture( "media/NeedleArrow.png") );
	
              needle->SetMin( 0 );
              needle->SetMax( 100 );
	needle->SetValue( value );
	needle->SetStartGapAngle( gapAngle );
This element need CNrpRotatableImage for work.
Download source, CNrpRotatableImage and textures for work may here
http://depositfiles.com/files/tx16xy6ob
dalerank2
Posts: 121
Joined: Thu Dec 03, 2009 7:41 am

Post by dalerank2 »

Update source for draw background without texture
Image

update may download here
http://depositfiles.com/files/4bk5ou89z
kazymjir
Posts: 727
Joined: Sat Feb 20, 2010 4:05 pm
Location: Munich, Bayern

Post by kazymjir »

Looks nice!
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

yeah i like it as well. if i was going to code a racing game this would go in for sure.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

This looks really useful. Good job. :D
if i was going to code a racing game this would go in for sure.
It looks to me like you could use this for a lot of other things as well (compass, power meter, etc.)
multum in parvo
newleon
Posts: 19
Joined: Mon Jan 10, 2011 7:59 am
Location: Pohang, South Korea
Contact:

Re: GuiNeedleIndicator for Irr

Post by newleon »

I intended to use this class for my driving simulator, but the download links were dead. I found the CGUINeedleIndicator.h and CGUINeedleIndicator.cpp inside irrOde folders and uploaded them again, thanks to Brainsaw.
http://www.4shared.com/zip/Po8UuYXY/CGU ... cator.html
https://mega.co.nz/#!w84TgZZJ!HIR1l33AD ... vADGbg15cQ
Post Reply