Description of the Feature:
Mockups:
none at the moment, might make one later
Why is this feature good?
Possible issues with this feature?
Make a new database tab, completely independent of the existing database tabs.
This new tab should be a list with four columns for data only: ID, Name, Type and Value
ID and name are for handling and identifying the object, similiar to any other part of the database - with ID an automatically set number and the name being a string.
The type would be a drop-down menu containing "Boolean", "Number", "String" and perhaps other data types depending on need
The value would be a regular input string, but checked against the type so that it would contain the correct data.
OPTIONAL: if this had two datavalues for each entry, it would be possible to enter full arrays (all entries the same name, first value as array-index and second value as element value
OPTIONAL: It might be possible that the engine reads the code for the plugin properties and copies the settings to here, with the name being automatically constructed from plugin name and property name. This would require a lot more complex code however and might cause other problems
To access that data from anywhere in the engine, additional functions and textcodes would need to be provided
In all cases the functions could either use the ID or the name of the object and return the value
for example in a textinput the text code \MD[27] would be replaced with the value of the 27th entry in the list
or a function metadata('menuname') would return the value of the entry that has the 'menuname' as its name
The idea of this is to provide an additional way of data input to the existing options of plugin properties and notetags, especially if the array-option is used to allow for that kind of data.
Mockups:
none at the moment, might make one later
Why is this feature good?
- allow for additional data input that can then be used by plugins or events as needed
- have all additional data in one place (especially if plugins use this instead of plugin properties
Possible issues with this feature?
- compatibility when a project does not yet have a file for this new option