summaryrefslogtreecommitdiff
path: root/src/gui/npc_text.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-10 08:11:48 -0600
committerIra Rice <irarice@gmail.com>2009-03-10 08:11:48 -0600
commit443a10db52e909c4c2a33543795ec8837547e973 (patch)
treefc8fff5e1dbd5e171974919186f6356ffce7b6ff /src/gui/npc_text.h
parent03507766fa4ee07491b7ee702093669de6222c9c (diff)
downloadmana-443a10db52e909c4c2a33543795ec8837547e973.tar.gz
mana-443a10db52e909c4c2a33543795ec8837547e973.tar.bz2
mana-443a10db52e909c4c2a33543795ec8837547e973.tar.xz
mana-443a10db52e909c4c2a33543795ec8837547e973.zip
Made it so that when windows load previous states, they are never
smaller than the minimum width and height (a check that should have been enforced in the first place), as well as modified the NPC list and text dialogs to remember where they were when they were moved or resized last. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/npc_text.h')
-rw-r--r--src/gui/npc_text.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/npc_text.h b/src/gui/npc_text.h
index 615902db..f01e3602 100644
--- a/src/gui/npc_text.h
+++ b/src/gui/npc_text.h
@@ -74,11 +74,24 @@ class NpcTextDialog : public Window, public gcn::ActionListener
*/
void addText(const std::string &string);
+ /**
+ * Notifies the server that the client has performed a next action.
+ */
void nextDialog(int npcID = current_npc);
+ /**
+ * Notifies the server that the client has performed a close action.
+ */
void closeDialog(int npcID = current_npc);
/**
+ * Initializes window width to the last known setting. Since the dialog
+ * doesn't need any extra focus outside of what it's given in the Game
+ * class, this is all it does for now.
+ */
+ void requestFocus();
+
+ /**
* Called when resizing the window.
*
* @param event The calling event