Allow other scripts to add configs at runtime#6
Allow other scripts to add configs at runtime#6zapSNH wants to merge 1 commit intoUltraJohn:masterfrom
Conversation
|
Very interesting, I will take a proper look at it later this weekend when I have some time, and see if I can push out an update. Have you tested this already? So if I understand this correctly, the idea is to add the two static variables (additionalConfigNodes, additionalRecolorNodes), that allows other mods to add ConfigNodes to these, and then either reload the scene or call GetTextures to reset? There is a few small changes I want to make as well, but overall this seems pretty good. Thank you. |
|
Also, would it be better to just add this GUI to HUDReplacer by default, or do you see other applications where this might be worthwhile as external mods? |
Yes, you can take a look here for a GUI example.
Pretty much.
If you want you could adapt the code from the example for a more general version of the GUI. It'd be probably better for external mods to be able to add ConfigNodes at runtime just in case the mods' would detect a theme that would break a part of the mods' GUI. -- On second thought why not add also the UI Transformer and Adaptive navball to HUDReplacer? |
Allows other scripts to add HUDReplacer configs at runtime by:
additionalConfigNodesoradditionalRecolorNodes