ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
CDropdown.hpp
1#pragma once
2
3#include "../UIIl2cpp.hpp"
4
5#include <UnityEngine/MonoBehaviour.hpp>
6#include <UnityEngine/RectOffset.hpp>
7#include <UnityEngine/UI/LayoutElement.hpp>
8
10
11 namespace _u
12 {
13 using namespace UnityEngine;
14 using namespace UnityEngine::UI;
15 }
16 namespace _v
17 {
18 using namespace CP_SDK::Utils;
19 }
20
22 class CDropdown : public _u::MonoBehaviour
23 {
24 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI.Components", CDropdown, _u::MonoBehaviour);
25 CP_SDK_IL2CPP_DECLARE_CTOR(CDropdown);
26 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR(CDropdown);
27
28 protected:
30
32
33 _v::Action<bool> m_SetInteractable;
36
37 public:
40
41 public:
46
47 public:
49 std::u16string_view GetValue();
50
51 public:
54 CDropdown* SetInteractable(bool p_Interactable);
57 CDropdown* SetOptions(const std::vector<std::u16string>& p_Options);
61 CDropdown* SetValue(std::u16string_view p_Value, bool p_Notify = true);
62
63 };
64
65}
66
67CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::Components::CDropdown);
CDropdown * SetOptions(const std::vector< std::u16string > &p_Options)
Set available options.
CDropdown * SetValue(std::u16string_view p_Value, bool p_Notify=true)
Set value.
CDropdown * OnValueChanged(_v::CActionRef< int, std::u16string_view > p_Functor, bool p_Add=true)
On value changed event.
std::u16string_view GetValue()
Get value.
CDropdown * SetInteractable(bool p_Interactable)
Set interactable state.
Generic UI components.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8