1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00
Files
OpenRCT2/src/openrct2/ui/DummyWindowManager.cpp
Aaron van Geffen 347ce53f26 Re-introduce message on successful screenshot (#21983)
* Re-introduce message on successful screenshot

* Automatically close previous screenshot notices before new ones
2024-05-10 15:04:12 +02:00

79 lines
2.3 KiB
C++

/*****************************************************************************
* Copyright (c) 2014-2024 OpenRCT2 developers
*
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
*
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
#include "../localisation/Formatter.h"
#include "WindowManager.h"
namespace OpenRCT2::Ui
{
class DummyWindowManager final : public IWindowManager
{
void Init() override{};
WindowBase* OpenWindow(WindowClass /*wc*/) override
{
return nullptr;
}
WindowBase* OpenView(uint8_t /*view*/) override
{
return nullptr;
}
WindowBase* OpenDetails(uint8_t /*type*/, int32_t /*id*/) override
{
return nullptr;
}
WindowBase* ShowError(
StringId /*title*/, StringId /*message*/, const Formatter& /*formatter*/, bool /*autoClose*/) override
{
return nullptr;
}
WindowBase* ShowError(std::string_view /*title*/, std::string_view /*message*/, bool /*autoClose*/) override
{
return nullptr;
}
WindowBase* OpenIntent(Intent* /*intent*/) override
{
return nullptr;
};
void BroadcastIntent(const Intent& /*intent*/) override
{
}
void ForceClose(WindowClass /*windowClass*/) override
{
}
void UpdateMapTooltip() override
{
}
void HandleInput() override
{
}
void HandleKeyboard(bool /*isTitle*/) override
{
}
std::string GetKeyboardShortcutString(std::string_view /*shortcutId*/) override
{
return std::string();
}
void SetMainView(const ScreenCoordsXY& viewPos, ZoomLevel zoom, int32_t rotation) override
{
}
void UpdateMouseWheel() override
{
}
WindowBase* GetOwner(const Viewport* viewport) override
{
return nullptr;
}
};
std::unique_ptr<IWindowManager> CreateDummyWindowManager()
{
return std::make_unique<DummyWindowManager>();
}
} // namespace OpenRCT2::Ui