added example file

This commit is contained in:
Booklordofthedings 2024-06-30 14:38:28 +02:00
parent 5661fffed1
commit f827fb4f18
9 changed files with 43 additions and 13 deletions

6
examples/BeefProj.toml Normal file
View file

@ -0,0 +1,6 @@
FileVersion = 1
Dependencies = {corlib = "*", TheaterGui = "*"}
[Project]
Name = "examples"
StartupObject = "examples.Program"

5
examples/BeefSpace.toml Normal file
View file

@ -0,0 +1,5 @@
FileVersion = 1
Projects = {examples = {Path = "."}, TheaterGui = {Path = ".."}}
[Workspace]
StartupProject = "examples"

View file

@ -0,0 +1,12 @@
namespace examples;
using TheaterGui.Components;
class MainScreen : Screen
{
public this() : base("MainScreen")
{
//Add ui items here via AddChild() and terminate the row via EndRow()
//The padding object can be used to add padding to every ui object
}
}

11
examples/src/Program.bf Normal file
View file

@ -0,0 +1,11 @@
namespace examples;
using TheaterGui;
class Program
{
public static void Main()
{
App.Run<MainScreen>("Example Gui",1920,1080);
}
}