Skip to content

Commit

Permalink
Add emulator warning
Browse files Browse the repository at this point in the history
  • Loading branch information
GotoFinal committed Jun 21, 2020
1 parent 288915a commit 5d72242
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Assets/GotoUdon/Editor/GotoUdonEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,18 @@ private void DrawTemplatesEditor()
private void DrawGlobalOptions(GotoUdonSettings settings)
{
settings.Init();
if (!settings.IsSimulatorInstalled)
{
SimpleGUI.ActionButton("Install simulator", () => settings.IsSimulatorInstalled = true);
}
else
{
SimpleGUI.ActionButton("Remove simulator", () => settings.IsSimulatorInstalled = false);
}

SimpleGUI.WarningBox(true,
"Sorry, currently simulator is not available. Please use client manager with new local testing functionality.\n" +
"Emulation will be restored in 1.4.0");
// if (!settings.IsSimulatorInstalled)
// {
// SimpleGUI.ActionButton("Install simulator", () => settings.IsSimulatorInstalled = true);
// }
// else
// {
// SimpleGUI.ActionButton("Remove simulator", () => settings.IsSimulatorInstalled = false);
// }

#if GOTOUDON_SIMULATION_TEMP_DISABLED
SimpleGUI.ErrorBox(settings.avatarPrefab == null,
Expand Down

0 comments on commit 5d72242

Please sign in to comment.