Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SimonN opened this issue Feb 21, 2021 · 3 comments
Open

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

SimonN opened this issue Feb 21, 2021 · 3 comments

Comments

@SimonN
Copy link
Owner

SimonN commented Feb 21, 2021

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
Copy link
Owner Author

SimonN commented Jun 29, 2021

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.

@geoo89
Copy link
Contributor

geoo89 commented Jun 17, 2023

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.

@SimonN
Copy link
Owner Author

SimonN commented Jun 17, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants