mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
add extra button for campaigns
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "CSelectionBase.h"
|
||||
|
||||
#include "../widgets/ComboBox.h"
|
||||
#include "../widgets/Images.h"
|
||||
#include "../widgets/Slider.h"
|
||||
#include "../widgets/TextControls.h"
|
||||
#include "../CServerHandler.h"
|
||||
@@ -295,7 +296,7 @@ OptionsTabBase::OptionsTabBase(const JsonPath & configPath)
|
||||
}
|
||||
}
|
||||
|
||||
void OptionsTabBase::recreate()
|
||||
void OptionsTabBase::recreate(bool campaign)
|
||||
{
|
||||
auto const & generateSimturnsDurationText = [](int days) -> std::string
|
||||
{
|
||||
@@ -417,4 +418,10 @@ void OptionsTabBase::recreate()
|
||||
buttonUnlimitedReplay->setSelectedSilent(SEL->getStartInfo()->extraOptionsInfo.unlimitedReplay);
|
||||
buttonUnlimitedReplay->block(SEL->screenType == ESelectionScreen::loadGame);
|
||||
}
|
||||
|
||||
if(auto textureCampaignOverdraw = widget<CFilledTexture>("textureCampaignOverdraw"))
|
||||
{
|
||||
if(!campaign)
|
||||
textureCampaignOverdraw->disable();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user