diff --git a/BeefSpace.toml b/BeefSpace.toml deleted file mode 100644 index ad3e583..0000000 --- a/BeefSpace.toml +++ /dev/null @@ -1,26 +0,0 @@ -FileVersion = 1 -Projects = {TheaterGui = {Path = "."}, raylib-beef = {Path = "../../External/raylib-beef/raylib-beef"}, ExampleGui = {Path = "../../../Projects/ExampleGui"}} - -[Workspace] -StartupProject = "ExampleGui" - -[Configs.Debug.Win64] -ConfigSelections = {raylib-beef = {Config = "StaticDebug"}} - -[Configs.Debug.wasm32] -AllocType = "CRT" -EnableObjectDebugFlags = false -EmitObjectAccessCheck = false - -[Configs.Release.Win64] -ConfigSelections = {raylib-beef = {Config = "StaticRelease"}} - -[Configs.Paranoid.wasm32] -AllocType = "CRT" -EnableObjectDebugFlags = false -EmitObjectAccessCheck = false - -[Configs.Test.wasm32] -AllocType = "CRT" -EnableObjectDebugFlags = false -EmitObjectAccessCheck = false diff --git a/examples/BeefProj.toml b/examples/BeefProj.toml index 0bad17a..4185c75 100644 --- a/examples/BeefProj.toml +++ b/examples/BeefProj.toml @@ -4,3 +4,6 @@ Dependencies = {corlib = "*", TheaterGui = "*"} [Project] Name = "examples" StartupObject = "examples.Program" + +[Configs.Release.wasm32] +OtherLinkFlags = "$(LinkFlags) --shell-file $(ProjectDir)/index.html" diff --git a/examples/BeefSpace.toml b/examples/BeefSpace.toml index 94fac71..79c8f27 100644 --- a/examples/BeefSpace.toml +++ b/examples/BeefSpace.toml @@ -3,3 +3,18 @@ Projects = {examples = {Path = "."}, TheaterGui = {Path = ".."}} [Workspace] StartupProject = "examples" + +[Configs.Debug.wasm32] +AllocType = "CRT" +EnableObjectDebugFlags = false +EmitObjectAccessCheck = false + +[Configs.Paranoid.wasm32] +AllocType = "CRT" +EnableObjectDebugFlags = false +EmitObjectAccessCheck = false + +[Configs.Test.wasm32] +AllocType = "CRT" +EnableObjectDebugFlags = false +EmitObjectAccessCheck = false diff --git a/examples/index.html b/examples/index.html new file mode 100644 index 0000000..9ea438a --- /dev/null +++ b/examples/index.html @@ -0,0 +1,45 @@ + +Game + + + + + + + + +{{{ SCRIPT }}} \ No newline at end of file diff --git a/examples/src/ExampleToolbar.bf b/examples/src/ExampleToolbar.bf index f16f77f..bae38b9 100644 --- a/examples/src/ExampleToolbar.bf +++ b/examples/src/ExampleToolbar.bf @@ -20,14 +20,18 @@ class ExampleToolbar : Toolbar public void PrintVersion() { +#if !BF_PLATFORM_WASM System.Console.WriteLine("1.0"); +#endif } public void PrintAbout() { +#if !BF_PLATFORM_WASM System.Console.WriteLine(""" TheaterGui by Booklordofthedings A simple easy to use gui library for tools """); +#endif } } \ No newline at end of file diff --git a/examples/src/HorSlider.bf b/examples/src/HorSlider.bf index 29465fc..7fca7b9 100644 --- a/examples/src/HorSlider.bf +++ b/examples/src/HorSlider.bf @@ -18,6 +18,8 @@ class HorSlider : HSlider public override void OnValueChange(float newVal) { +#if !BF_PLATFORM_WASM System.Console.WriteLine(Value); +#endif } } \ No newline at end of file