Cavestory Mod API
Public Member Functions | Public Attributes | Friends | List of all members
MessageBoxButton Class Reference

Message box button. More...

#include <CSMAPI_MessageBoxMode.h>

Public Member Functions

 MessageBoxButton (const char *pText, const char *pDefaultText, int iReturnCode, bool bNewLine=false, bool bDefault=false, bool bCancel=false, bool bEnabled=true)
 
 MessageBoxButton (const char *pText, int iReturnCode, bool bNewLine=false, bool bDefault=false, bool bCancel=false, bool bEnabled=true)
 

Public Attributes

unsigned int m_ReturnCode
 What code this button returns when pressed.
 
const char * m_Text
 The text shown on this button. More...
 
const char * m_DefaultText
 The text shown on this button. More...
 
short m_NewLine
 Whether this button should be on a new line. More...
 
bool m_Default
 If true, the message box will init with this as the selected button.
 
bool m_Cancel
 If this is 'true', then the message box mode will return this button's value if ESCAPE is pressed.
 
bool m_Enabled
 Whether this button is clickable or not.
 
GUI_RECT rc_button
 
GUI_RECT rc_text
 
GUI_POINT pnt_lookup
 

Friends

class MessageBoxMode
 

Detailed Description

Message box button.

Member Data Documentation

◆ m_DefaultText

const char* MessageBoxButton::m_DefaultText

The text shown on this button.

Can be NULL.

◆ m_NewLine

short MessageBoxButton::m_NewLine

Whether this button should be on a new line.

Does nothing for the first button in a button array.

◆ m_Text

const char* MessageBoxButton::m_Text

The text shown on this button.

Can be NULL.


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