OpenMortal Apocalypse mirror
Sourceforge mirror
SourceForge.net Logo
      News | Info | Characters | Arenas | Screenshots | Forums | Download  
Developer: Making of | Character-HOWTO | AI Design | Submit a Character
Documentation: Main Page | Modules | Class Hierarchy | Class List | File List

CTextMenuItem Class Reference
[Game logic (frontend + backend connection)]

Text menu items are like regular menu items, but they have a text value which can be set. More...

#include <menu.h>

Inheritance diagram for CTextMenuItem:

CMenuItem List of all members.

Public Member Functions

 CTextMenuItem (CMenu *a_poMenu, const char *a_pcInitialValue, const char *a_pcUtf8Title, int a_iCode)
virtual ~CTextMenuItem ()
virtual void Draw ()
virtual void SetValue (const char *a_pcValue)

Protected Attributes

std::string m_sTitle
std::string m_sValue

Detailed Description

Text menu items are like regular menu items, but they have a text value which can be set.

This value is displayed next to the regular name of the menu item.


Constructor & Destructor Documentation

CTextMenuItem::CTextMenuItem CMenu a_poMenu,
const char *  a_pcInitialValue,
const char *  a_pcUtf8Title,
int  a_iCode
 

CTextMenuItem::~CTextMenuItem  )  [virtual]
 


Member Function Documentation

void CTextMenuItem::Draw  )  [virtual]
 

Reimplemented from CMenuItem.

void CTextMenuItem::SetValue const char *  a_pcValue  )  [virtual]
 


Member Data Documentation

std::string CTextMenuItem::m_sTitle [protected]
 

std::string CTextMenuItem::m_sValue [protected]
 


The documentation for this class was generated from the following files: