-
Notifications
You must be signed in to change notification settings - Fork 355
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
[WIP] Add in-game level editor #2399
base: master
Are you sure you want to change the base?
Conversation
b263b1e
to
8db2244
Compare
Some notes about the current state.
Converting editor data back and forth to nested tables worked in a previous version, and should still work, as there are no changes done since in that area. Entry point for both is Load and save from/to the file sytstem can easily be implemented with Missing:
Other things:
Future optional enhancements:
|
*Fixes #level-editor-is-missing
Attempts to make the level editor more reachable for our users by integrating it in he game.
pos_size.lua
adds 2 classes for wrapping position x/y and size w/h as a single value.tree_access.lua
can read/write nested tables using paths expressed in strings,_S
works too.level_editor/data_storage.lua
adds classes for data of the level editor:LevelValue
represents a value in a level config file with its data,LevelValuesSection
class represents an editable list ofLevelValue
.LevelTableSection
class does the same, except for a matrix of values.LevelEditPage
organizes one or more of the above sections into a "screen".LevelTabPage
manages all edit pages by being able to select "tab"s for the page to be shown.UILevelEditor
the level editor main window class.I am in the process of adding more table sections.
Stuff notably missing:
LevelValue
s to/from a nested tree of tables, but that is never called currently. I am not sure where to add these.Stuff notably ignored: