Skip to content
LeviMC
English
AutoLightDark
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
12// clang-format on
13
15public:
16 // ChatSettingsScreenController inner types declare
17 // clang-format off
18 struct ChatSettings;
19 // clang-format on
20
21 // ChatSettingsScreenController inner types define
22 enum class ColorSubsection : uchar {
23 None = 0,
24 ChatMessages = 1,
25 Mentions = 2,
26 };
27
28 struct ChatSettings {
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<1, 1, bool> mIsChatMute;
33 ::ll::TypedStorage<1, 1, bool> mIsTTSOn;
34 ::ll::TypedStorage<4, 4, ::Typeface> mTypeface;
35 ::ll::TypedStorage<4, 4, int> mFontSize;
36 ::ll::TypedStorage<4, 4, float> mLineSpacing;
37 ::ll::TypedStorage<4, 4, int> mChatColorCode;
38 ::ll::TypedStorage<4, 4, int> mMentionsColorCode;
39 // NOLINTEND
40 };
41
42public:
43 // member variables
44 // NOLINTBEGIN
45 ::ll::TypedStorage<4, 24, ::ChatSettingsScreenController::ChatSettings> mInitialSettings;
46 ::ll::TypedStorage<4, 24, ::ChatSettingsScreenController::ChatSettings> mSettings;
47 ::ll::TypedStorage<1, 1, bool const> mLanguageCanBeSmooth;
48 ::ll::TypedStorage<8, 64, ::std::function<void()>> mRefreshChatCallback;
49 ::ll::TypedStorage<8, 64, ::std::function<void(::std::string const&, bool)>> mFocusControlCallback;
50 // NOLINTEND
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 virtual void setViewCommand(::ScreenViewCommand const& callback) /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCNAPI void _handleFontColorChanged(int fontColorIndex, ::ChatSettingsScreenController::ColorSubsection colorType);
62
63 MCNAPI void _setInitialSettings();
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCNAPI void $setViewCommand(::ScreenViewCommand const& callback);
70 // NOLINTEND
71};
Definition ChatSettingsScreenController.h:5
MCAPI void _handleFontColorChanged(int fontColorIndex, ::ChatSettingsScreenController::ColorSubsection colorType)
MCAPI void $setViewCommand(::ScreenViewCommand const &callback)
Definition ClientInstanceScreenController.h:5
Definition ChatSettingsScreenController.h:15
Definition ScreenViewCommand.h:5