Added rotation to plots.. Only does stuff for functional plants.

This commit is contained in:
sarah committed 2026-09-05 16:32:41 +02:00
1 parent 75e4f31ccd
commit 132aba0b9a
14 files changed
+1244 -197

No files matched your search

+70 -9
View File
@@ -246,6 +246,17 @@ $PageSection = "Admin";
</span>
</label>
<label class="AdminEditorCheckField">
<input
id="AdminPlantDirectionalSprites"
name="DirectionalSprites"
type="checkbox"
>
<span>
Directional sprites
</span>
</label>
<label class="AdminEditorField AdminEditorWideField">
<span>Effects JSON</span>
<textarea
@@ -323,25 +334,75 @@ $PageSection = "Admin";
Optional. You can save a plant with no sprites and add them later.
Upload PNG files named by stage, such as
<code>1.png</code>, <code>2.png</code>, <code>3.png</code>.
Directional plants use one stage set for each direction.
</p>
<div class="AdminPlantImageUpload">
<div
id="AdminPlantDefaultImageUpload"
class="AdminPlantImageUpload"
>
<input
id="AdminPlantImageFiles"
type="file"
accept="image/png,.png"
multiple
>
<button
id="AdminPlantImageUploadButton"
class="ActionButton AdminInlineButton"
type="button"
>
Upload selected sprites
</button>
</div>
<div
id="AdminPlantDirectionalImageUpload"
class="AdminPlantDirectionalImageUpload"
hidden
>
<label class="AdminEditorField">
<span>North sprites</span>
<input
id="AdminPlantImageFilesNorth"
type="file"
accept="image/png,.png"
multiple
>
</label>
<label class="AdminEditorField">
<span>East sprites</span>
<input
id="AdminPlantImageFilesEast"
type="file"
accept="image/png,.png"
multiple
>
</label>
<label class="AdminEditorField">
<span>South sprites</span>
<input
id="AdminPlantImageFilesSouth"
type="file"
accept="image/png,.png"
multiple
>
</label>
<label class="AdminEditorField">
<span>West sprites</span>
<input
id="AdminPlantImageFilesWest"
type="file"
accept="image/png,.png"
multiple
>
</label>
</div>
<button
id="AdminPlantImageUploadButton"
class="ActionButton AdminInlineButton"
type="button"
>
Upload selected sprites
</button>
<p
id="AdminPlantImageNote"
class="AdminPlantImageNote"
+24
View File
@@ -159,6 +159,30 @@ $PageTitle = "Profile";
to use these settings.
</p>
<h3>Plot rotation</h3>
<p>
Choose whether plot directions are shown
beside plot timers.
</p>
<div class="ProfileButtonRow">
<button
id="TogglePlotRotationButton"
type="button"
>
Plot rotation: Locked
</button>
</div>
<p
id="PlotRotationDisplayMessage"
class="ProfileMessage"
>
Unlock Plot rotation in the Shop
to use this setting.
</p>
<h3>Garden overview</h3>
<p>