summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-15 13:56:40 -0600
committerIra Rice <irarice@gmail.com>2009-03-15 13:56:40 -0600
commita9b1eccdd2c719f86475c6ce01d4b8eea7dede6c (patch)
tree75a8b557996feb095135a5cfbf74bdda69f77286 /src/gui/chat.cpp
parent3123c8ce5f882f0bfb99a2d2efa45d760237ebcc (diff)
downloadMana-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.gz
Mana-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.bz2
Mana-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.tar.xz
Mana-a9b1eccdd2c719f86475c6ce01d4b8eea7dede6c.zip
Overrode the reset window function in the chat window to also reset the
position of the recorder, as well as fixed resetting the help window, and exposing the buy/sell window to being resettable, as well as remembering its previous position. All windows should now be covered by the reset button on the setup pane. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 44e08052..5ff9ed46 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -113,6 +113,12 @@ ChatWindow::~ChatWindow()
delete mParty;
}
+void ChatWindow::resetToDefaultSize()
+{
+ mRecorder->resetToDefaultSize();
+ Window::resetToDefaultSize();
+}
+
void ChatWindow::chatLog(std::string line, int own, bool ignoreRecord)
{
// Trim whitespace