33 float centerX = screenWidth / 2.0f;
39 _roomNameInput->SetPlaceholder(
"Enter room name (3-30 characters)");
155 const char *title =
"Create New Room";
157 int titleFontSize = 32;
158 int titleWidth =
static_cast<int>(strlen(title) * titleFontSize * 0.5f);
159 int titleX = (screenWidth - titleWidth) / 2;
169 int errorFontSize = 18;
170 int errorWidth =
static_cast<int>(
_errorMessage.length() * errorFontSize * 0.5f);
171 int errorX = (screenWidth - errorWidth) / 2;
virtual void DrawText(int fontHandle, const char *text, int x, int y, int fontSize, unsigned int color)=0
Draw text using a loaded font.