ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
ScreenSystem.hpp
1#pragma once
2
3#include "IFlowCoordinator.hpp"
4#include "Components/CFloatingPanel.hpp"
5#include "Views/TopNavigationView.hpp"
6
7namespace CP_SDK::UI {
8
9 namespace _u
10 {
11 using namespace UnityEngine;
12 }
13 namespace _v
14 {
15 using namespace CP_SDK::Utils;
16 }
17
19 class ScreenSystem : public _u::MonoBehaviour
20 {
21 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI", ScreenSystem, _u::MonoBehaviour);
22 CP_SDK_IL2CPP_DECLARE_CTOR(ScreenSystem);
23 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR(ScreenSystem);
24
25 static ScreenSystem* m_Instance;
26
27 private:
28 _v::MonoPtr<_u::Transform> m_ScreenContainer;
29 _v::MonoPtr<IFlowCoordinator> m_CurrentFlowCoordinator;
34 _v::MonoPtr<Views::TopNavigationView> m_TopNavigationViewController;
35
36 public:
37 static ScreenSystem* Instance();
38
39 static _v::Event<> OnCreated;
40 static _v::Event<> OnPresent;
41 static _v::Event<> OnDismiss;
42
43 public:
44 UIFieldRefDel<IFlowCoordinator> CurrentFlowCoordinator;
45 UIFieldRefDel<_u::Transform> ScreenContainer;
50
51 public:
53 static void Create();
55 static void Destroy();
56
57 public:
59 void Present();
61 void Dismiss();
62
63 public:
67 void SetFlowCoordinator(_v::CMonoPtrRef<IFlowCoordinator> p_FlowCoordinator, bool p_OnPresent);
68
69 private:
71 void Init();
72
73 private:
75 void TopNavigationViewController_OnBackButton();
76
77 };
78
79}
80
81CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::ScreenSystem);
ScreenSystem widget.
void Present()
Present the screen system.
void SetFlowCoordinator(_v::CMonoPtrRef< IFlowCoordinator > p_FlowCoordinator, bool p_OnPresent)
Set current flow coordinator.
static void Destroy()
Destroy.
void Dismiss()
Dismiss the screen system.
static void Create()
Create the screen system.
Delegate helper class.
Definition Delegate.hpp:123
Event class helper.
Definition Event.hpp:100
User interface components, views, flow coordinator, builders and factories.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8