SUI: SMODS/Simple UI framework#1356
Conversation
|
I'm curious to know as to why a lot of options for syntax are permitted by this system. I personally feel like (regarding coding conventions in general) this kind of permissiveness results in code that isn't the most quality (Wouldn't it also be inefficient, having to go through a lot of different checks?) so I'm curious and would love to hear about the design choices for this manner of syntax |
|
This syntax supposed to be short and idiot-proof. To add Yes, it is not best practice to give full freedom of how things can be done. Just as SMODS be god-class. |
|
Some questions I have:
|
…dren; fix post_processing be too late
Bad practice is really whatever we want it to be. With a feature that's meant to make UI more accessible, I don't think it's a huge concern. One thing I'm not sure about is |
This PR is WIP implementation for new advanced way for defining UI nodes, with additional quality-of-life features and extendable design which allows to create complex components.
Further explanation, examples, caveats etc. will be included in PR text later.
Summary
Quick example
Syntax
Element creation
Adding child nodes
Config definition
Features
Feature: hooking UIElement methods via node definition
Feature: auto-wrap Moveable into G.UIT.O
Feature: auto-wrap string/number argument into G.UIT.T
Feature: fix G.UIT.R/G.UIT.C child nodes mismatch
Feature: classes
Additional Info: