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;
33 using BooleanOptionGetter = ::std::function<bool()>;
35 using IntegerOptionGetter = ::std::function<int()>;
37 using IntegerOptionSetter = ::std::function<void(
int)>;
39 using CollectionBooleanOptionGetter = ::std::function<bool(
int)>;
41 using CollectionIntegerOptionGetter = ::std::function<int(
int)>;
43 using CollectionIntegerOptionSetter = ::std::function<void(
int,
int)>;
48 ::ll::TypedStorage<4, 4, int> mOffset;
49 ::ll::TypedStorage<8, 32, ::std::vector<bool>> mActiveDropdown;
50 ::ll::TypedStorage<1, 1, bool> mUpdateBindings;
54 ::std::unique_ptr<::DropdownScreenController::SetUpCallbacksForCollectionDropdownOptionsParameters>>
61 virtual ~DropdownScreenController() =
default;
63 virtual ::ui::DirtyFlag tick() ;
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
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
93 MCAPI
void updateDropdownCollectionSize(
int const& collectionSize);
99 MCAPI ::ui::DirtyFlag $tick();
Definition DropdownScreenController.h:5
static MCAPI void ** $vftable()
Definition ScreenController.h:5
Definition DropdownScreenController.h:13