GPSProlapse
Topic Author
Posts: 2
Joined: 28 Jun 2023, 15:58

Is there some way to pass from Unreal C++ a value that would be interpreted as DateTime on xaml side?

07 Jul 2023, 04:19

Maybe I am blind, but I don't see any type that is like C# DateTime in Noesis API files.
I guess, I could make some weird TicksToDateTimeConverter class, but that's hacky. Is it a common way to do this?
 
User avatar
hcpizzi
Site Admin
Posts: 339
Joined: 09 Feb 2012, 12:40

Re: Is there some way to pass from Unreal C++ a value that would be interpreted as DateTime on xaml side?

07 Jul 2023, 10:11

Hi,

No, there's no type right now that maps to a DateTime, but I can map Unreal's FDateTime to Noesis::DateTime for Bindings.

I've created a ticket to track this issue: https://www.noesisengine.com/bugs/view.php?id=2646
 
GPSProlapse
Topic Author
Posts: 2
Joined: 28 Jun 2023, 15:58

Re: Is there some way to pass from Unreal C++ a value that would be interpreted as DateTime on xaml side?

07 Jul 2023, 12:51

That's very cool, thank you!

For the time being, is Noesis::DateTime defined somewhere publicly? I can't find it anywhere in the source files from "Unreal 5.1 Plugin" download. I do see related stuff in binaries though.
PS NoesisGUI-UE5.1-3.2.1-Indie> Get-ChildItem -Recurse -Filter "*.h" | Select-String DateTime
Plugins\NoesisGUI\Source\Noesis\NoesisSDK\Include\NsGui\IView.h:76:    float updateTime;
Plugins\NoesisGUI\Source\Noesis\NoesisSDK\Src\Packages\App\LangServer\Src\Document.h:24:    double lastUpdateTime;
PS NoesisGUI-UE5.1-3.2.1-Indie> Get-ChildItem -Recurse -Filter "*.cpp" | Select-String DateTime
Plugins\NoesisGUI\Source\Noesis\NoesisSDK\Src\Packages\App\LangServer\Src\MessageReader.cpp:46:        document.lastUpdateTime = currentTime;
Plugins\NoesisGUI\Source\Noesis\NoesisSDK\Src\Packages\App\LangServer\Src\MessageReader.cpp:67:        document.lastUpdateTime = currentTime;
 
User avatar
sfernandez
Site Admin
Posts: 3109
Joined: 22 Dec 2011, 19:20

Re: Is there some way to pass from Unreal C++ a value that would be interpreted as DateTime on xaml side?

10 Jul 2023, 12:06

Sorry, there is no public DateTime type in Noesis yet.

We will expose that type and include the corresponding date-time formats for data binding.

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests