Skip to content
9 changes: 6 additions & 3 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"runtime"
"slices"
"strings"
"sync"
"time"

rlbot "github.com/RLBot/go-interface"
Expand All @@ -27,6 +28,8 @@ type App struct {
app *application.App
latestReleaseJson []RawReleaseInfo
rlbotAddress string
sandbox *SandboxState
sandboxMu sync.Mutex
}

func (a *App) IgnoreMe(
Expand Down Expand Up @@ -113,9 +116,9 @@ func NewApp() *App {

var latest_release_json []RawReleaseInfo
return &App{
nil,
latest_release_json,
rlbot_address,
app: nil,
latestReleaseJson: latest_release_json,
rlbotAddress: rlbot_address,
}
}

Expand Down
14 changes: 13 additions & 1 deletion frontend/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Events from "./components/Events.svelte";
import GuiSettings from "./components/GuiSettings.svelte";
import Home from "./pages/Home.svelte";
import RocketHost from "./pages/RocketHost.svelte";
import StateSettingSandbox from "./pages/StateSettingSandbox.svelte";
import StoryMode from "./pages/StoryMode.svelte";
import Welcome from "./pages/Welcome.svelte";
import { parseJSON } from "./index";
Expand Down Expand Up @@ -75,6 +76,9 @@ let paths: {
{#if activePage == "rhost"}
<h3>&nbsp; / Rocket Host</h3>
{/if}
{#if activePage == "statesettingsandbox"}
<h3>&nbsp; / State Setting Sandbox</h3>
{/if}
{#if activePage == "storymode"}
<h3>&nbsp; / Story Mode</h3>
{/if}
Expand Down Expand Up @@ -110,7 +114,9 @@ let paths: {
<button>Menu</button>
<div class="dropmenu right">
<button
onclick={alert.bind(null, "TODO: not implemented yet")}
onclick={() => {
activePage = "statesettingsandbox"
}}
>State Setting Sandbox</button
>
<button
Expand Down Expand Up @@ -141,6 +147,12 @@ let paths: {
<RocketHost />
</div>

<div
class={"pageContainer" + (activePage == "statesettingsandbox" ? "" : " hidden")}
>
<StateSettingSandbox visible={activePage === "statesettingsandbox"} />
</div>

<div
class={"pageContainer" + (activePage == "storymode" ? "" : " hidden")}
>
Expand Down
Binary file added frontend/src/assets/arena_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions frontend/src/components/NiceSelect.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<script lang="ts">
let { value = $bindable(), options = {}, placeholder = "" } = $props();
let {
value = $bindable(),
options = {},
placeholder = "",
on_change = () => {},
} = $props();

const options_entries = $derived(Object.entries(options));
$effect(() => {
Expand All @@ -14,7 +19,7 @@ $effect(() => {
</script>

<label class="select" for="slct">
<select id="slct" bind:value required>
<select id="slct" bind:value onchange={on_change} required>
<option value="" disabled selected>{placeholder}</option>
{#each options_entries as option}
<option value={option[1]}>{option[0]}</option>
Expand Down
Loading