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() ;
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
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
Definition DropdownScreenController.h:5
static MCAPI void ** $vftable()
MCAPI::ui::DirtyFlag $tick()
MCAPI void setUpCallbacksForDropdownOption(::std::string const &dropdownName, ::std::string const &dropdownToggleLabelBindingName, ::std::unordered_map<::std::string, int > const &nameValuePairs, ::std::unordered_map< int, ::std::string > const &valueLabelPairs, ::std::string const &enabledBindingName, ::std::function< bool()> isEnabled, ::std::function< int()> getValue, ::std::function< void(int)> setValue)
MCAPI void updateDropdownCollectionSize(int const &collectionSize)
MCAPI void setUpCallbacksForCollectionDropdownOption(::std::string const &collectionName, int const &collectionSize, ::std::string const &dropdownName, ::std::string const &dropdownToggleLabelBindingName, ::std::unordered_map<::std::string, int > const &nameValuePairs, ::std::unordered_map< int, ::std::string > const &valueLabelPairs, ::std::string const &enabledBindingName, ::std::function< bool(int)> isEnabled, ::std::function< int(int)> getValue, ::std::function< void(int, int)> setValue)
Definition ScreenController.h:5
Definition DropdownScreenController.h:13