4 changed files with 97 additions and 7 deletions
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
namespace EGFramework |
||||
{ |
||||
public static class EGSVG16PX |
||||
{ |
||||
public const string Circle = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"24\" cy=\"24\" r=\"20\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"3\"/></svg>"; |
||||
public const string Rect = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"3\"/></svg>"; |
||||
public const string Heart = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M15 8C8.92487 8 4 12.9249 4 19C4 30 17 40 24 42.3262C31 40 44 30 44 19C44 12.9249 39.0751 8 33 8C29.2797 8 25.9907 9.8469 24 12.6738C22.0093 9.8469 18.7203 8 15 8Z\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"miter\"/></svg>"; |
||||
public const string Star = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M23.9986 5L17.8856 17.4776L4 19.4911L14.0589 29.3251L11.6544 43L23.9986 36.4192L36.3454 43L33.9586 29.3251L44 19.4911L30.1913 17.4776L23.9986 5Z\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"3\" stroke-linejoin=\"miter\"/></svg>"; |
||||
|
||||
} |
||||
} |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic; |
||||
using Godot; |
||||
|
||||
namespace EGFramework.UI |
||||
{ |
||||
public partial class EGodotMenu : Control, IEGFramework |
||||
{ |
||||
public IOCContainer PageContainer { set; get; } |
||||
|
||||
public void RegisterPage<T>(T page) where T : Control |
||||
{ |
||||
PageContainer.Register(page); |
||||
} |
||||
|
||||
public void OpenPage<T>(T page) where T : Control |
||||
{ |
||||
page.Visible = true; |
||||
|
||||
} |
||||
} |
||||
|
||||
} |
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
using System.Collections.Generic; |
||||
using Godot; |
||||
|
||||
namespace EGFramework.UI |
||||
{ |
||||
public interface IEGodotTree |
||||
{ |
||||
void RenderTree(); |
||||
} |
||||
public partial class EGodotTree : Tree, IEGFramework,IEGodotTree |
||||
{ |
||||
public void RenderTree() |
||||
{ |
||||
|
||||
} |
||||
} |
||||
|
||||
public struct EGodotTreeItem |
||||
{ |
||||
public string Name { set; get; } |
||||
/// <summary> |
||||
/// SVG Code. |
||||
/// </summary> |
||||
/// <value></value> |
||||
public string IconCode { set; get; } |
||||
|
||||
public Stack<EGodotTreeItem> Parents { set; get; } |
||||
public List<EGodotTreeItem> Childs { set; get; } |
||||
|
||||
public void AddChild() |
||||
{ |
||||
|
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue