imgui_overlays.h (827B)
1 // SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com> 2 // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0) 3 4 #pragma once 5 6 #include "util/imgui_manager.h" 7 8 #include <string> 9 10 namespace ImGuiManager { 11 void RenderTextOverlays(); 12 void RenderDebugWindows(); 13 14 void RenderOverlayWindows(); 15 void DestroyOverlayTextures(); 16 } // namespace ImGuiManager 17 18 namespace SaveStateSelectorUI { 19 20 static constexpr float DEFAULT_OPEN_TIME = 7.5f; 21 22 bool IsOpen(); 23 void Open(float open_time = DEFAULT_OPEN_TIME); 24 void RefreshList(const std::string& serial); 25 void Clear(); 26 void ClearList(); 27 void Close(); 28 29 void SelectNextSlot(bool open_selector); 30 void SelectPreviousSlot(bool open_selector); 31 32 s32 GetCurrentSlot(); 33 bool IsCurrentSlotGlobal(); 34 void LoadCurrentSlot(); 35 void SaveCurrentSlot(); 36 37 } // namespace SaveStateSelectorUI