3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/screens/ScreenController.h"
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;
34 SetUpCallbacksForCollectionDropdownOptionsParameters();
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
51 MCAPI ~SetUpCallbacksForCollectionDropdownOptionsParameters();
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
77 using BooleanOptionGetter = ::std::function<bool()>;
79 using IntegerOptionGetter = ::std::function<int()>;
81 using IntegerOptionSetter = ::std::function<void(
int)>;
83 using CollectionBooleanOptionGetter = ::std::function<bool(
int)>;
85 using CollectionIntegerOptionGetter = ::std::function<int(
int)>;
87 using CollectionIntegerOptionSetter = ::std::function<void(
int,
int)>;
92 ::ll::TypedStorage<4, 4, int> mOffset;
93 ::ll::TypedStorage<8, 32, ::std::vector<bool>> mActiveDropdown;
94 ::ll::TypedStorage<1, 1, bool> mUpdateBindings;
98 ::std::unique_ptr<::DropdownScreenController::SetUpCallbacksForCollectionDropdownOptionsParameters>>
105 virtual ~DropdownScreenController() =
default;
107 virtual ::ui::DirtyFlag tick() ;
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
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
137 MCAPI
void updateDropdownCollectionSize(
int const& collectionSize);
143 MCAPI ::ui::DirtyFlag $tick();
Definition DropdownScreenController.h:5
static MCAPI void ** $vftable()
Definition ScreenController.h:5
Definition DropdownScreenController.h:13