48 lines
901 B
C
48 lines
901 B
C
#include "application.h"
|
|
#include "dice_container.h"
|
|
#include "style.h"
|
|
#include <SDL3/SDL.h>
|
|
#include <clay/clay.h>
|
|
|
|
static inline
|
|
void DiceLogContainer() {
|
|
CLAY(CLAY_ID("LogContainer"), {
|
|
.layout = {
|
|
.sizing = layoutExpand,
|
|
.padding = CLAY_PADDING_ALL(16),
|
|
},
|
|
.INNER_CONTAINER(0),
|
|
}) {}
|
|
}
|
|
|
|
static inline
|
|
void InitiativeListContainer() {
|
|
CLAY(CLAY_ID("InitiativeListContainer"), {
|
|
.layout = {
|
|
.sizing = layoutExpand,
|
|
.padding = CLAY_PADDING_ALL(16),
|
|
},
|
|
.INNER_CONTAINER(0),
|
|
}) {}
|
|
}
|
|
|
|
Clay_RenderCommandArray RenderApplication() {
|
|
Clay_BeginLayout();
|
|
CLAY(CLAY_ID("OuterContainer"), WindowStyle()) {
|
|
DiceContainer();
|
|
CLAY(CLAY_ID("LowerSplitContainer"), {
|
|
.layout = {
|
|
.sizing = layoutExpand,
|
|
.childGap = containerGap
|
|
},
|
|
}) {
|
|
DiceLogContainer();
|
|
InitiativeListContainer();
|
|
}
|
|
}
|
|
return Clay_EndLayout();
|
|
}
|
|
|
|
void HandleEvent(SDL_Event event) {
|
|
}
|