15 #ifndef GUI_DIALOGS_WML_MESSAGE_HPP_INCLUDED
16 #define GUI_DIALOGS_WML_MESSAGE_HPP_INCLUDED
76 const unsigned maximum_length);
85 void set_option_list(
const std::vector<twml_message_option>& option_list,
197 const bool has_input,
200 const unsigned maximum_length,
201 const std::vector<twml_message_option>& option_list,
void post_show(twindow &window)
Inherited from tdialog.
twml_message_option(std::string label, std::string description="", std::string image="")
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
std::string label() const
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
std::string image_
The image which is shown in the dialog.
twml_message_left(const std::string &title, const std::string &message, const std::string &portrait, const bool mirror)
bool has_input_
Do we need to show an input box?
std::string description() const
std::string portrait_
Filename of the portrait.
twml_message_right(const std::string &title, const std::string &message, const std::string &portrait, const bool mirror)
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
int * chosen_option_
The chosen option.
Base class for the wml generated messages.
Abstract base class for all dialogs.
std::vector< twml_message_option > option_list_
The list of options the user can choose.
Helper class for message options.
void set_input(const std::string &caption, std::string *text, const unsigned maximum_length)
Sets the input text variables.
unsigned input_maximum_length_
The maximum length of the input text.
int show_wml_message(const bool left_side, CVideo &video, const std::string &title, const std::string &message, const std::string &portrait, const bool mirror, const bool has_input, const std::string &input_caption, std::string *input_text, const unsigned maximum_length, const std::vector< twml_message_option > &option_list, int *chosen_option)
Helper function to show a portrait.
Shows a dialog with the portrait on the left side.
Shows a dialog with the portrait on the right side.
std::string * input_text_
The text input.
bool mirror_
Mirror the portrait?
twml_message_(const std::string &title, const std::string &message, const std::string &portrait, const bool mirror)
std::string input_caption_
The caption to show for the input text.
this module manages the cache of images.
std::string title_
The title for the dialog.
GLsizei GLenum GLuint GLuint GLsizei char * message
std::string message_
The message to show to the user.
void set_option_list(const std::vector< twml_message_option > &option_list, int *chosen_option)
Sets the option list.
void pre_show(twindow &window)
Inherited from tdialog.
GLsizei const GLcharARB ** string
std::string image() const