BenjaminAmos / NUIIntelliJPlugin

An IntelliJ Plugin for Terasology's Nice UI Framework
Apache License 2.0
0 stars 0 forks source link

NUI Skin Auto-Completion #2

Open BenjaminAmos opened 2 years ago

BenjaminAmos commented 2 years ago

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 known UISkin 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.

BenjaminAmos commented 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.