mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-06 09:39:49 +00:00
remove empty/redundant lines
This commit is contained in:
parent
eadad7a4b3
commit
6e43206d69
@ -93,19 +93,10 @@ namespace MWGui
|
|||||||
|
|
||||||
void MessageBoxManager::createMessageBox (const std::string& message, bool stat)
|
void MessageBoxManager::createMessageBox (const std::string& message, bool stat)
|
||||||
{
|
{
|
||||||
if (message == "#{sNotifyMessage59}")
|
|
||||||
for (MessageBox* messageBox : mMessageBoxes)
|
|
||||||
if (messageBox->mIsEncumberedMessage)
|
|
||||||
{
|
|
||||||
messageBox->mCurrentTime = 0;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
MessageBox *box = new MessageBox(*this, message);
|
MessageBox *box = new MessageBox(*this, message);
|
||||||
box->mCurrentTime = 0;
|
box->mCurrentTime = 0;
|
||||||
std::string realMessage = MyGUI::LanguageManager::getInstance().replaceTags(message);
|
std::string realMessage = MyGUI::LanguageManager::getInstance().replaceTags(message);
|
||||||
box->mMaxTime = realMessage.length()*mMessageBoxSpeed;
|
box->mMaxTime = realMessage.length()*mMessageBoxSpeed;
|
||||||
box->mIsEncumberedMessage = (message == "#{sNotifyMessage59}");
|
|
||||||
|
|
||||||
if(stat)
|
if(stat)
|
||||||
mStaticMessageBox = box;
|
mStaticMessageBox = box;
|
||||||
@ -154,7 +145,6 @@ namespace MWGui
|
|||||||
return mInterMessageBoxe != nullptr;
|
return mInterMessageBoxe != nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool MessageBoxManager::removeMessageBox (MessageBox *msgbox)
|
bool MessageBoxManager::removeMessageBox (MessageBox *msgbox)
|
||||||
{
|
{
|
||||||
std::vector<MessageBox*>::iterator it;
|
std::vector<MessageBox*>::iterator it;
|
||||||
@ -175,7 +165,6 @@ namespace MWGui
|
|||||||
return mMessageBoxes;
|
return mMessageBoxes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int MessageBoxManager::readPressedButton (bool reset)
|
int MessageBoxManager::readPressedButton (bool reset)
|
||||||
{
|
{
|
||||||
int pressed = mLastButtonPressed;
|
int pressed = mLastButtonPressed;
|
||||||
|
@ -72,7 +72,6 @@ namespace MWGui
|
|||||||
|
|
||||||
float mCurrentTime;
|
float mCurrentTime;
|
||||||
float mMaxTime;
|
float mMaxTime;
|
||||||
bool mIsEncumberedMessage;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
MessageBoxManager& mMessageBoxManager;
|
MessageBoxManager& mMessageBoxManager;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user