diff options
Diffstat (limited to 'src/ui.h')
| -rw-r--r-- | src/ui.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -11,6 +11,10 @@ typedef char InteractionItems[INTERACTION_MENU_MAX][INTERACTION_LABEL_MAX]; typedef struct { char text[INTERACTION_CHAT_MAX]; + char displayedText[INTERACTION_CHAT_MAX]; + size_t textSize; + int displayUpTo; // Used for cool animation. + double lastCharacterUpdate; Rectangle rect; bool visible; EntityId entityId; @@ -31,6 +35,8 @@ void hideInteractionChat(InteractionChat* chat); void setInteractionChat(InteractionChat* chat, const char* text); void writeToInteractionChat(InteractionChat* chat, const char* text); void clearInteractionChat(InteractionChat* chat); +bool isInteractionChatAnimationDone(InteractionChat* chat); +void endInteractionChatAnimation(InteractionChat* chat); void updateInteractionChat(InteractionChat* chat, Game* game); // Interaction menu procedures. |
