NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_lyttextBox.hpp
1#pragma once
2#include <nw4r/lyt.h>
3#include <game/bases/d_message.hpp>
4
5/// @brief A text box class with BMG message support.
7public:
8 /// @brief Sets the message to display in the text box.
9 /// @param bmg The BMG resource.
10 /// @param messageID The ID of the message to display.
11 /// @param messageGroup The group of the message to display.
12 /// @param placeholderCount The number of placeholders in the message.
13 /// @param ... Values for placeholders in the message.
14 void setMessage(MsgRes_c *bmg, ulong messageGroup, ulong messageID, long placeholderCount, ...);
15
16 /// @brief Sets the text to display in the text box.
17 /// @param text The text to display.
18 /// @param placeholderCount The number of placeholders in the message.
19 /// @param ... Values for placeholders in the text.
20 void setText(const wchar_t *text, long placeholderCount, ...);
21
22 void ExtensionUserDataSetup(); ///< Checks for extension user data in the layout.
23
24private:
25 /// @brief Sets the message to display in the text box with a va_list.
26 /// @param bmg The BMG resource.
27 /// @param messageID The ID of the message to display.
28 /// @param messageGroup The group of the message to display.
29 /// @param placeholderCount The number of placeholders in the message.
30 /// @param vargs A va_list of values for placeholders in the message.
31 void setMessage(MsgRes_c *bmg, ulong messageGroup, ulong messageID, long placeholderCount, va_list *vargs);
32
33 /// @brief Sets the text to display in the text box with a va_list.
34 /// @param text The text to display.
35 /// @param placeholderCount The number of placeholders in the text.
36 /// @param vargs A va_list of values for placeholders in the text.
37 /// @param bmg The BMG resource.
38 void setText(const wchar_t *text, long placeholderCount, va_list *vargs, MsgRes_c *bmg);
39};
A text box class with BMG message support.
void setMessage(MsgRes_c *bmg, ulong messageGroup, ulong messageID, long placeholderCount,...)
Sets the message to display in the text box.
void ExtensionUserDataSetup()
Checks for extension user data in the layout.
void setText(const wchar_t *text, long placeholderCount,...)
Sets the text to display in the text box.