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 },
|
.padding = { 0, 0, 0, 10 },
|
||||||
},
|
},
|
||||||
}) {
|
}) {
|
||||||
CLAY_AUTO_ID({
|
TextButton(CLAY_STRING("Roll"), proceedButton, &HandleRollSetButtonInteraction, 0);
|
||||||
.layout.padding = { 10, 10, 10, 10 }
|
|
||||||
}) {
|
|
||||||
CLAY_TEXT(Dice_GetLastResultTotal()->clay_string, CLAY_TEXT_CONFIG({
|
CLAY_TEXT(Dice_GetLastResultTotal()->clay_string, CLAY_TEXT_CONFIG({
|
||||||
.BODY(),
|
.H(3),
|
||||||
.textColor = TextColors(0),
|
.textColor = TextColors(0),
|
||||||
}));
|
}));
|
||||||
}
|
TextButton(CLAY_STRING("Clear"), warningButton, &HandleClearSetButtonInteraction, 0);
|
||||||
TextButton(CLAY_STRING("Roll"), buttonBackground, &HandleRollSetButtonInteraction, 0);
|
|
||||||
TextButton(CLAY_STRING("Clear"), buttonBackground, &HandleClearSetButtonInteraction, 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue