Just messing with alignment of UI a bit.
This commit is contained in:
@ -21,7 +21,7 @@ void pokerPlayerUiInit(pokerplayerui_t *ui) {
|
|||||||
|
|
||||||
// Grid
|
// Grid
|
||||||
gridInit(&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
|
// Player UI Image
|
||||||
child = gridAddChild(&ui->grid);
|
child = gridAddChild(&ui->grid);
|
||||||
@ -97,7 +97,7 @@ void pokerPlayerUiRender(
|
|||||||
align = alignmentGet(
|
align = alignmentGet(
|
||||||
ALIGN_POS_END | ALIGN_SIZE_ORIGINAL, ALIGN_POS_START | ALIGN_SIZE_ORIGINAL,
|
ALIGN_POS_END | ALIGN_SIZE_ORIGINAL, ALIGN_POS_START | ALIGN_SIZE_ORIGINAL,
|
||||||
engine->render.width, engine->render.height,
|
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(
|
gridSetSize(
|
||||||
&ui->grid, engine->render.width, engine->render.height,
|
&ui->grid, engine->render.width, engine->render.height,
|
||||||
|
Reference in New Issue
Block a user