Automatically generate fgui code script-TS

I'm lazy, I don't want a debug, a debug to try the plug-in function of fgui, but writing the UI is too annoying, let's build a wheel by myself, it may not be so powerful, at least it is easy to change when I change it. It can be used.
The preset IItem interface is only used to handle preset refresh and close processing
export interface IItem { onSetInfo(info?): void; onHideInfo(): void; }


The inheritance of YK under the window template, UIWind is the extension type of fgui.window, just change it to your own UI framework

Load all the pkg packages of fgui, and then look for the corresponding xml file, first implement the window file, and then implement the general extension type


The generated files will be saved in the script/asset/xxx path in the script
insert image description here

Quark network disk, download address

Guess you like

Origin blog.csdn.net/weixin_42303855/article/details/130258476