mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
fix
This commit is contained in:
@@ -262,7 +262,7 @@ void BattleOnlyModeHeroSelector::setHeroIcon()
|
|||||||
setHeroIcon();
|
setHeroIcon();
|
||||||
parent.setOkButtonEnabled();
|
parent.setOkButtonEnabled();
|
||||||
}, selectedIndex, images, true, true);
|
}, selectedIndex, images, true, true);
|
||||||
window->onPopup = [this, heroes](int index) {
|
window->onPopup = [heroes](int index) {
|
||||||
if(index == 0)
|
if(index == 0)
|
||||||
return;
|
return;
|
||||||
index--;
|
index--;
|
||||||
@@ -344,7 +344,7 @@ void BattleOnlyModeHeroSelector::setCreatureIcons()
|
|||||||
setCreatureIcons();
|
setCreatureIcons();
|
||||||
});
|
});
|
||||||
}, selectedIndex, images, true, true);
|
}, selectedIndex, images, true, true);
|
||||||
window->onPopup = [this, creatures](int index) {
|
window->onPopup = [creatures](int index) {
|
||||||
if(index == 0)
|
if(index == 0)
|
||||||
return;
|
return;
|
||||||
index--;
|
index--;
|
||||||
|
|||||||
@@ -12,14 +12,18 @@
|
|||||||
#include "../windows/CWindowObject.h"
|
#include "../windows/CWindowObject.h"
|
||||||
#include "../../lib/constants/EntityIdentifiers.h"
|
#include "../../lib/constants/EntityIdentifiers.h"
|
||||||
|
|
||||||
|
|
||||||
|
VCMI_LIB_NAMESPACE_BEGIN
|
||||||
|
class CGHeroInstance;
|
||||||
|
class CCreatureSet;
|
||||||
|
class CMap;
|
||||||
|
class EditorCallback;
|
||||||
|
VCMI_LIB_NAMESPACE_END
|
||||||
|
|
||||||
class FilledTexturePlayerColored;
|
class FilledTexturePlayerColored;
|
||||||
class CButton;
|
class CButton;
|
||||||
class CPicture;
|
class CPicture;
|
||||||
class CLabel;
|
class CLabel;
|
||||||
class CGHeroInstance;
|
|
||||||
class CCreatureSet;
|
|
||||||
class EditorCallback;
|
|
||||||
class CMap;
|
|
||||||
class BattleOnlyModeWindow;
|
class BattleOnlyModeWindow;
|
||||||
class CAnimImage;
|
class CAnimImage;
|
||||||
class GraphicalPrimitiveCanvas;
|
class GraphicalPrimitiveCanvas;
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ SelectionTab::SelectionTab(ESelectionScreen Type)
|
|||||||
|
|
||||||
if(tabType == ESelectionScreen::newGame && !isMultiplayer)
|
if(tabType == ESelectionScreen::newGame && !isMultiplayer)
|
||||||
{
|
{
|
||||||
buttonBattleOnlyMode = std::make_shared<CButton>(Point(23, 18), AnimationPath::builtin("lobby/battleButton"), CButton::tooltip("", LIBRARY->generaltexth->translate("vcmi.lobby.battleOnlyMode")), [this, tabTitle, tabTitleDelete](){
|
buttonBattleOnlyMode = std::make_shared<CButton>(Point(23, 18), AnimationPath::builtin("lobby/battleButton"), CButton::tooltip("", LIBRARY->generaltexth->translate("vcmi.lobby.battleOnlyMode")), [tabTitle, tabTitleDelete](){
|
||||||
BattleOnlyMode::openBattleWindow();
|
BattleOnlyMode::openBattleWindow();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user