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-02-04 00:54:30 +0000
committerStijn Buys <ingar@osirion.org>2008-02-04 00:54:30 +0000
commit840f9b8678f607aecc15d47bc77248c4ac8b8574 (patch)
treef90688ca7afabb8e4123e1a811dd168a86717a3c /src/client/console.h
parent43b994017a560a2fa97894ebfe121375d6614b6f (diff)
tweaked console
client status with timer and fps core connect/disconnect
Diffstat (limited to 'src/client/console.h')
-rw-r--r--src/client/console.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/console.h b/src/client/console.h
index 7f98666..c0d485f 100644
--- a/src/client/console.h
+++ b/src/client/console.h
@@ -44,7 +44,8 @@ public:
/// toggle the console on or off
void toggle();
- bool visible;
+ /// true of the console is visible
+ inline bool visible() { return console_visible; }
/// toggle handle keyboard input
void handle_keyreleased(SDL_keysym* keysym);
@@ -54,13 +55,13 @@ protected:
std::stringstream buffer;
/// console text data
- std::deque<std::string> text;
+ std::deque<std::string> text;
private:
std::string input;
+ bool console_visible;
};
}
#endif // __INCLUDED_CLIENT_CONSOLE_H__
-