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
62 virtual ~ChatSettingsScreenController() /*override*/ = default;
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCAPI ChatSettingsScreenController(
69 ::std::shared_ptr<::ClientInstanceScreenModel> clientModel,
70 ::std::function<void()> refreshChatCallback
71 );
72
73 MCAPI void _fireEventChatSettingsUpdated() const;
74
75 MCAPI void _handleFontColorChanged(int fontColorIndex, ::ChatSettingsScreenController::ColorSubsection colorType);
76
77 MCAPI void _registerButtons();
78
79 MCAPI void _registerDropdowns();
80
81 MCAPI void _registerSliders();
82
83 MCAPI void _registerToggles();
84
85 MCAPI void _resetChatSettings();
86
87 MCAPI void _setInitialSettings();
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void*
94 $ctor(::std::shared_ptr<::ClientInstanceScreenModel> clientModel, ::std::function<void()> refreshChatCallback);
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100 MCAPI void $setViewCommand(::ScreenViewCommand const& callback);
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCNAPI static void** $vftableForScreenController();
107
109 // NOLINTEND
110};
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