LeviLamina
Loading...
Searching...
No Matches
DropdownScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/screens/ScreenController.h"
8
10public:
11 // DropdownScreenController inner types declare
12 // clang-format off
14 // clang-format on
15
16 // DropdownScreenController inner types define
18 public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 32, ::std::string const> mCollectionName;
22 ::ll::TypedStorage<8, 32, ::std::string const> mDropdownName;
23 ::ll::TypedStorage<8, 32, ::std::string const> mDropdownToggleLabelBindingName;
24 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, int> const> mNameValuePairs;
25 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::string> const> mValueLabelPairs;
26 ::ll::TypedStorage<8, 32, ::std::string const> mEnabledBindingName;
27 ::ll::TypedStorage<8, 64, ::std::function<bool(int)>> mIsEnabled;
28 ::ll::TypedStorage<8, 64, ::std::function<int(int)>> mGetValue;
29 ::ll::TypedStorage<8, 64, ::std::function<void(int, int)>> mSetValue;
30 // NOLINTEND
31 };
32
33 using BooleanOptionGetter = ::std::function<bool()>;
34
35 using IntegerOptionGetter = ::std::function<int()>;
36
37 using IntegerOptionSetter = ::std::function<void(int)>;
38
39 using CollectionBooleanOptionGetter = ::std::function<bool(int)>;
40
41 using CollectionIntegerOptionGetter = ::std::function<int(int)>;
42
43 using CollectionIntegerOptionSetter = ::std::function<void(int, int)>;
44
45public:
46 // member variables
47 // NOLINTBEGIN
48 ::ll::TypedStorage<4, 4, int> mOffset;
49 ::ll::TypedStorage<8, 32, ::std::vector<bool>> mActiveDropdown;
50 ::ll::TypedStorage<1, 1, bool> mUpdateBindings;
51 ::ll::TypedStorage<
52 8,
53 8,
54 ::std::unique_ptr<::DropdownScreenController::SetUpCallbacksForCollectionDropdownOptionsParameters>>
55 mDelayedParams;
56 // NOLINTEND
57
58public:
59 // virtual functions
60 // NOLINTBEGIN
61 virtual ~DropdownScreenController() /*override*/ = default;
62
63 virtual ::ui::DirtyFlag tick() /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCAPI void setUpCallbacksForCollectionDropdownOption(
70 ::std::string const& collectionName,
71 int const& collectionSize,
72 ::std::string const& dropdownName,
73 ::std::string const& dropdownToggleLabelBindingName,
74 ::std::unordered_map<::std::string, int> const& nameValuePairs,
75 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
76 ::std::string const& enabledBindingName,
77 ::std::function<bool(int)> isEnabled,
78 ::std::function<int(int)> getValue,
79 ::std::function<void(int, int)> setValue
80 );
81
82 MCAPI void setUpCallbacksForDropdownOption(
83 ::std::string const& dropdownName,
84 ::std::string const& dropdownToggleLabelBindingName,
85 ::std::unordered_map<::std::string, int> const& nameValuePairs,
86 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
87 ::std::string const& enabledBindingName,
88 ::std::function<bool()> isEnabled,
89 ::std::function<int()> getValue,
90 ::std::function<void(int)> setValue
91 );
92
93 MCAPI void updateDropdownCollectionSize(int const& collectionSize);
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI ::ui::DirtyFlag $tick();
100 // NOLINTEND
101
102public:
103 // vftables
104 // NOLINTBEGIN
105 MCNAPI static void** $vftable();
106 // NOLINTEND
107};
Definition DropdownScreenController.h:5
static MCAPI void ** $vftable()
Definition ScreenController.h:5