Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stridelonia Component #2

Open
TheKeyblader opened this issue Nov 19, 2020 · 3 comments
Open

Stridelonia Component #2

TheKeyblader opened this issue Nov 19, 2020 · 3 comments
Labels
Design Discussion Ongoing discussion about design without consensus

Comments

@TheKeyblader
Copy link
Owner

TheKeyblader commented Nov 19, 2020

This issue is to discuss how to define an additional window in stride.
Actually, we can only define the main view in Avalonia App that will be always displayed in Stride
I thought of several possibilities

Stride side

EntityComponent

An EntityComponent with parameters:

  • bool Is2D
  • Vector2 Size? (can be controlled from Avalonia side)
  • Type WindowToRender (a dropdown field containing window classes with empty constructor)

API

Creating a Window object using Avalonia Api can be enough in a custom ScriptComponent but we will have no preview in
game studio

Avalonia side

I think Avalonia API will be enough
But we can add an extension method to help set 3D position and rotation.

feel free to any suggestion

@TheKeyblader TheKeyblader added the Design Discussion Ongoing discussion about design without consensus label Nov 19, 2020
@najak3d
Copy link

najak3d commented Jan 25, 2022

Nice work! If you want to see how this integration was done using Urho.NET, here is the GIT repo:

https://github.com/Urho-Net/

In his Samples, he has multiple-windows, all draggable, AND the ability to Render Urho Game window inside of it all (as though Avalonia is hosting Urho). It's very much like what you've done here, but more advanced. Also, I have made some fixes to it myself.

We are looking for good excuse to switch to Stride3D, so might join you here, and help finish this Stridalonia plugin.

In the end, I'm aiming for the situation where we have Avalonia as the Modding Toolset, with a Game rendered in center big panel (similar to Stride editor) -- and then inside of the Game Window, have more Avalonia Windows.

@TheKeyblader
Copy link
Owner Author

Thanks a lot for your interest.

My library or Bridge is aiming to do Stride hosting Avalonia
because Today to develop a game you need an editor.

So I think it will be easier to develop a UI if can see it inside the game editor
Today this objective is not possible because of some bug of the editor (basically Avalonia can't find native libs)

To do the invert (Avalonia hosting Stride). Stride needs to have a good workflow for code only projects.
That was not the case when I started this project, but I know @xen2 has done some development.

I will more explain the implementation and decision of Stridelonia on #6

@najak3d
Copy link

najak3d commented Jan 27, 2022

Thanks for your response here. I'll be watching for your next response on #6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design Discussion Ongoing discussion about design without consensus
Projects
None yet
Development

No branches or pull requests

2 participants