Adding SzGui project

This commit is contained in:
2026-02-06 23:22:48 -06:00
parent 05d3decbd8
commit e6749c51c4
9 changed files with 183 additions and 4 deletions

6
SzGui/Program.cs Normal file
View File

@@ -0,0 +1,6 @@
// See https://aka.ms/new-console-template for more information
using SzGui;
var app = new SzApp();
app.Init();

46
SzGui/SzApp.cs Normal file
View File

@@ -0,0 +1,46 @@
using System.Numerics;
using ImGuiNET;
using Raylib_cs;
using rlImGui_cs;
namespace SzGui;
public class SzApp
{
public void Init()
{
Raylib.SetConfigFlags(ConfigFlags.Msaa4xHint | ConfigFlags.VSyncHint | ConfigFlags.ResizableWindow);
Raylib.InitWindow(1280, 800, "SessionZero");
rlImGui.Setup(true, true);
ImGui.GetIO().ConfigWindowsMoveFromTitleBarOnly = true;
while (!Raylib.WindowShouldClose())
{
Raylib.BeginDrawing();
Raylib.ClearBackground(new Color(0, 20, 50));
rlImGui.Begin();
ImGui.DockSpaceOverViewport(0);
// ImGui.ShowDemoWindow();
ImGui.ShowStyleEditor();
DrawImGui();
rlImGui.End();
Raylib.EndDrawing();
}
rlImGui.Shutdown();
Raylib.CloseWindow();
}
private void DrawImGui()
{
if(ImGui.Begin("SessionZero"))
{
ImGui.TextUnformatted("Test: " + IconFonts.FontAwesome6.House);
}
ImGui.End();
}
}

20
SzGui/SzGui.csproj Normal file
View File

@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ImGui.NET" Version="1.91.6.1" />
<PackageReference Include="Raylib-cs" Version="7.0.2" />
<PackageReference Include="rlImgui-cs" Version="3.2.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SzCore\SzCore.csproj" />
</ItemGroup>
</Project>

79
SzGui/imgui.ini Normal file
View File

@@ -0,0 +1,79 @@
[Window][Debug##Default]
Pos=1006,402
Size=762,814
Collapsed=0
[Window][SessionZero]
Pos=0,0
Size=3792,2067
Collapsed=0
DockId=0x08BD597D,0
[Window][Dear ImGui Demo]
Size=1894,2067
Collapsed=0
DockId=0x08BD597D,0
[Window][Dear ImGui Style Editor]
Pos=96,60
Size=692,1365
Collapsed=0
[Window][Example: Assets Browser]
Pos=60,60
Size=800,480
Collapsed=0
[Window][Dear ImGui Debug Log]
Pos=60,60
Size=343,428
Collapsed=0
[Window][About Dear ImGui]
Pos=1113,633
Size=568,155
Collapsed=0
[Window][Example: Auto-resizing window]
Pos=1131,778
Size=652,464
Collapsed=0
[Window][DockSpace Demo]
Pos=0,19
Size=3840,2141
Collapsed=0
[Window][Example: Console]
Pos=798,38
Size=2086,2122
Collapsed=0
DockId=0xC0DFADC4,0
[Window][Example: Property editor]
Pos=60,60
Size=430,450
Collapsed=0
[Window][Example: Property editor/##tree_37EC733C]
IsChild=1
Size=300,409
[Window][WindowOverViewport_11111111]
Pos=0,0
Size=3792,2067
Collapsed=0
[Table][0xB6880529,2]
RefScale=13
Column 0 Sort=0v
[Table][0x2048C668,2]
RefScale=13
Column 0 Width=4
Column 1 Weight=2.0000
[Docking][Data]
DockSpace ID=0x08BD597D Window=0x1BBC0F80 Pos=0,0 Size=3792,2067 CentralNode=1 Selected=0x3C0097EB
DockSpace ID=0xC0DFADC4 Pos=0,38 Size=3840,2122 CentralNode=1