Open BenjaminAmos opened 2 years ago
This has been partially done in https://github.com/BenjaminAmos/NUIIntelliJPlugin/commit/d2493f37fd6300be945cc127550a1423064c81a0. Widget types are linked by reference but UI styles aren't yet validated against a schema.
It's not likely possible to auto-complete widget modes automatically, since they are not declared in advance.
When editing the JSON in NUI Skin files (
.skin
files), the editor should suggest widget types and their known modes. The styles should be validated against a knownUISkin
schema. The widget types should be linked to their corresponding classes via the Ctrl+Mouse Hover action. The widget modes should be auto-completed for at least the built-in widgets, with the option for external types later-on.