Re: NoesisGUI Unreal Engine 4 Plugin
Posted: 13 Oct 2014, 04:32
So ! I have to agree. I am a bit lazy so.. Here is today's commit log.
It tells exactly what I did. It goes a bit beyond the classic "this works now !" but well. You might like it.
XAMLComponent:
And yes. There is a basic "auto-build on runtime" function at the moment.
It's still a bit rude as it builds the resources each time a component is spawned
Also, it reads through the xaml to automatically detect if there are any images or any fonts that do need to be build with the xaml!
I am not sure if those two are the only two types of external resources that needs to be built via the NoesisGUI BuildTool. I will check the documentation later, the basic system is here. that's what's important here.
Of course, it's a first pass and I think that I will somehow be able to improve the system later.
Now that there is a XAML loaded in, I will start working on the render target and the material support that will come with it.
First a simple texture and basic material will do it. But I plan on supporting custom materials (that will require of course a few "parametric" options.) to let you free your creativity and make the UIs look more glossy or whatever !
That's still a lot of work. But I think that it is going at a good pace. I might see and release a very first version when the system gets closed up a little more. :3
Erio, Off. o7
EDIT: Added support to the "auto build system" for the ResourceDictionary. (example in ImageAtlas.xaml)
It tells exactly what I did. It goes a bit beyond the classic "this works now !" but well. You might like it.
XAMLComponent:
- Added float parameter to renderXAML function for XAML render update purposes
Removed useless UXAMComponent:: in front of the overriden event in the .h... I don't even know what those were doing here in the first place.. xD
Added FString to store the following datas:- Component name
Parent actor name
xamlFullPath <- absolute path to the xaml file
xamlFolderPath <- relative path to the folder of the xaml
xamlFolderFullPath <- absolute path to the folder of the xaml
buildtoolFullPath <- absolute path to NoesisGUI build tool
providerPath <- absolute path to the folder that is defined as the "root folder" of NoesisGUI ResourcesSystem
xamlContent <- used for dynamic build to store the content of the xaml and read it
xamlFontContent <- used to store the different font that are used within the file for building purposes
xamlImageContent <- used to store the different images that are used within the xaml for building purposes
- Automatically builds the assets before Noesis tries to load them. It's an "auto-build" system.
Minors changes to log systems
Added base code in the renderXAML function to update the xaml once it's loaded
createUI function FINALLY can load a XAML and create a renderer for it !
Changed default AA to PPAA
Changes in OnRegister()- Pre-building and preparing most of the FStrings to be able not to have to do it later
- Component name
- Added GetGameDirAbsolute() function, it return an absolute path to the game folder.
- Added support for GetGameDirAbsolute to be used by UXAMLComponent class.
And yes. There is a basic "auto-build on runtime" function at the moment.
It's still a bit rude as it builds the resources each time a component is spawned
Also, it reads through the xaml to automatically detect if there are any images or any fonts that do need to be build with the xaml!
I am not sure if those two are the only two types of external resources that needs to be built via the NoesisGUI BuildTool. I will check the documentation later, the basic system is here. that's what's important here.
Of course, it's a first pass and I think that I will somehow be able to improve the system later.
Now that there is a XAML loaded in, I will start working on the render target and the material support that will come with it.
First a simple texture and basic material will do it. But I plan on supporting custom materials (that will require of course a few "parametric" options.) to let you free your creativity and make the UIs look more glossy or whatever !
That's still a lot of work. But I think that it is going at a good pace. I might see and release a very first version when the system gets closed up a little more. :3
Erio, Off. o7
EDIT: Added support to the "auto build system" for the ResourceDictionary. (example in ImageAtlas.xaml)