theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Fix Character Name Editing - [merged] #744

Closed benloh closed 1 year ago

benloh commented 2 years ago

Merges dev-bl/fix-blank-char-name -> dev-next

Problem

When editing a character name in the Map SETUP, blank character names would result in characters disappearing from the CHARACTERS list. There were two issues here:

  1. Selecting the name text and hitting "DELETE" or "BACKSPACE" would immediately save the name and close the editor, so you could not change the name anymore.
  2. The character now has a blank name but is a valid instance, however the InstanceEditor was treating a blank name as an invalid instance and simply not displaying the instance. So once a character has a blank name you could no longer select it to edit it.

Solution

A few fixes:

NOTE because the list of characters is automatically ordered, when you change the name, your editor will shift in position. Unfortunately it's not easy to fix this without changing the way the whole panel is rendering.

benloh commented 2 years ago

requested review from @jdanish

benloh commented 2 years ago

In GitLab by @jdanish on Oct 26, 2022, 13:09

Looks good! Thanks!

benloh commented 2 years ago

mentioned in commit 25b9d74d0bcc2507da40794f11d0b724844f1f77