Skip to content

Commit 9a36a80

Browse files
committed
Migrate to resource singletons
1 parent 1888d7e commit 9a36a80

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

core/ui/steam_settings.gd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ const SteamClient := preload("res://plugins/steam/core/steam/client.gd")
44
const enums := preload("res://plugins/steam/core/steam/enums.gd")
55
const icon := preload("res://plugins/steam/assets/steam.svg")
66

7+
var NotificationManager := (
8+
load("res://core/global/notification_manager.tres") as NotificationManager
9+
)
10+
711
@onready var status := $%Status
812
@onready var connected_status := $%ConnectedStatus
913
@onready var logged_in_status := $%LoggedInStatus

plugin.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ const settings_menu := preload("res://plugins/steam/core/ui/steam_settings.tscn"
44
const SteamClient := preload("res://plugins/steam/core/steam/client.gd")
55
const icon := preload("res://plugins/steam/assets/steam.svg")
66

7+
var NotificationManager := (
8+
load("res://core/global/notification_manager.tres") as NotificationManager
9+
)
710
var steam: SteamClient
811

912

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"plugin.id": "steam",
33
"plugin.name": "Steam",
4-
"plugin.version": "1.0.2",
4+
"plugin.version": "1.0.3",
55
"plugin.min-api-version": "1.0.0",
66
"plugin.link": "https://github.com/ShadowBlip/OpenGamepadUI-steam",
77
"plugin.source": "https://github.com/ShadowBlip/OpenGamepadUI-steam",

0 commit comments

Comments
 (0)