mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-13 18:38:11 +02:00
BIG heap of bugfixes. Deselecting tools, profile colour picker, player
name colour contrast, mutation pricing (not really a bug, but still an issue). Signed-off-by: Sarahtonin <[email protected]>
This commit is contained in:
1 parent
a2e95d6712
commit
4d92455bf3
6 files changed
+174
-55
No files matched your search
@@ -59,8 +59,16 @@ function BindGardenTools() {
|
||||
ShovelButton.addEventListener(
|
||||
"click",
|
||||
() => {
|
||||
SelectedGardenTool =
|
||||
"Shovel";
|
||||
if (
|
||||
SelectedGardenTool ===
|
||||
"Shovel"
|
||||
) {
|
||||
SelectedGardenTool =
|
||||
null;
|
||||
} else {
|
||||
SelectedGardenTool =
|
||||
"Shovel";
|
||||
}
|
||||
|
||||
RenderSeeds();
|
||||
RenderTools();
|
||||
@@ -142,6 +150,15 @@ function EnsureSelectedSeed() {
|
||||
if (SeedIds.length > 0) {
|
||||
SelectedSeedId =
|
||||
SeedIds[0];
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
SelectedGardenTool ===
|
||||
"Seed"
|
||||
) {
|
||||
SelectedGardenTool = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user