ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
DefaultCColorInput.hpp
1#pragma once
2
3#include "../Components/CColorInput.hpp"
4#include "../Components/CPrimaryButton.hpp"
5#include "../../Utils/Event.hpp"
6
7#include <UnityEngine/UI/Image.hpp>
8#include <UnityEngine/UI/Button.hpp>
9
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
24 {
25 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI.DefaultComponents", DefaultCColorInput, Components::CColorInput);
26 CP_SDK_IL2CPP_DECLARE_CTOR_CHILD(DefaultCColorInput);
27 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHILD(DefaultCColorInput);
28
29 private:
35 _u::Color m_Value;
36 _u::Color m_OriginalValue;
37 bool m_AlphaSupport;
38
39 _v::Event<_u::Color> m_OnChange;
40
41 public:
44
47
48 public:
52 void OnValueChanged_Impl(_v::CActionRef<_u::Color> p_Functor, bool p_Add = true);
53
54 public:
56 _u::Color GetValue_Impl();
57
58 public:
61 void SetAlphaSupport_Impl(bool p_Support);
64 void SetInteractable_Impl(bool p_Interactable);
68 void SetValue_Impl(_u::Color p_Value, bool p_Notify = true);
69
70 private:
72 void Notify();
74 void Button_OnClick();
75
76 };
77
78}
79
80CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::DefaultComponents::DefaultCColorInput);
void Init_DefaultCColorInput()
On component creation.
void SetInteractable_Impl(bool p_Interactable)
Set interactable state.
void SetAlphaSupport_Impl(bool p_Support)
Set alpha support.
void OnValueChanged_Impl(_v::CActionRef< _u::Color > p_Functor, bool p_Add=true)
On value changed event.
void SetValue_Impl(_u::Color p_Value, bool p_Notify=true)
Set value.
Event class helper.
Definition Event.hpp:100
Default generic components implementation.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8