ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
LoadingProgressBar.hpp
1#pragma once
2
3#include "Components/CText.hpp"
4#include "../Utils/Il2cpp.hpp"
5#include "../Unity/PersistantSingleton.hpp"
6#include "../ChatPlexSDK.hpp"
7
8#include <custom-types/shared/coroutine.hpp>
9#include <UnityEngine/MonoBehaviour.hpp>
10#include <UnityEngine/UI/Image.hpp>
11#include <UnityEngine/Canvas.hpp>
12
13#include <string>
14
15namespace CP_SDK::UI {
16
17 namespace _u
18 {
19 using namespace UnityEngine;
20 using namespace UnityEngine::UI;
21 }
22 namespace _v
23 {
24 using namespace CP_SDK::UI::Components;
25 using namespace CP_SDK::Utils;
26 }
27
29 class LoadingProgressBar : public _u::MonoBehaviour
30 {
31 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI", LoadingProgressBar, _u::MonoBehaviour);
32 CP_SDK_IL2CPP_DECLARE_CTOR(LoadingProgressBar);
33 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR(LoadingProgressBar);
34 CP_SDK_UNITY_PERSISTANT_SINGLETON_DECL(CP_SDK::UI::LoadingProgressBar);
35
36 private:
38 _v::MonoPtr<_v::CText> m_HeaderText;
39 _v::MonoPtr<_u::Image> m_LoadingBackground;
40 _v::MonoPtr<_u::Image> m_LoadingBar;
41
42 public:
45
46 public:
50 void ShowTimedMessage(std::u16string_view p_Message, float p_Time);
54 void ShowLoadingProgressBar(std::u16string_view p_Message, float p_Progress);
58 void SetProgress(std::u16string_view p_Message, float p_Progress);
61 void HideTimed(float p_Time);
62
63 private:
66 void ChatPlexSDK_OnGenericSceneChange(EGenericScene p_NewScene);
69 static custom_types::Helpers::Coroutine Coroutine_DisableCanvas(LoadingProgressBar* p_Self, float p_Time);
70
71 };
72
73}
74
75CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::LoadingProgressBar);
void ShowTimedMessage(std::u16string_view p_Message, float p_Time)
Show a message with a hide timer.
void ShowLoadingProgressBar(std::u16string_view p_Message, float p_Progress)
Show loading progress bar with a message.
void SetProgress(std::u16string_view p_Message, float p_Progress)
Set current progress and displayed message.
DECLARE_INSTANCE_METHOD(void, Awake)
On component creation.
void HideTimed(float p_Time)
Set hide timer.
Generic UI components.
User interface components, views, flow coordinator, builders and factories.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8