Just messing with alignment of UI a bit.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user