remove radial animation, fix back button (#1427)

## Description:

Removed the animation from the radial menu, it now pops up instantly
Also fixed bug where back button was grayed out

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
This commit is contained in:
evanpelle
2025-07-14 08:57:38 -07:00
committed by GitHub
parent 79505c41c8
commit 1e73293d4f
+9 -2
View File
@@ -237,10 +237,12 @@ export class RadialMenu implements Layer {
.append("g")
.attr("class", `menu-level-${level}`);
// Set initial animation styles
// Set initial animation styles only for submenus (level > 0)
if (level === 0) {
menuGroup.style("opacity", 0.5).style("transform", "scale(0.2)");
// Main menu appears immediately without animation
menuGroup.style("opacity", 1).style("transform", "scale(1)");
} else {
// Submenus get the expansion animation
menuGroup.style("opacity", 0).style("transform", "scale(0.5)");
}
@@ -857,6 +859,11 @@ export class RadialMenu implements Layer {
}
private isCenterButtonEnabled(): boolean {
// Back button should always be enabled when in submenu levels
if (this.currentLevel > 0) {
return true;
}
if (this.params && this.centerButtonElement) {
return !this.centerButtonElement.disabled(this.params);
}