ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
DefaultCIconButton.hpp
1#pragma once
2
3#include "../Components/CIconButton.hpp"
4#include "../../Utils/Event.hpp"
5#include "../../Utils/Delegate.hpp"
6
7#include <custom-types/shared/coroutine.hpp>
8#include <UnityEngine/EventSystems/IEventSystemHandler.hpp>
9#include <UnityEngine/EventSystems/IPointerEnterHandler.hpp>
10#include <UnityEngine/EventSystems/IPointerExitHandler.hpp>
11#include <UnityEngine/EventSystems/PointerEventData.hpp>
12
14
15 namespace _u
16 {
17 using namespace UnityEngine;
18 using namespace UnityEngine::UI;
19 using namespace UnityEngine::EventSystems;
20 }
21 namespace _v
22 {
23 using namespace CP_SDK::Utils;
24 }
25
28 {
29 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI.DefaultComponents", DefaultCIconButton, Components::CIconButton, CP_SDK_IL2CPP_INTERFACES(
30 _u::IEventSystemHandler,
31 _u::IPointerEnterHandler,
32 _u::IPointerExitHandler
33 ));
34 CP_SDK_IL2CPP_DECLARE_CTOR_CHILD(DefaultCIconButton);
35 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHILD(DefaultCIconButton);
36
37 private:
41 _v::MonoPtr<_u::Image> m_IconImage;
42
43 _v::Event<> m_OnClickEvent;
44
45 public:
48
51
52 private:
56 void OnClick_Impl(_v::CActionRef<> p_Functor, bool p_Add = true);
57
58 private:
60 void Button_OnClick();
61
62 public:
63 CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IPointerEnterHandler, void, OnPointerEnter, _u::PointerEventData*);
64 CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IPointerExitHandler, void, OnPointerExit, _u::PointerEventData*);
65
66 private:
70 static custom_types::Helpers::Coroutine Coroutine_AnimateScale(DefaultCIconButton* p_Self, _u::Vector3 p_Target, float p_Time);
71
72 };
73
74}
75
76CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::DefaultComponents::DefaultCIconButton);
void Init_DefaultCIconButton()
On component creation.
Event class helper.
Definition Event.hpp:100
Default generic components implementation.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8