ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
Dropdown.hpp
1#pragma once
2
3#include "../IModal.hpp"
4#include "../../XUI/XUI.hpp"
5
6namespace CP_SDK::UI::Modals {
7
8 namespace _u
9 {
10 using namespace UnityEngine;
11 using namespace UnityEngine::UI;
12 }
13 namespace _v
14 {
15 using namespace CP_SDK::Utils;
16 using namespace CP_SDK::XUI;
17 }
18
20 class Dropdown : public IModal
21 {
22 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI.Modals", Dropdown, IModal);
23 CP_SDK_IL2CPP_DECLARE_CTOR_CHILD(Dropdown);
24 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHILD(Dropdown);
25
26 private:
27 _v::XUIVVList::Ptr m_List;
28
30
31 private:
33 void Impl_OnShow();
35 void Impl_OnClose();
36
37 public:
42 void Init(const std::vector<std::u16string>& p_Options, std::u16string_view p_Selected, _v::CActionRef<std::u16string_view> p_Callback);
43
44 private:
46 void OnCancelButton();
49 void OnListItemSelect(const UI::Data::IListItem::Ptr& p_SelectedItem);
50
51 };
52
53}
54
55CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::Modals::Dropdown);
Abstract base modal component.
Definition IModal.hpp:22
void Init(const std::vector< std::u16string > &p_Options, std::u16string_view p_Selected, _v::CActionRef< std::u16string_view > p_Callback)
Init.
Built-in modals.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8
Tree like syntax CP_SDK::UI builder.