Skip to content

Commit 16dcb9c

Browse files
Tabbed Setting Panel (#1183)
Co-authored-by: Ryan <173754758+ryanzhangofficial@users.noreply.github.com>
2 parents 6edaa29 + bdcc4d6 commit 16dcb9c

File tree

4 files changed

+514
-456
lines changed

4 files changed

+514
-456
lines changed

fission/src/systems/PerformanceMonitor.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { globalAddToast, globalOpenPanel } from "@/components/GlobalUIControls.ts"
1+
import { globalAddToast, globalOpenModal } from "@/components/GlobalUIControls.ts"
22
import PreferencesSystem from "@/systems/preferences/PreferencesSystem.ts"
33
import World from "@/systems/World.ts"
44
import WorldSystem from "@/systems/WorldSystem.ts"
5-
import GraphicsSettingsPanel from "@/ui/panels/GraphicsSettingsPanel"
5+
import SettingsModal from "@/ui/modals/configuring/SettingsModal"
66

77
export class PerformanceMonitoringSystem extends WorldSystem {
88
isCritical: boolean = false
@@ -30,7 +30,7 @@ export class PerformanceMonitoringSystem extends WorldSystem {
3030
if (this.isCritical) {
3131
PreferencesSystem.resetGraphicsPreferences()
3232
World.sceneRenderer.changeCSMSettings(PreferencesSystem.getGraphicsPreferences())
33-
globalOpenPanel(GraphicsSettingsPanel, undefined)
33+
globalOpenModal(SettingsModal, { initialTab: "graphics" })
3434
globalAddToast("warning", "Performance Issues Detected", "Reverting to simple graphics")
3535
}
3636
}

0 commit comments

Comments
 (0)