Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-03 00:37:35 +0000
committerStijn Buys <ingar@osirion.org>2008-11-03 00:37:35 +0000
commit4be6238b85e9d4b39c4f1fc23ba05952df78179a (patch)
tree21b3c5d895a37ac557edc70123724038d6711537 /src/client
parent0722960f7d3d3f80b258b5d7ef4b121d5dbb32a8 (diff)
minor bugfixes
Diffstat (limited to 'src/client')
-rw-r--r--src/client/chat.cc4
-rw-r--r--src/client/chat.h4
-rw-r--r--src/client/client.cc4
-rw-r--r--src/client/view.cc4
4 files changed, 8 insertions, 8 deletions
diff --git a/src/client/chat.cc b/src/client/chat.cc
index dc66a1b..f123bbc 100644
--- a/src/client/chat.cc
+++ b/src/client/chat.cc
@@ -43,9 +43,9 @@ Chat::~Chat()
history.clear();
}
-void Chat::set_small(bool small)
+void Chat::set_small_view(bool small_chat_view)
{
- chat_small = small;
+ chat_small = small_chat_view;
}
void Chat::event_text(const std::string & text)
diff --git a/src/client/chat.h b/src/client/chat.h
index ec8271e..8c52b4e 100644
--- a/src/client/chat.h
+++ b/src/client/chat.h
@@ -27,9 +27,9 @@ public:
void event_text(const std::string & text);
- inline bool small() const { return chat_small; }
+ inline bool small_view() const { return chat_small; }
- void set_small(bool small = true);
+ void set_small_view(bool small_view=true);
protected:
virtual void event_draw();
diff --git a/src/client/client.cc b/src/client/client.cc
index 2400089..667a060 100644
--- a/src/client/client.cc
+++ b/src/client/client.cc
@@ -51,7 +51,7 @@ void func_r_restart(std::string const &args)
void func_ui_chat(std::string const &args)
{
if (core::application()->connected()) {
- client()->view()->chat()->set_small(false);
+ client()->view()->chat()->set_small_view(false);
client()->view()->chat()->toggle();
}
}
@@ -59,7 +59,7 @@ void func_ui_chat(std::string const &args)
void func_ui_chatsmall(std::string const &args)
{
if (core::application()->connected()) {
- client()->view()->chat()->set_small(true);
+ client()->view()->chat()->set_small_view(true);
client()->view()->chat()->toggle();
}
}
diff --git a/src/client/view.cc b/src/client/view.cc
index a2bdfe1..3ee6460 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -230,7 +230,7 @@ void View::resize()
void View::draw()
{
// reposition chat widget
- if (!view_chat->small()) {
+ if (!view_chat->small_view()) {
view_chat->set_location(font()->width(), view_devinfo->top() + view_devinfo->height() + font()->height());
view_chat->set_size(width() - font()->width() * 16, height() - view_chat->top() - font()->height() * 8);
} else {
@@ -246,7 +246,7 @@ void View::draw()
if (core::application()->connected() && core::game()->interactive()) {
if (ui::console()->visible()) {
view_notify->set_visible(false);
- } else if (view_chat->visible() && !view_chat->small()) {
+ } else if (view_chat->visible() && !view_chat->small_view()) {
view_notify->set_visible(false);
} else {
view_notify->set_visible(true);