2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
2023-08-13 06:28:28 +00:00
|
|
|
#include "util/imgui_manager.h"
|
2022-07-11 13:03:29 +00:00
|
|
|
|
2023-12-17 03:32:58 +00:00
|
|
|
#include <string>
|
|
|
|
|
2022-07-11 13:03:29 +00:00
|
|
|
namespace ImGuiManager {
|
2023-01-11 08:42:39 +00:00
|
|
|
void RenderTextOverlays();
|
2023-08-23 12:06:48 +00:00
|
|
|
void RenderDebugWindows();
|
2023-12-17 03:32:58 +00:00
|
|
|
|
2023-01-11 08:42:39 +00:00
|
|
|
void RenderOverlayWindows();
|
2023-12-17 03:32:58 +00:00
|
|
|
void DestroyOverlayTextures();
|
2023-08-23 12:06:48 +00:00
|
|
|
} // namespace ImGuiManager
|
2022-07-11 13:03:29 +00:00
|
|
|
|
|
|
|
namespace SaveStateSelectorUI {
|
|
|
|
|
2023-12-17 03:32:58 +00:00
|
|
|
static constexpr float DEFAULT_OPEN_TIME = 7.5f;
|
2022-07-11 13:03:29 +00:00
|
|
|
|
2023-12-16 14:09:15 +00:00
|
|
|
bool IsOpen();
|
2022-07-11 13:03:29 +00:00
|
|
|
void Open(float open_time = DEFAULT_OPEN_TIME);
|
2023-12-17 03:32:58 +00:00
|
|
|
void RefreshList(const std::string& serial);
|
|
|
|
void Clear();
|
|
|
|
void ClearList();
|
|
|
|
void Close();
|
2022-07-11 13:03:29 +00:00
|
|
|
|
2023-12-17 03:32:58 +00:00
|
|
|
void SelectNextSlot(bool open_selector);
|
|
|
|
void SelectPreviousSlot(bool open_selector);
|
2022-07-11 13:03:29 +00:00
|
|
|
|
2023-12-17 03:32:58 +00:00
|
|
|
s32 GetCurrentSlot();
|
|
|
|
bool IsCurrentSlotGlobal();
|
2022-07-11 13:03:29 +00:00
|
|
|
void LoadCurrentSlot();
|
|
|
|
void SaveCurrentSlot();
|
|
|
|
|
|
|
|
} // namespace SaveStateSelectorUI
|