|
Planeshift
|
This is the window that allows you to interact with the world. More...
#include <pawsinteractwindow.h>
Public Member Functions | |
| void | Draw () |
| Draws the widget and all of it's children. | |
| void | HandleMessage (MsgEntry *message) |
| void | Hide () |
| Makes widget invisible and removes focus if widget has current focus. | |
| bool | OnButtonPressed (int mouseButton, int keyModifier, pawsWidget *widget) |
| Called whenever a button is pressed. | |
| bool | OnMouseDown (int button, int modifiers, int x, int y) |
| Manage mouse down event to test for and apply window changes. | |
| void | OnStringEntered (const char *name, int param, const char *value) |
| When the pawsStringPromptWindow is created, a ptr to a class which implements this function is provided, and a "name" string is provided, so that a single window can use 1 callback for many fields. | |
| pawsInteractWindow () | |
| bool | PostSetup () |
| This is called after the widget and all of it's children have been created. | |
| virtual | ~pawsInteractWindow () |
This is the window that allows you to interact with the world.
It has buttons for things like pickup/examine/open/ etc.
Definition at line 32 of file pawsinteractwindow.h.
| pawsInteractWindow::pawsInteractWindow | ( | ) |
| virtual pawsInteractWindow::~pawsInteractWindow | ( | ) | [virtual] |
| void pawsInteractWindow::Draw | ( | ) | [virtual] |
Draws the widget and all of it's children.
Reimplemented from pawsWidget.
| void pawsInteractWindow::HandleMessage | ( | MsgEntry * | message | ) | [virtual] |
Implements psClientNetSubscriber.
| void pawsInteractWindow::Hide | ( | ) | [virtual] |
Makes widget invisible and removes focus if widget has current focus.
Sets visible FALSE, hides border if present and then if focused when called it calls SetCurrentFocusedWidget(NULL).
Reimplemented from pawsWidget.
| bool pawsInteractWindow::OnButtonPressed | ( | int | button, |
| int | keyModifier, | ||
| pawsWidget * | widget | ||
| ) | [virtual] |
Called whenever a button is pressed.
| button | The button pressed. |
| keyModifier | Modifier key in effect. |
| widget | The widget the button belongs to. |
Reimplemented from pawsWidget.
Manage mouse down event to test for and apply window changes.
| button | Type of button: 1 resizable or movable, 2 context menu or config window. |
| modifiers | Used with PAWS_CONSTRUCTION. |
| x | Used to test for resize. |
| y | Used to test for resize. |
Reimplemented from pawsWidget.
| void pawsInteractWindow::OnStringEntered | ( | const char * | name, |
| int | param, | ||
| const char * | value | ||
| ) | [virtual] |
When the pawsStringPromptWindow is created, a ptr to a class which implements this function is provided, and a "name" string is provided, so that a single window can use 1 callback for many fields.
Implements iOnStringEnteredAction.
| bool pawsInteractWindow::PostSetup | ( | ) | [virtual] |
This is called after the widget and all of it's children have been created.
Reimplemented from pawsWidget.
1.7.3