feat: removed unneeded container and moved roll total between clear and roll button
This commit is contained in:
parent
f214f4728b
commit
b63449319a
|
|
@ -148,16 +148,12 @@ void ActiveDiceContainer() {
|
|||
.padding = { 0, 0, 0, 10 },
|
||||
},
|
||||
}) {
|
||||
CLAY_AUTO_ID({
|
||||
.layout.padding = { 10, 10, 10, 10 }
|
||||
}) {
|
||||
CLAY_TEXT(Dice_GetLastResultTotal()->clay_string, CLAY_TEXT_CONFIG({
|
||||
.BODY(),
|
||||
.textColor = TextColors(0),
|
||||
}));
|
||||
}
|
||||
TextButton(CLAY_STRING("Roll"), buttonBackground, &HandleRollSetButtonInteraction, 0);
|
||||
TextButton(CLAY_STRING("Clear"), buttonBackground, &HandleClearSetButtonInteraction, 0);
|
||||
TextButton(CLAY_STRING("Roll"), proceedButton, &HandleRollSetButtonInteraction, 0);
|
||||
CLAY_TEXT(Dice_GetLastResultTotal()->clay_string, CLAY_TEXT_CONFIG({
|
||||
.H(3),
|
||||
.textColor = TextColors(0),
|
||||
}));
|
||||
TextButton(CLAY_STRING("Clear"), warningButton, &HandleClearSetButtonInteraction, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue