~starkingdoms/starkingdoms

261863ec6fd4377ddc26d1e24b7c2fe70c328015 — core 1 year, 11 months ago 160adea
ship editor work
M starkingdoms-client/src/components/ui/Checkbox.svelte => starkingdoms-client/src/components/ui/Checkbox.svelte +2 -2
@@ 21,7 21,7 @@
  {id}
  class="svcmp-Checkbox {clazz}"
  {disabled}
  {checked}
  bind:checked
  on:click
  on:focus
  {style}


@@ 38,7 38,7 @@
  {id}                            This de-sugars to id="{id}", inlining
                                  the value of the `id' variable for
                                  {id}.
  class="svcmp-Checkbox {clazz}"  One static class, and other classes 
  class="svcmp-Checkbox {clazz}"  One static class, and other classes
                                  passed are added also.
  {disabled}                      {disabled} is inlined if `disabled` is
                                  true. Otherwise, it is skipped.

M starkingdoms-client/src/pages/Play.svelte => starkingdoms-client/src/pages/Play.svelte +2 -3
@@ 18,7 18,7 @@
  let x_pos;
  let y_pos;

  let antialiasing: Checkbox;
  let antialiasing: boolean = false;

  let chatbox: Chatbox;



@@ 127,8 127,7 @@
    <label for="antialiasing">Antialiasing</label>
    <Checkbox
      title="Smooth out jagged edges. Minor performance hit."
      checked={false}
      bind:this={antialiasing}
      bind:checked={antialiasing}
      on:click={toggleAntialiasing} />
  </Popup>
</div>

M starkingdoms-client/src/pages/ShipEditor.svelte => starkingdoms-client/src/pages/ShipEditor.svelte +3 -0
@@ 302,6 302,9 @@
      // removal
      if (grid.get(grid_x)?.has(grid_y)) {
        let type = grid.get(grid_x)!.get(grid_y)!;
        if (type === PartType.Hearty) {
          return;
        }
        grid.get(grid_x)?.delete(grid_y);
        part_counts.set(type, {
          used: part_counts.get(type)!.used - 1,