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:
parent
053a5a6258
commit
dc0ce09ab6
4 changed files with 11 additions and 4 deletions
|
@ -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());
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue