added example file
This commit is contained in:
parent
5661fffed1
commit
f827fb4f18
9 changed files with 43 additions and 13 deletions
6
examples/BeefProj.toml
Normal file
6
examples/BeefProj.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
FileVersion = 1
|
||||
Dependencies = {corlib = "*", TheaterGui = "*"}
|
||||
|
||||
[Project]
|
||||
Name = "examples"
|
||||
StartupObject = "examples.Program"
|
5
examples/BeefSpace.toml
Normal file
5
examples/BeefSpace.toml
Normal file
|
@ -0,0 +1,5 @@
|
|||
FileVersion = 1
|
||||
Projects = {examples = {Path = "."}, TheaterGui = {Path = ".."}}
|
||||
|
||||
[Workspace]
|
||||
StartupProject = "examples"
|
12
examples/src/MainScreen.bf
Normal file
12
examples/src/MainScreen.bf
Normal 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
11
examples/src/Program.bf
Normal file
|
@ -0,0 +1,11 @@
|
|||
namespace examples;
|
||||
|
||||
using TheaterGui;
|
||||
|
||||
class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
App.Run<MainScreen>("Example Gui",1920,1080);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue