uMenuItemInt Class Reference

#include <uMenu.h>

Inheritance diagram for uMenuItemInt:

Inheritance graph
[legend]
Collaboration diagram for uMenuItemInt:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 uMenuItemInt (uMenu *m, const tOutput &title, const tOutput &help, int &targ, int mi, int ma, int step=1)
 ~uMenuItemInt ()
virtual void LeftRight (int)
virtual void Render (REAL x, REAL y, REAL alpha=1, bool selected=0)

Protected Attributes

tOutput title
int & target
int Min
int Max
int Step


Detailed Description

Definition at line 347 of file uMenu.h.


Constructor & Destructor Documentation

uMenuItemInt::uMenuItemInt ( uMenu m,
const tOutput title,
const tOutput help,
int &  targ,
int  mi,
int  ma,
int  step = 1 
)

Definition at line 657 of file uMenu.cpp.

References Max, Min, and target.

00660         :uMenuItem(m,help),title(tit),target(targ),Min(mi),Max(ma),
00661         Step(step){
00662     if (target<Min) target=Min;
00663     if (target>Max) target=Max;

uMenuItemInt::~uMenuItemInt (  )  [inline]

Definition at line 363 of file uMenu.h.

00363 {};


Member Function Documentation

void uMenuItemInt::LeftRight ( int  dir  )  [virtual]

Reimplemented from uMenuItem.

Reimplemented in ArmageTronPlayer_to_viewport_menuitem.

Definition at line 666 of file uMenu.cpp.

References Max, Min, Step, and target.

00667                                    {
00668     target+=dir*Step;
00669     if (target<Min) target=Min;
00670     if (target>Max) target=Max;

void uMenuItemInt::Render ( REAL  x,
REAL  y,
REAL  alpha = 1,
bool  selected = 0 
) [virtual]

Reimplemented from uMenuItem.

Reimplemented in ArmageTron_viewport_menuitem, and ArmageTronPlayer_to_viewport_menuitem.

Definition at line 672 of file uMenu.cpp.

References uMenuItem::DisplayText(), target, and title.

00674                                         {
00675     DisplayText(x-.02,y,title,selected,alpha,1);
00676 
00677     tString s;
00678     s << target;
00679     DisplayText(x+.02,y,s,selected,alpha,-1);

Here is the call graph for this function:


Member Data Documentation

tOutput uMenuItemInt::title [protected]

Definition at line 349 of file uMenu.h.

Referenced by Render().

int& uMenuItemInt::target [protected]

Definition at line 350 of file uMenu.h.

Referenced by LeftRight(), Render(), and uMenuItemInt().

int uMenuItemInt::Min [protected]

Definition at line 351 of file uMenu.h.

Referenced by LeftRight(), and uMenuItemInt().

int uMenuItemInt::Max [protected]

Definition at line 351 of file uMenu.h.

Referenced by LeftRight(), and uMenuItemInt().

int uMenuItemInt::Step [protected]

Definition at line 352 of file uMenu.h.

Referenced by LeftRight().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:01:13 2008 for Armagetron Advanced by  doxygen 1.5.4