You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
898 B
24 lines
898 B
#ifndef UICONTAINER_H_
|
|
#define UICONTAINER_H_
|
|
|
|
#include "raylib.h"
|
|
#include "button.h"
|
|
#include "selectable.h"
|
|
#include "../game.h"
|
|
|
|
typedef struct UiContainer{
|
|
Button *buttons[UI_CONTAINER_MAX_BUTTONS]; // Platz für max. 20 Buttons
|
|
int buttonCounter; // Zeigt wie viele Buttons der UiContainer aktuell schon speichert
|
|
Selectable *selectables[UI_CONTAINER_MAX_SELECTABLES]; // Platz für max 20 Selectables
|
|
int selectableCounter; // Zeigt wie viele Selectables der UiContainer aktuell schon speichert
|
|
} UiContainer;
|
|
|
|
void UiContainerUpdateUiContainer(UiContainer *uiContainer, Game *game);
|
|
void UiContainerDrawUiContainer(UiContainer *uiContainer);
|
|
|
|
UiContainer * UiContainerInitUiContainerForScreenID(Game *game, int id);
|
|
|
|
void UiContainerAddButton(UiContainer *uiContainer, Button *button);
|
|
void UiContainerAddSelectable(UiContainer *uiContainer, Selectable *selectable);
|
|
|
|
#endif |