#include <dialog.h>
Public Member Functions | |
| Dialog (Ultima1Game *game) | |
| void | draw () override |
| void | hide () override |
Public Member Functions inherited from Ultima::Shared::Gfx::Popup | |
| Popup (GameBase *game) | |
| ~Popup () override | |
| void | show (TreeItem *respondTo=nullptr) |
Public Member Functions inherited from Ultima::Shared::Gfx::VisualItem | |
| VisualItem (TreeItem *parent=nullptr) | |
| VisualItem (const Rect &r, TreeItem *parent=nullptr) | |
| VisualItem (const Common::String &name, TreeItem *parent=nullptr) | |
| VisualItem (const Common::String &name, const Rect &r, TreeItem *parent=nullptr) | |
| VisualSurface | getSurface () |
| const Rect & | getBounds () |
| void | setBounds (const Rect &r) |
| void | setPosition (const Point &pt) |
| virtual void | setDirty (bool dirty=true) |
| void | clearDirty () |
| virtual bool | isDirty () const |
| void | setView (const Common::String &viewName) |
| void | setPopup (Gfx::Popup *popup) |
| void | setView () |
Public Member Functions inherited from Ultima::Shared::NamedItem | |
| NamedItem (const Common::String &name) | |
| const Common::String | getName () const override |
Public Member Functions inherited from Ultima::Shared::TreeItem | |
| virtual bool | isEquals (const Common::String &name, int maxLen=0) const |
| virtual int | compareTo (const Common::String &name, int maxLen=0) const |
| virtual void | viewChange () |
| TreeItem * | getParent () const |
| Game * | getGame () |
| const Game * | getGame () const |
| Gfx::VisualItem * | getView () |
| TreeItem * | getNextSibling () const |
| TreeItem * | getPriorSibling () const |
| TreeItem * | getLastSibling () |
| TreeItem * | getFirstChild () const |
| TreeItem * | getLastChild () const |
| TreeItem * | scan (TreeItem *item) const |
| TreeItem * | findChildInstanceOf (const ClassDef &classDef) const |
| TreeItem * | findNextInstanceOf (const ClassDef &classDef, TreeItem *startItem) const |
| void | addUnder (TreeItem *newParent) |
| void | addChild (TreeItem *child) |
| void | setParent (TreeItem *newParent) |
| void | addSibling (TreeItem *item) |
| void | moveUnder (TreeItem *newParent) |
| void | destroyAll () |
| int | destroyChildren () |
| void | detach () |
| void | attach (TreeItem *item) |
| NamedItem * | findByName (const Common::String &name) |
Public Member Functions inherited from Ultima::Shared::BaseObject | |
| virtual ::Ultima::Shared::ClassDef | getType () const |
| bool | isInstanceOf (const ClassDef &classDef) const |
Protected Member Functions | |
| Ultima1Game * | getGame () |
| Maps::Ultima1Map * | getMap () |
| void | addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false) |
| void | getKeypress () |
| void | getInput (bool isNumeric=true, size_t maxCharacters=4) |
| void | centerText (const Common::String &line, int yp) |
| void | centerText (const Shared::StringArray &lines, int yp) |
Protected Attributes | |
| Ultima1Game * | _game |
| Common::String | _prompt |
Protected Attributes inherited from Ultima::Shared::Gfx::Popup | |
| GameBase * | _game |
| VisualItem * | _parentView |
| TreeItem * | _respondTo |
Protected Attributes inherited from Ultima::Shared::Gfx::VisualItem | |
| Rect | _bounds |
| bool | _isDirty |
Additional Inherited Members | |
Static Public Member Functions inherited from Ultima::Shared::BaseObject | |
| ::Ultima::Shared::ClassDef | type () |
Public Attributes inherited from Ultima::Shared::Gfx::Popup | |
| CLASSDEF | |
Public Attributes inherited from Ultima::Shared::Gfx::VisualItem | |
| CLASSDEF | |
Public Attributes inherited from Ultima::Shared::NamedItem | |
| Common::String | _name |
| CLASSDEF | |
Public Attributes inherited from Ultima::Shared::TreeItem | |
| CLASSDEF | |
Base class for Ultima 1 popup dialogs
| Ultima::Ultima1::U1Dialogs::Dialog::Dialog | ( | Ultima1Game * | game | ) |
Constructor
|
inlineprotected |
Jumps up through the parents to find the root game
|
protected |
Return the game's map
|
protected |
Adds a text string to the info area
| text | Text to add |
| newLine | Whether to apply a newline at the end |
| replaceLine | If true, replaces the current last line |
|
protected |
Prompts for a keypress
|
protected |
Prompts for an input
|
protected |
Write a text line to the dialog
|
protected |
Write a text line to the dialog
|
overridevirtual |
Draws the visual item on the screen
Reimplemented from Ultima::Shared::Gfx::VisualItem.
Reimplemented in Ultima::Ultima1::U1Dialogs::Stats, Ultima::Ultima1::U1Dialogs::King, Ultima::Ultima1::U1Dialogs::Ready, Ultima::Ultima1::U1Dialogs::Tavern, Ultima::Ultima1::U1Dialogs::Transports, Ultima::Ultima1::U1Dialogs::Drop, Ultima::Ultima1::U1Dialogs::Weaponry, Ultima::Ultima1::U1Dialogs::Magic, and Ultima::Ultima1::U1Dialogs::Grocery.
|
overridevirtual |
Hide the dialog
Reimplemented from Ultima::Shared::Gfx::Popup.
Reimplemented in Ultima::Ultima1::U1Dialogs::FullScreenDialog.