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 _handleFontColorChanged(int fontColorIndex, ::ChatSettingsScreenController::ColorSubsection colorType);
72
73 MCAPI void _setInitialSettings();
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void*
80 $ctor(::std::shared_ptr<::ClientInstanceScreenModel> clientModel, ::std::function<void()> refreshChatCallback);
81 // NOLINTEND
82
83public:
84 // virtual function thunks
85 // NOLINTBEGIN
86 MCAPI void $setViewCommand(::ScreenViewCommand const& callback);
87 // NOLINTEND
88};
Definition ChatSettingsScreenController.h:5
Definition ClientInstanceScreenController.h:5
Definition ClientInstanceScreenModel.h:5
Definition ChatSettingsScreenController.h:15
Definition ScreenViewCommand.h:5