Just messing with alignment of UI a bit.

This commit is contained in:
2021-09-12 22:56:07 -07:00
parent e827beff06
commit a11b0ca2f1

View File

@ -21,7 +21,7 @@ void pokerPlayerUiInit(pokerplayerui_t *ui) {
// Grid
gridInit(&ui->grid);
gridAddBreakpoint(&ui->grid, -1, 2, 2, 0, 0);
gridAddBreakpoint(&ui->grid, -1, 2, 2, POKER_PLAYER_UI_PADDING, 0);
// Player UI Image
child = gridAddChild(&ui->grid);
@ -97,7 +97,7 @@ void pokerPlayerUiRender(
align = alignmentGet(
ALIGN_POS_END | ALIGN_SIZE_ORIGINAL, ALIGN_POS_START | ALIGN_SIZE_ORIGINAL,
engine->render.width, engine->render.height,
300, POKER_PLAYER_UI_IMAGE_SIZE, -1, -1
POKER_PLAYER_UI_IMAGE_SIZE*2, POKER_PLAYER_UI_IMAGE_SIZE, -1, -1
);
gridSetSize(
&ui->grid, engine->render.width, engine->render.height,