3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/screens/controllers/ClientInstanceScreenController.h"
7#include "mc/client/options/Typeface.h"
23 enum class ColorSubsection : uchar {
33 ::ll::TypedStorage<1, 1, bool> mIsChatMute;
34 ::ll::TypedStorage<1, 1, bool> mIsTTSOn;
35 ::ll::TypedStorage<4, 4, ::Typeface> mTypeface;
36 ::ll::TypedStorage<4, 4, int> mFontSize;
37 ::ll::TypedStorage<4, 4, float> mLineSpacing;
38 ::ll::TypedStorage<4, 4, int> mChatColorCode;
39 ::ll::TypedStorage<4, 4, int> mMentionsColorCode;
46 ::ll::TypedStorage<4, 24, ::ChatSettingsScreenController::ChatSettings> mInitialSettings;
47 ::ll::TypedStorage<4, 24, ::ChatSettingsScreenController::ChatSettings> mSettings;
48 ::ll::TypedStorage<1, 1, bool const> mLanguageCanBeSmooth;
49 ::ll::TypedStorage<8, 64, ::std::function<void()>> mRefreshChatCallback;
50 ::ll::TypedStorage<8, 64, ::std::function<void(::std::string
const&,
bool)>> mFocusControlCallback;
55 ChatSettingsScreenController();
60 virtual void setViewCommand(::ScreenViewCommand
const& callback) ;
62 virtual ~ChatSettingsScreenController() =
default;
68 MCAPI ChatSettingsScreenController(
69 ::std::shared_ptr<::ClientInstanceScreenModel> clientModel,
70 ::std::function<
void()> refreshChatCallback
73 MCAPI
void _fireEventChatSettingsUpdated()
const;
75 MCAPI
void _handleFontColorChanged(
int fontColorIndex, ::ChatSettingsScreenController::ColorSubsection colorType);
77 MCAPI
void _registerButtons();
79 MCAPI
void _registerDropdowns();
81 MCAPI
void _registerSliders();
83 MCAPI
void _registerToggles();
85 MCAPI
void _resetChatSettings();
87 MCAPI
void _setInitialSettings();
94 $ctor(::std::shared_ptr<::ClientInstanceScreenModel> clientModel, ::std::function<
void()> refreshChatCallback);
100 MCAPI
void $setViewCommand(::ScreenViewCommand
const& callback);
Definition ChatSettingsScreenController.h:5
static MCAPI void ** $vftableForEnableNonOwnerReferences()
static MCAPI void ** $vftableForScreenController()
Definition ClientInstanceScreenController.h:5
Definition ClientInstanceScreenModel.h:5
Definition ChatSettingsScreenController.h:15
Definition ScreenViewCommand.h:5