[+][SUG][ED] Show file name | Next/Previous Button

Started by heart66, June 14, 2026, 08:36:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

heart66

I am very pleased with the editor. Big improvement.

Just a tiny request, can you:
1- Make the file name.nxkv show on the screen.
2- next file --- Edit button
3- previous file --- edit button.

Thanks a lot. You work is mostly appreciated.

WillLem

Thanks for your request and your kind comments.

Just to confirm I've understood the screenshot:

1) You wish for the filename to be displayed somewhere (status bar / menu bar / window caption would all be OK, I assume?)

2) You wish for there to be buttons to navigate between files, cycling through them and opening them in the Editor one by one as the buttons are clicked. (An "Edit" button would be unnecessary, since the editor is always in "Edit" mode. Perhaps you mean something else here...?)

But yes, a way to quickly move to the next/previous level in the folder for editing would be a great addition. I'll add this one to the list.

WillLem

OK, got the filename displayed and added working Previous/Next buttons.

The buttons wrap around when the first and last file in the folder are reached. Note that if you want the buttons to actually mean 'Previous' and 'Next' as per their intended positions in the level pack, the level files should be named in such a way that their order is correct within the folder itself (which is good practice anyway IMHO).

One question is where to put the buttons. The position shown in the screenshot in the OP is already taken by the status bar. I suggest that we put them at the top right, just underneath the _ [] X buttons. This keeps them always accessible without interfering with any other controls:



If desired, we can also label them with 'Previous' and 'Next' rather than << arrows >>. I've tested these for a little while and they're so useful, it's surprising that this hasn't been suggested before.

Another question is: do we want to display the full file path, or just the name of the level file?

heart66

Excellent job. Simplicity is best way to perform any task. Just the file name will do.
Do whatever convenient for you.
I am looking forward to use the editor with the modified version ASAP.
Thanks again.

Simon

Quote from: WillLem on Today at 03:24:30 AM'Previous' and 'Next' rather than << arrows >>

Neither says of what it will be the previous/next. You can print the filename next to these. Or you can say "Level <<" or "Previous Level" or similar.

Quote from: WillLem on Today at 03:24:30 AMactually mean 'Previous' and 'Next' as per their intended positions in the level pack, the level files should be named in such a way that their order is correct within the folder itself (which is good practice anyway IMHO).

With this implementation, there are now three meanings of "next level" in the NL ecosystem:

  • Next filename by lexicographical order, presumably wrapping back to first in same directory
  • Next level by level-ordering file, wrapping back to first in same directory
  • Next level by level-ordering file, proceeding to first level in the next directory

The discrepancy between #2 and #3 appears in the NL game application: Forward/back arrows on preview screen do #2, and the next-level button on the after-play results screen does #3. It's not in the editor. I should file that as a separate issue. This discrepancy has annoyed me a few times and I had to open the level selector that shows the entire level tree.

The concern for the editor: Do you really want a third way #1? Which of #2 and #3 makes more sense?

-- Simon