adventuregamestudio / ags

AGS editor and engine source code
Other
702 stars 160 forks source link

Editor: expand sprite export options (tokens) #2120

Open ivan-mogilko opened 1 year ago

ivan-mogilko commented 1 year ago
  1. One important option missing in "export sprites" function is exporting sprites into subfolders based on sprite manager's folders. This was mentioned by several users already.

  2. Another thing that I found is that you can generate exported file names using "SourceFilename" field, but it always includes full path (!), and extension too (!). This may result in unexpectedly deep subdirs created on export, and duplicated extension. Firstly, I think there should be an option to only use filename without parent path. Alternatively, there should be an option to only include full path if it's relative. If somebody can figure out a convenient way to configure this, there may also be an option to include only last N subdirs, that would keep a directory structure, but not full absolute paths, for instance. Secondly, the extension should be always omitted, in my opinion.

  3. In regards to usability, this may be not obvious to users that the list of "tokens" may be found in a context menu. They keep asking where may they find this list. I suppose there may be either a hint label, a floating tooltip, or some kind of a button that displays this list too.

  4. Besides this, marking the most useful tokens would be a good thing imo. This may be done either by formatting their looks (like, making them bold), or moving them up the list and separating with a separator from the rest of the list. I think following tokens may be picked out as most useful: Number, SourceFilename and / or "Filename only" (see proposal above), Subfolder (if it's implemented).

ericoporto commented 1 year ago

For sprite export, I suggest figuring out a sensible default and make it simply how it works if you just export doing nothing. If options are desired, I suggest hiding them under an advanced button/checkbox that shows all the options.

This is because I have had a certain difficult figuring out how to use this pane everytime I access it.

ivan-mogilko commented 1 year ago

For sprite export, I suggest figuring out a sensible default and make it simply how it works if you just export doing nothing. If options are desired, I suggest hiding them under an advanced button/checkbox that shows all the options.

This is because I have had a certain difficult figuring out how to use this pane everytime I access it.

Hmm, maybe this proposal would be best to move to a separate ticket? I am not completely certain what would that involve, but it sounds either as adding a separate menu command that runs default export settings, or redesigning export dialog.

My proposals in this ticket are mostly about adding more tokens to use for generating exported sprite name and dir.