mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
fix hotseat hide
This commit is contained in:
parent
da9d82b697
commit
79206ce65b
@ -184,7 +184,7 @@ void AdventureMapInterface::dim(Canvas & to)
|
|||||||
}
|
}
|
||||||
for (auto window : GH.windows().findWindows<CIntObject>())
|
for (auto window : GH.windows().findWindows<CIntObject>())
|
||||||
{
|
{
|
||||||
if (!std::dynamic_pointer_cast<AdventureMapInterface>(window) && !std::dynamic_pointer_cast<RadialMenu>(window) && !window->isPopupWindow() && (settings["adventure"]["backgroundDimSmallWindows"].Bool() || isBigWindow(window)))
|
if (!std::dynamic_pointer_cast<AdventureMapInterface>(window) && !std::dynamic_pointer_cast<RadialMenu>(window) && !window->isPopupWindow() && (settings["adventure"]["backgroundDimSmallWindows"].Bool() || isBigWindow(window) || shortcuts->getState() == EAdventureState::HOTSEAT_WAIT))
|
||||||
{
|
{
|
||||||
Rect targetRect(0, 0, GH.screenDimensions().x, GH.screenDimensions().y);
|
Rect targetRect(0, 0, GH.screenDimensions().x, GH.screenDimensions().y);
|
||||||
ColorRGBA colorToFill(0, 0, 0, std::clamp<int>(backgroundDimLevel, 0, 255));
|
ColorRGBA colorToFill(0, 0, 0, std::clamp<int>(backgroundDimLevel, 0, 255));
|
||||||
|
@ -47,6 +47,11 @@ void AdventureMapShortcuts::setState(EAdventureState newState)
|
|||||||
state = newState;
|
state = newState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAdventureState AdventureMapShortcuts::getState()
|
||||||
|
{
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
void AdventureMapShortcuts::onMapViewMoved(const Rect & visibleArea, int newMapLevel)
|
void AdventureMapShortcuts::onMapViewMoved(const Rect & visibleArea, int newMapLevel)
|
||||||
{
|
{
|
||||||
mapLevel = newMapLevel;
|
mapLevel = newMapLevel;
|
||||||
|
@ -89,5 +89,6 @@ public:
|
|||||||
bool optionMapViewActive();
|
bool optionMapViewActive();
|
||||||
|
|
||||||
void setState(EAdventureState newState);
|
void setState(EAdventureState newState);
|
||||||
|
EAdventureState getState();
|
||||||
void onMapViewMoved(const Rect & visibleArea, int mapLevel);
|
void onMapViewMoved(const Rect & visibleArea, int mapLevel);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user