Added radio buttons (wip image)

This commit is contained in:
NeeEoo
2024-04-16 03:37:23 +02:00
parent a7de29dd5f
commit 7fc83f340e
7 changed files with 132 additions and 4 deletions
@@ -47,6 +47,8 @@
<set name="curY" value="angleStepper.y + angleStepper.bHeight + YOFFSET" />
<checkbox name="antialiasingCheckbox" text="Antialiasing" value="sprite.antialiasing" x="20 + (200 + XOFFSET) * 0" y="curY" />
<radio for="memoryCheck" name="highMemoryRadio" text="High Memory Only" value="getEx('highMemory')" x="20 + (200 + XOFFSET) * 1" y="curY" />
<radio for="memoryCheck" name="lowMemoryRadio" text="Low Memory Only" value="getEx('lowMemory')" x="20 + (200 + XOFFSET) * 2" y="curY" />
<!-- TODO: Animation list -->
@@ -69,7 +71,10 @@
function onSave() {
sprite.name = nameTextBox.label.text;
sprite.extra.set(exID("imageFile"), spriteTextBox.label.text);
setEx("imageFile", spriteTextBox.label.text);
setEx("highMemory", highMemoryRadio.checked);
setEx("lowMemory", lowMemoryRadio.checked);
sprite.x = xStepper.value;
sprite.y = yStepper.value;
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB