LixD icon indicating copy to clipboard operation
LixD copied to clipboard

Editor shall insert copied tile with no (16,16) offset

Open SimonN opened this issue 5 years ago • 3 comments

Lix 0.9.35

In the editor, select a tile, then press copy (either by mouse or hotkey).

Observed: The copied tile is inserted at an offset of 16 pixels, both in x- and in y-direction, from the original tile. Expected: The copied tile is inserted in place.

Very useful then: Some visual cue that we really inserted a new tile, e.g., the copied tile dashes into place for 0.2 seconds. This dashing should be aborted when we move or change the selection.

Lix editor discussion on LF

SimonN avatar Feb 21 '21 18:02 SimonN

Workaround, for whoever wants this earlier: Since Lix 0.9.36, Lix supports a hidden option (not in the options menu) that you can edit manually in your user/options.sdl text file:

  • editorCopiedTilesOffest 0 to insert the copied tile at the same position, i.e., at offset (0, 0). Warning: Copying a tile won't have any visual feedback.
  • editorCopiedTilesOffest 16 to restore the default of inserting the copied tile at an offset of (16, 16).

A long-term solution should have good visual feedback for inserting with (0, 0) offset.

Edit 2023-06-18: The spelling has a typo, and for the hidden feature you must adhere to that typo. The last 3 letters in editorCopiedTilesOffest are est, not the correctly-spelled set.

SimonN avatar Jun 29 '21 20:06 SimonN

Is this working as of 0.10.11? When I add this line and open Lix, nothing changes, and upon closing lix, the line gets removed from user/options.sdl.

This may point at another issue: Options which are unknown to the game are removed from user/options.sdl. For example, I noticed that my undo/redo hotkeys got removed when I briefly played in 0.9 and then went back to 0.10.

geoo89 avatar Jun 17 '23 22:06 geoo89

Just checked. The hidden feature exists, but I made a typo. In user/options.sdl, search for editorCopiedTilesOffest 16 ending in the misspelled est 16, not set 16. Set the 16 to 0 and save.

SimonN avatar Jun 17 '23 22:06 SimonN