WohlSoft/Moondust-Project

[Editor] Expose Exit Type dropdown in the config pack

Emral opened this issue · 6 comments

Emral commented

I would like to add new exit types to SMBX2, but I can't find where this dropdown's contents are defined. I'm under the impression it is currently not editable via the config pack. If this impression is wrong, could you point me to what I need to change in the config pack? If it is correct, could you add a way to define the fields of the dropdown from the config pack? Thanks!

image

Currently, there is no functionality to add more exit types to this list. The content of these combo boxes is hard coded. I would allow modifying of this list later.

What's the ETA on this? For SMBX2, this feature would be on the high-priority list by the start of 2024.

I'll add this into the tasks list, just in a case to not forget to make this.

P.S. Please:

  • Enable email notifications for issue replies where you subscribed (especially these you made).
  • Check your mailbox more often.
  • Or make something also, just to be able to get all recent news from here.

Added just now!

So, until I'll fill the wiki page, there is a short specification for the wld_exit_types.ini file (place at the root of config pack directory):

[main]
total = N  ; The number of exit types including existing

[exit-N]  ; An entry of the exit code. The N is an exit code, must be 1-based here.
built-in = true/false  ; Is this a built-in entry? Means, keep built-in entry without any modifications. It gets automatically set to TRUE when you missed up the section order.
name = "Chicken"  ; the English name of the entry. Don't need to name it with "N - Kokoko", the first part will be generated automatically.
name-lang = "Курица"  ; The translated name into the language by code (for example, "name-ru", "name-pl", "name-zh-cn", "name-pt-br", etc.)
disabled = false  ; if set to TRUE, the exit code will be shown, but will be disabled.

The example file that adds 9th exit code:

[main]
total = 9

[exit-9]
name = "WTF exit"
name-ru = "Выход \"Что за... ?\""
name-pl = "Wychod \"Co za... ?\""

@Emral , ping?

Closing as completed without test because of no reply for a long time.