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 public:
33 // prevent constructor by default
34 SetUpCallbacksForCollectionDropdownOptionsParameters();
35
36 public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI SetUpCallbacksForCollectionDropdownOptionsParameters(
40 ::std::string const& collectionName,
41 ::std::string const& dropdownName,
42 ::std::string const& dropdownToggleLabelBindingName,
43 ::std::unordered_map<::std::string, int> const& nameValuePairs,
44 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
45 ::std::string const& enabledBindingName,
46 ::std::function<bool(int)> isEnabled,
47 ::std::function<int(int)> getValue,
48 ::std::function<void(int, int)> setValue
49 );
50
51 MCAPI ~SetUpCallbacksForCollectionDropdownOptionsParameters();
52 // NOLINTEND
53
54 public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(
58 ::std::string const& collectionName,
59 ::std::string const& dropdownName,
60 ::std::string const& dropdownToggleLabelBindingName,
61 ::std::unordered_map<::std::string, int> const& nameValuePairs,
62 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
63 ::std::string const& enabledBindingName,
64 ::std::function<bool(int)> isEnabled,
65 ::std::function<int(int)> getValue,
66 ::std::function<void(int, int)> setValue
67 );
68 // NOLINTEND
69
70 public:
71 // destructor thunk
72 // NOLINTBEGIN
73 MCAPI void $dtor();
74 // NOLINTEND
75 };
76
77 using BooleanOptionGetter = ::std::function<bool()>;
78
79 using IntegerOptionGetter = ::std::function<int()>;
80
81 using IntegerOptionSetter = ::std::function<void(int)>;
82
83 using CollectionBooleanOptionGetter = ::std::function<bool(int)>;
84
85 using CollectionIntegerOptionGetter = ::std::function<int(int)>;
86
87 using CollectionIntegerOptionSetter = ::std::function<void(int, int)>;
88
89public:
90 // member variables
91 // NOLINTBEGIN
92 ::ll::TypedStorage<4, 4, int> mOffset;
93 ::ll::TypedStorage<8, 32, ::std::vector<bool>> mActiveDropdown;
94 ::ll::TypedStorage<1, 1, bool> mUpdateBindings;
95 ::ll::TypedStorage<
96 8,
97 8,
98 ::std::unique_ptr<::DropdownScreenController::SetUpCallbacksForCollectionDropdownOptionsParameters>>
99 mDelayedParams;
100 // NOLINTEND
101
102public:
103 // virtual functions
104 // NOLINTBEGIN
105 virtual ~DropdownScreenController() /*override*/ = default;
106
107 virtual ::ui::DirtyFlag tick() /*override*/;
108 // NOLINTEND
109
110public:
111 // member functions
112 // NOLINTBEGIN
113 MCAPI void setUpCallbacksForCollectionDropdownOption(
114 ::std::string const& collectionName,
115 int const& collectionSize,
116 ::std::string const& dropdownName,
117 ::std::string const& dropdownToggleLabelBindingName,
118 ::std::unordered_map<::std::string, int> const& nameValuePairs,
119 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
120 ::std::string const& enabledBindingName,
121 ::std::function<bool(int)> isEnabled,
122 ::std::function<int(int)> getValue,
123 ::std::function<void(int, int)> setValue
124 );
125
126 MCAPI void setUpCallbacksForDropdownOption(
127 ::std::string const& dropdownName,
128 ::std::string const& dropdownToggleLabelBindingName,
129 ::std::unordered_map<::std::string, int> const& nameValuePairs,
130 ::std::unordered_map<int, ::std::string> const& valueLabelPairs,
131 ::std::string const& enabledBindingName,
132 ::std::function<bool()> isEnabled,
133 ::std::function<int()> getValue,
134 ::std::function<void(int)> setValue
135 );
136
137 MCAPI void updateDropdownCollectionSize(int const& collectionSize);
138 // NOLINTEND
139
140public:
141 // virtual function thunks
142 // NOLINTBEGIN
143 MCAPI ::ui::DirtyFlag $tick();
144 // NOLINTEND
145
146public:
147 // vftables
148 // NOLINTBEGIN
149 MCNAPI static void** $vftable();
150 // NOLINTEND
151};
Definition DropdownScreenController.h:5
static MCAPI void ** $vftable()
Definition ScreenController.h:5