3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/util/HudElement.h"
7#include "mc/client/game/CoordinateCaptureType.h"
8#include "mc/client/game/IConfigListener.h"
9#include "mc/client/gui/GuiMessage.h"
10#include "mc/client/gui/ScreenSizeData.h"
11#include "mc/client/gui/SoundDirection.h"
12#include "mc/client/gui/TitleMessage.h"
13#include "mc/client/gui/screens/MenuPointer.h"
14#include "mc/client/gui/screens/controllers/ModalScreenData.h"
15#include "mc/deps/application/AppPlatformListener.h"
16#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
17#include "mc/deps/core/utility/NonOwnerPointer.h"
18#include "mc/deps/core/utility/pub_sub/Publisher.h"
19#include "mc/deps/core_graphics/math/Rect.h"
20#include "mc/deps/input/RectangleArea.h"
21#include "mc/deps/minecraft_renderer/renderer/MaterialPtr.h"
22#include "mc/deps/minecraft_renderer/renderer/Mesh.h"
23#include "mc/util/HudVisibility.h"
24#include "mc/util/ProfanityFilterContext.h"
25#include "mc/world/ContainerID.h"
26#include "mc/world/actor/player/PlayerInventorySlotData.h"
37namespace Bedrock::PubSub::ThreadModel {
struct MultiThreaded; }
42 LLAPI
void setHudVisibilityState(::std::vector<::HudElement>
const& elements, ::HudVisibility visibility);
44 LLNDAPI
bool isHudElementVisible(::HudElement element)
const;
57 ::ll::TypedStorage<4, 4, ::GuiMessage::MessageType> messageType;
58 ::ll::TypedStorage<8, 32, ::std::string> username;
59 ::ll::TypedStorage<8, 32, ::std::string> message;
60 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> filteredMessage;
61 ::ll::TypedStorage<8, 32, ::std::string> ttsMessage;
62 ::ll::TypedStorage<4, 4, float> lifeTime;
63 ::ll::TypedStorage<1, 1, bool> forceVisible;
64 ::ll::TypedStorage<1, 1, bool> ttsRequired;
65 ::ll::TypedStorage<8, 32, ::std::string> xuid;
66 ::ll::TypedStorage<8, 32, ::std::string const> platformId;
67 ::ll::TypedStorage<1, 1, bool> enableEmoticonify;
72 MessageConfig& operator=(MessageConfig
const&);
81 ::GuiMessage::MessageType _messageType,
82 ::std::string
const& _username,
83 ::std::string
const& _message,
84 ::std::optional<::std::string>
const& _filteredMessage,
85 ::std::string
const& _ttsMessage,
89 ::std::string
const& _xuid,
90 ::std::string
const& _platformId
102 ::GuiMessage::MessageType _messageType,
103 ::std::string
const& _username,
104 ::std::string
const& _message,
105 ::std::optional<::std::string>
const& _filteredMessage,
106 ::std::string
const& _ttsMessage,
110 ::std::string
const& _xuid,
111 ::std::string
const& _platformId
125 ::ll::TypedStorage<4, 24, ::ScreenSizeData> mScreenSizeData;
126 ::ll::TypedStorage<1, 1, bool> mScreenSizeDataValid;
127 ::ll::TypedStorage<4, 4, float> mGuiScale;
128 ::ll::TypedStorage<4, 4, float> mInvGuiScale;
129 ::ll::TypedStorage<1, 1, bool> mOverlappingControlsExist;
130 ::ll::TypedStorage<1, 1, bool> mIsCurrentlyActive;
131 ::ll::TypedStorage<8, 16, ::std::set<int>> mPostedErrors;
132 ::ll::TypedStorage<1, 1, ::MenuPointer> mMenuPointer;
133 ::ll::TypedStorage<2, 2, short> mPointerX;
134 ::ll::TypedStorage<2, 2, short> mPointerY;
135 ::ll::TypedStorage<1, 1, bool> mHasShowPreexistingMessages;
136 ::ll::TypedStorage<1, 1, bool> mToolbarWasRendered;
137 ::ll::TypedStorage<4, 4, int> mPrevSelectedSlot;
138 ::ll::TypedStorage<1, 1, ::ContainerID> mPrevSelectedInventoryContainer;
139 ::ll::TypedStorage<4, 4, int> mFlashSlotId;
140 ::ll::TypedStorage<8, 8, double> mFlashSlotStartTime;
141 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
142 ::ll::TypedStorage<4, 16, ::RectangleArea> mToolbarArea;
143 ::ll::TypedStorage<4, 16, ::RectangleArea> mToolbarAreaContainer;
144 ::ll::TypedStorage<8, 32, ::std::string> mLastPopupText;
145 ::ll::TypedStorage<8, 32, ::std::string> mLastPopupSubtitleText;
146 ::ll::TypedStorage<8, 32, ::std::string> mLastJukeboxPopupText;
147 ::ll::TypedStorage<8, 32, ::std::string> mLastJukeboxPopupSubtitleText;
148 ::ll::TypedStorage<4, 4, int> mTickCount;
149 ::ll::TypedStorage<4, 4, float> mItemNameOverlayTime;
150 ::ll::TypedStorage<4, 4, float> mJukeboxNameOverlayTime;
151 ::ll::TypedStorage<1, 1, bool> mPopupNoticeDirty;
152 ::ll::TypedStorage<1, 1, bool> mJukeboxPopupNoticeDirty;
153 ::ll::TypedStorage<8, 24, ::std::vector<::GuiMessage>> mGuiMessages;
154 ::ll::TypedStorage<8, 24, ::std::vector<::GuiMessage>> mSubtitleMessages;
155 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mDevConsoleMessages;
156 ::ll::TypedStorage<4, 4, int> mMaxDevConsoleMessages;
157 ::ll::TypedStorage<8, 24, ::std::vector<::ContentLogMessage>> mContentLogMessages;
158 ::ll::TypedStorage<8, 8, uint64> mContentLogErrorCount;
159 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mPerfTurtleMessages;
160 ::ll::TypedStorage<8, 376, ::std::optional<::ModalScreenData>> mModalScreenData;
161 ::ll::TypedStorage<8, 232, ::TitleMessage> mTitleMessage;
162 ::ll::TypedStorage<4, 52, ::std::array<::HudVisibility, 13>> mHudVisibilityState;
163 ::ll::TypedStorage<4, 4, uint> mServerSettingsId;
164 ::ll::TypedStorage<8, 32, ::std::string> mServerSettings;
165 ::ll::TypedStorage<1, 1, bool> mMuteChat;
166 ::ll::TypedStorage<4, 4, float> mCurrentDropTicks;
167 ::ll::TypedStorage<4, 8, ::PlayerInventorySlotData> mCurrentDropSlot;
168 ::ll::TypedStorage<4, 8, ::PlayerInventorySlotData> mLastSelectedSlot;
169 ::ll::TypedStorage<1, 1, bool> mShowProgress;
170 ::ll::TypedStorage<8, 32, ::std::string> mTipMessage;
171 ::ll::TypedStorage<4, 4, float> mTipMessageLength;
172 ::ll::TypedStorage<8, 608, ::mce::Mesh> mRcFeedbackOuter;
173 ::ll::TypedStorage<8, 608, ::mce::Mesh> mRcFeedbackInner;
174 ::ll::TypedStorage<8, 608, ::mce::Mesh> mVignette;
175 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mInvFillMat;
176 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mCursorMat;
177 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::DevConsoleLogger>> mDevConsoleLogger;
178 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastTickTime;
179 ::ll::TypedStorage<8, 16, ::std::map<::std::string, ::std::vector<::GuiMessage>>> mDelayedMessages;
180 ::ll::TypedStorage<8, 24, ::std::vector<::std::string>> mQueuedDevConsoleMessages;
181 ::ll::TypedStorage<8, 80, ::std::mutex> mQueuedDevMessagesMutex;
182 ::ll::TypedStorage<1, 1, bool> mUseEditorGuiScale;
183 ::ll::TypedStorage<4, 16, ::RectangleArea> mHUDHotbarRectangle;
184 ::ll::TypedStorage<1, 1, ::CoordinateCaptureType> mCoordinateCaptureType;
186 mOnGuiScaleUpdatedPublisher;
188 mServerFormDataAvailable;
193 GuiData& operator=(GuiData
const&);
194 GuiData(GuiData
const&);
200 virtual void onConfigChanged(
::Config const& c) ;
212 MCNAPI
void _setSubtitleInternal(::std::string
const& subtitle, ::std::optional<::std::string> filteredSubtitle);
214 MCNAPI
void _setTitleInternal(::std::string
const& title, ::std::optional<::std::string> filteredTitle);
216 MCNAPI
void addSubtitle(::std::string
const& message, ::SoundDirection direction,
bool isLocalPlayer);
218 MCAPI
float calculateGuiScale(
219 ::Vec2 const& totalScreenSize,
233 ::std::string
const& message,
234 ::std::optional<::std::string>
const& filteredMessage,
235 ::std::string
const& xuid,
236 ::std::string
const& platformId
240 ::std::string
const& author,
241 ::std::string
const& message,
242 ::std::optional<::std::string>
const& filteredMessage,
243 ::std::string
const& xuid,
244 ::std::string
const& platformId
247 MCAPI
void displayClientMessage(
248 ::std::string
const& message,
249 ::std::optional<::std::string>
const& filteredMessage,
256 ::std::string
const& message,
257 ::std::optional<::std::string>
const& filteredMessage,
258 ::std::vector<::std::string>
const& params
265 ::std::string
const& message,
266 ::std::optional<::std::string>
const& filteredMessage,
267 ::std::string
const& ttsMessage,
268 ::ProfanityFilterContext profanityFilterContext
273 ::std::string
const& xuid,
274 ::std::string
const& platformId
278 ::std::string
const& message,
279 ::std::string
const& xuid,
280 ::std::string
const& platformId
285 ::std::string
const& xuid,
286 ::std::string
const& platformId
290 ::std::string
const& author,
291 ::std::string
const& message,
292 ::std::optional<::std::string>
const& filteredMessage,
293 ::std::string
const& xuid,
294 ::std::string
const& platformId
301 MCAPI
float getGuiScale()
const;
311 MCAPI ::RectangleArea getSafeScreenZoneArea()
const;
323 MCAPI
void setActionBarMessage(::std::string
const& message, ::std::optional<::std::string>
const& filteredMessage);
327 MCNAPI
void setSubtitle(::std::string
const& subtitle, ::std::optional<::std::string> filteredSubtitle);
331 MCNAPI
void setTitle(::std::string
const& title, ::std::optional<::std::string> filteredTitle);
337 MCNAPI
void showPopupNotice(::std::string
const& message, ::std::string
const& subtitle);
Definition EnableNonOwnerReferences.h:7
Definition Publisher.h:25
Definition DevConsoleLogger.h:5
MCAPI bool getNewJukeboxPopupNotice(::std::string &message, ::std::string &subtitle)
MCAPI void displayChatMessage(::std::string const &author, ::std::string const &message, ::std::optional<::std::string > const &filteredMessage, ::std::string const &xuid, ::std::string const &platformId)
MCAPI::RectangleArea getWYSIWYGBottomHudReservedArea() const
MCAPI::std::string const getLastFilteredChatMessage()
MCAPI void displaySystemMessage(::std::string const &message, ::std::optional<::std::string > const &filteredMessage, ::std::string const &ttsMessage, ::ProfanityFilterContext profanityFilterContext)
MCAPI void clearSessionState()
MCAPI void showTipMessage(::std::string const &message)
MCAPI void setSubtitle(::std::string const &subtitle, ::std::optional<::std::string > filteredSubtitle)
MCAPI void $onConfigChanged(::Config const &c)
MCAPI void setTitle(::std::string const &title, ::std::optional<::std::string > filteredTitle)
MCAPI void * $ctor(::IClientInstance &client)
MCAPI void displayLocalizableMessage(::std::string const &message, ::std::optional<::std::string > const &filteredMessage, ::std::vector<::std::string > const ¶ms)
MCAPI int calculateMaxGuiScaleIndex(::Vec2 const &screenSize) const
MCAPI void flushQueuedDevConsoleMessages()
MCAPI void _setTitleInternal(::std::string const &title, ::std::optional<::std::string > filteredTitle)
MCAPI void clearPlayerMessages()
MCAPI void postError(int errCode)
MCAPI::RectangleArea const & recomputeHUDHotbarRectangle(float scale)
MCAPI void displayDevConsoleMessage(::std::string const &messages)
MCAPI void displayAnnouncementMessage(::std::string const &message, ::std::optional<::std::string > const &filteredMessage, ::std::string const &xuid, ::std::string const &platformId)
MCAPI void showJukeboxPopupNotice(::std::string const &message, ::std::string const &subtitle)
MCAPI int calculateOptimalGuiScaleIndex(::Vec2 const &safezoneClientScreenSize) const
static MCAPI ::std::array< float, 8 > const & GUI_SCALE_VALUES()
MCAPI void setScreenSizeData(::ScreenSizeData const &screenSizeData)
MCAPI::RectangleArea setTouchToolbarArea(::RectangleArea const &toolbarArea)
MCAPI int getClampedGuiScaleOffset() const
MCAPI GuiData(::IClientInstance &client)
MCAPI void setTextToSpeechEnabled(bool enabled)
MCAPI void displayTextObjectWhisperMessage(::TextObjectRoot const &textObject, ::std::string const &xuid, ::std::string const &platformId)
MCAPI void showPopupNotice(::std::string const &message, ::std::string const &subtitle)
MCAPI void displayTextObjectWhisperMessage(::std::string const &message, ::std::string const &xuid, ::std::string const &platformId)
MCAPI void displayLocalizedMessage(::std::string const &message, ::std::optional<::std::string > const &filteredMessage)
MCAPI void _addMessage(::GuiData::MessageConfig messageConfig, ::ProfanityFilterContext profanityFilterContext)
MCAPI bool getNewPopupNotice(::std::string &message, ::std::string &subtitle)
MCAPI void _addMessage(::GuiMessage message, ::ProfanityFilterContext profanityFilterContext)
MCAPI void _setSubtitleInternal(::std::string const &subtitle, ::std::optional<::std::string > filteredSubtitle)
MCAPI void displayTextObjectMessage(::TextObjectRoot const &textObject, ::std::string const &xuid, ::std::string const &platformId)
MCAPI::RectangleArea getLayoutCustomizationMainPanelRectangle() const
MCAPI::RectangleArea getWYSIWYGTopReservedArea() const
MCAPI void displayWhisperMessage(::std::string const &author, ::std::string const &message, ::std::optional<::std::string > const &filteredMessage, ::std::string const &xuid, ::std::string const &platformId)
MCAPI void addSubtitle(::std::string const &message, ::SoundDirection direction, bool isLocalPlayer)
Definition GuiMessage.h:5
Definition IClientInstance.h:5
Definition IConfigListener.h:5
Definition RectangleArea.h:5
Definition TextObjectRoot.h:14
Definition MultiThreaded.h:7
Definition ContentLogMessage.h:5
MCAPI MessageConfig(::GuiData::MessageConfig const &)
MCAPI MessageConfig(::GuiMessage::MessageType _messageType, ::std::string const &_username, ::std::string const &_message, ::std::optional<::std::string > const &_filteredMessage, ::std::string const &_ttsMessage, float _lifeTime, bool _forceVisible, bool _ttsRequired, ::std::string const &_xuid, ::std::string const &_platformId)
MCAPI void * $ctor(::GuiData::MessageConfig const &)
MCAPI void * $ctor(::GuiMessage::MessageType _messageType, ::std::string const &_username, ::std::string const &_message, ::std::optional<::std::string > const &_filteredMessage, ::std::string const &_ttsMessage, float _lifeTime, bool _forceVisible, bool _ttsRequired, ::std::string const &_xuid, ::std::string const &_platformId)
Definition ScreenSizeData.h:5