aboutsummaryrefslogtreecommitdiffstats
path: root/src/messageArea.c
blob: bf2c70de5692928d9f8ceb287b5316cf0c11414f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "messageArea.h"

void initMessageArea(MessageArea* messageArea)
{
  memset(messageArea->text, 0, sizeof(char) * MESSAGE_AREA_MAX);
  memcpy(messageArea->text, "meowmeowmeowmeowmeowmeowmeowmeowmweowiwiweioo", sizeof("meowmeowmeowmeowmeowmeowmeowmeowmweowiwiweioo"));
  messageArea->bounds = (Rectangle){100.0, 100.0, 100.0, 100.0};
}

void updateMessageArea(MessageArea* messageArea, Game* game)
{
  DrawRectangleRec(messageArea->bounds,
                   GetColor(GuiGetStyle(DEFAULT, BACKGROUND_COLOR)));
  GuiLabel(messageArea->bounds, messageArea->text);
}