An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
#ifndef OPENMW_TEXTINPUTDIALOG_HPP
#define OPENMW_TEXTINPUTDIALOG_HPP
#include "apps/openmw/mwgui/windowbase.hpp"
namespace MWGui
{
class WindowManager;
}
namespace mwmp
{
class TextInputDialog : public MWGui::WindowModal
{
public:
TextInputDialog();
std::string getTextInput() const;
void setTextInput(const std::string &text);
void setNextButtonShow(bool shown);
void setTextLabel(const std::string &label);
void setTextNote(const std::string ¬e);
void setEditPassword(bool value);
virtual void onOpen();
virtual bool exit();
/** Event : Dialog finished, OK button clicked.\n
signature : void method()\n
*/
EventHandle_WindowBase eventDone;
/// Isowind: A is OK (the keyboard on the screen comes up with the dialog, or with Y)
bool onControllerButtonEvent(const SDL_ControllerButtonEvent& arg) override;
protected:
void onOkClicked(MyGUI::Widget *_sender);
void onTextAccepted(MyGUI::EditBox *_sender);
private:
MyGUI::EditBox *mTextEdit;
};
}
#endif //OPENMW_TEXTINPUTDIALOG_HPP