From baa647ad7caf95ea2619d8456bcfd0f04a08a719 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sun, 25 Feb 2018 05:25:33 +0100 Subject: + Added Message module, used for tutorials. + Added first tutorial level. * Font now inserts line feed automatically if the next word is too long to fit. * Gfx.c: added primitive list double buffering in order to gain some performance. * MapEditor: now airport can be defined inside the tool. --- Source/Message.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Source/Message.h (limited to 'Source/Message.h') diff --git a/Source/Message.h b/Source/Message.h new file mode 100644 index 0000000..e6bbcce --- /dev/null +++ b/Source/Message.h @@ -0,0 +1,37 @@ +#ifndef MESSAGE_HEADER__ +#define MESSAGE_HEADER__ + +/* ************************************* + * Includes + * *************************************/ + +#include "Global_Inc.h" + +/* ************************************* + * Defines + * *************************************/ + +#define MAX_MESSAGE_STR_SIZE 256 + +/* ************************************* + * Structs and enums + * *************************************/ + +typedef struct t_messagedata +{ + bool used; + uint32_t Timeout; + char strMessage[MAX_MESSAGE_STR_SIZE]; +}TYPE_MESSAGE_DATA; + +/* ************************************* + * Global prototypes + * *************************************/ + +void MessageInit(void); +bool MessageCreate(TYPE_MESSAGE_DATA* ptrMessage); +void MessageHandler(void); +void MessageRender(void); +char* MessageGetString(void); + +#endif // MESSAGE_HEADER__ -- cgit v1.2.3