1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 18:39:40 +00:00

[Client] Replace unused method in GUIController with getChatEditState()

This commit is contained in:
David Cernat 2020-05-11 01:54:07 +03:00
parent 053a5a6258
commit dc0ce09ab6
4 changed files with 11 additions and 4 deletions

View file

@ -66,6 +66,11 @@ namespace mwmp
return true; return true;
} }
bool GUIChat::getEditState()
{
return editState;
}
void GUIChat::acceptCommand(MyGUI::EditBox *_sender) void GUIChat::acceptCommand(MyGUI::EditBox *_sender)
{ {
const std::string &cm = MyGUI::TextIterator::toTagsString(mCommandLine->getCaption()); const std::string &cm = MyGUI::TextIterator::toTagsString(mCommandLine->getCaption());

View file

@ -44,6 +44,8 @@ namespace mwmp
virtual bool exit(); virtual bool exit();
bool getEditState();
void setFont(const std::string &fntName); void setFont(const std::string &fntName);
void onResChange(int width, int height); void onResChange(int width, int height);

View file

@ -213,9 +213,9 @@ bool mwmp::GUIController::pressedKey(int key)
return false; return false;
} }
bool mwmp::GUIController::hasFocusedElement() bool mwmp::GUIController::getChatEditState()
{ {
return false; return mChat->editState;
} }
void mwmp::GUIController::update(float dt) void mwmp::GUIController::update(float dt)

View file

@ -45,8 +45,8 @@ namespace mwmp
void showDialogList(const BasePlayer::GUIMessageBox &guiMessageBox); void showDialogList(const BasePlayer::GUIMessageBox &guiMessageBox);
/// Return true if any tes3mp gui element in active state bool getChatEditState();
bool hasFocusedElement();
/// Returns 0 if there was no events /// Returns 0 if there was no events
bool pressedKey(int key); bool pressedKey(int key);