Skip to content

Commit

Permalink
fix(Card): use proper reference to BoxArtManager
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Sep 1, 2024
1 parent 95b4f8c commit ccf50d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/ui/components/card.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extends Control
class_name GameCard

var BoxArtManager := load("res://core/global/boxart_manager.tres") as BoxArtManager
var boxart_manager := load("res://core/global/boxart_manager.tres") as BoxArtManager

signal button_up
signal button_down
Expand Down Expand Up @@ -73,9 +73,9 @@ func set_library_item(item: LibraryItem, free_on_remove: bool = true) -> void:

# Get the boxart for the item
var layout = BoxArtProvider.LAYOUT.GRID_PORTRAIT
var card_texture: Texture2D = await BoxArtManager.get_boxart(item, layout)
var card_texture: Texture2D = await boxart_manager.get_boxart(item, layout)
if not card_texture:
card_texture = BoxArtManager.get_placeholder(layout)
card_texture = boxart_manager.get_placeholder(layout)
show_label = true
text = item.name
set_texture(card_texture)
Expand Down

0 comments on commit ccf50d4

Please sign in to comment.