Search found 193 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 20
by KeldorKatarn
25 May 2021, 13:51
Forum: General Discussion
Replies: 5
Views: 3050

Re: Equivalent of Application.Current.Dispatcher in Unity?

I wanted it in a static context, but I guess I can just do Object.FindObjectOfType to get the NoesisView and then store the dispatcher. FIndObject isn't exactly fast, but once to boot up the framework should be fine.
by KeldorKatarn
25 May 2021, 13:36
Forum: General Discussion
Replies: 2
Views: 1145

Re: Possible solution for code behind in c#9?

Also just saw another thing incoming in C#10 https://kenbonny.net/introducing-csharp-10 It will now be possible to create a single file with namespace imports that are used everywhere. For example, if there is a popular namespace that is used in virtually every file, say Microsoft.Extensions.Logging...
by KeldorKatarn
25 May 2021, 13:26
Forum: General Discussion
Replies: 3
Views: 3285

Re: Getting the View DPI

A root transform? I'm not sure how that works. The usecase I was thinking of was for example what WPF does in the Border class. When LayoutRounding is active, the border thickness is rounded to the nearest integer of device pixels. I need the DPI to make that calculation inside a custom border class...
by KeldorKatarn
25 May 2021, 13:23
Forum: General Discussion
Replies: 4
Views: 3489

Re: Visual.PointFromScreen from actual screen

I was thinking about this regarding the Unit-Health bar. If such a public API existed, positioning the health bars correctly should be trivial. I was imagining the Noesis UI being projected onto the inside of a helmet and the character taking the helmet off, and you can see that all the projections ...
by KeldorKatarn
25 May 2021, 13:18
Forum: General Discussion
Replies: 16
Views: 15869

Re: Caliburn.Noesis (Caliburn.Micro port)

I will try to sort and add them later today :)
by KeldorKatarn
25 May 2021, 13:17
Forum: General Discussion
Replies: 2
Views: 1145

Possible solution for code behind in c#9?

Could this be a solution for you guys? This should allow you to get those code behind things added.

https://devblogs.microsoft.com/dotnet/i ... enerators/
by KeldorKatarn
25 May 2021, 12:16
Forum: General Discussion
Replies: 15
Views: 13391

Re: Unit health bars with NoesisGUI

As a suggestion for this: Once you guys fix 2004 I could see this being done by a custom control deriving from Canvas defining a custom Container class. Like UnitOverlayHost and UnitOverlayItem. That last one could contain the logic to position the item correctly on the screen. The template itself c...
by KeldorKatarn
25 May 2021, 12:10
Forum: General Discussion
Replies: 16
Views: 15869

Re: Caliburn.Noesis (Caliburn.Micro port)

All the current feature branches show which APIs are missing and prevent those features from being merged. I'm deliberately trying to integrate the most useful and commonly used WPF (cool stuff) I can find, to show which APIs need to be added for Noesis to be fully useable by an experienced WPF deve...
by KeldorKatarn
25 May 2021, 11:00
Forum: General Discussion
Replies: 5
Views: 3050

Equivalent of Application.Current.Dispatcher in Unity?

Is there any way to get the UI Thread Dispatcher either globally or from a specific NoesisView (should not matter, it's the same thread after all?) from the Noesis API? I know I can call Dispatcher.CurrentDIspatcher in the UI thread but i'd like to avoid that because I don't want to have to store th...
by KeldorKatarn
25 May 2021, 08:47
Forum: General Discussion
Replies: 4
Views: 3489

Visual.PointFromScreen from actual screen

So a Visual has the method Visual.PointFromScreen . Now I'm assuming that the parameter for this in Noesis would be a point on whatever area the View is using. Meaning its own 'screen' not the actual physical one the game is rendering, considering Noesis could be on some texture somewhere in 3D spac...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 20