ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
SubToggleWithCallbacks.hpp
1#pragma once
2
3#include "../../../Utils/Event.hpp"
4#include "../../../Utils/Il2cpp.hpp"
5
6#include <UnityEngine/UI/Selectable.hpp>
7#include <UnityEngine/UI/Selectable_SelectionState.hpp>
8#include <UnityEngine/UI/Toggle.hpp>
9
10namespace CP_SDK::UI::DefaultComponents::Subs {
11
12 namespace _u
13 {
14 using namespace UnityEngine;
15 using namespace UnityEngine::UI;
16 }
17 namespace _v
18 {
19 using namespace CP_SDK::Utils;
20 }
21
23 class SubToggleWithCallbacks : public _u::Toggle
24 {
25 CP_SDK_IL2CPP_INHERIT("CP_SDK::UI::DefaultComponents::Subs", SubToggleWithCallbacks, _u::Toggle);
26 CP_SDK_IL2CPP_DECLARE_CTOR_CHILD(SubToggleWithCallbacks);
27 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHILD(SubToggleWithCallbacks);
28 CP_SDK_IL2CPP_CTOR_FIELD();
29 CP_SDK_IL2CPP_DTOR_FIELD();
30
31 public:
33 enum class ESelectionState
34 {
35 Normal,
36 Highlighted,
37 Pressed,
38 Selected,
39 Disabled
40 };
41
42 public:
45
46 public:
47 CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, Selectable, void, DoStateTransition, Selectable::SelectionState, bool);
48
49 };
50
51}
52
_v::Event< ESelectionState > StateDidChangeEvent
State did change event.
Event class helper.
Definition Event.hpp:100
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8