LeviLamina
Loading...
Searching...
No Matches
ChatSettingsScreenController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/screens/controllers/ClientInstanceScreenController.h"
7#include "mc/client/options/Typeface.h"
8
9// auto generated forward declare list
10// clang-format off
13// clang-format on
14
16public:
17 // ChatSettingsScreenController inner types declare
18 // clang-format off
19 struct ChatSettings;
20 // clang-format on
21
22 // ChatSettingsScreenController inner types define
23 enum class ColorSubsection : uchar {
24 None = 0,
25 ChatMessages = 1,
26 Mentions = 2,
27 };
28
29 struct ChatSettings {
30 public:
31 // member variables
32 // NOLINTBEGIN
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;
40 // NOLINTEND
41 };
42
43public:
44 // member variables
45 // NOLINTBEGIN
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;
51 // NOLINTEND
52
53public:
54 // prevent constructor by default
55 ChatSettingsScreenController();
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 virtual void setViewCommand(::ScreenViewCommand const& callback) /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI ChatSettingsScreenController(
67 ::std::shared_ptr<::ClientInstanceScreenModel> clientModel,
68 ::std::function<void()> refreshChatCallback
69 );
70
71 MCAPI void _fireEventChatSettingsUpdated() const;
72
73 MCAPI void _handleFontColorChanged(int fontColorIndex, ::ChatSettingsScreenController::ColorSubsection colorType);
74
75 MCAPI void _registerButtons();
76
77 MCAPI void _registerDropdowns();
78
79 MCAPI void _registerSliders();
80
81 MCAPI void _registerToggles();
82
83 MCAPI void _resetChatSettings();
84
85 MCAPI void _setInitialSettings();
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCAPI void*
92 $ctor(::std::shared_ptr<::ClientInstanceScreenModel> clientModel, ::std::function<void()> refreshChatCallback);
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI void $setViewCommand(::ScreenViewCommand const& callback);
99 // NOLINTEND
100
101public:
102 // vftables
103 // NOLINTBEGIN
104 MCNAPI static void** $vftableForScreenController();
105
107 // NOLINTEND
108};
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