Updated GameEntry
Switched to using ImageLoader.load_image() Fixed bug in developer, to use itchio_data.authors
This commit is contained in:
parent
446e4a291c
commit
23fdd1e972
1 changed files with 3 additions and 3 deletions
|
|
@ -34,13 +34,13 @@ func populate() -> void:
|
|||
%GameName.text = steam_data.name
|
||||
%GameName.tooltip_text = steam_data.name
|
||||
var url_no_query: String = steam_data.header_image.split("?")[0]
|
||||
%Background.texture = ImageTexture.create_from_image(await Globals.twitcher.media.load_image(url_no_query))
|
||||
%Background.texture = await ImageLoader.load_image(url_no_query)
|
||||
Type.ITCHIO:
|
||||
if not itchio_data:
|
||||
itchio_data = await %ItchIOService.get_itch_app_data(itchio_app_url)
|
||||
%GameName.text = itchio_data.title
|
||||
var url: String = itchio_data.cover_image
|
||||
%Background.texture = ImageTexture.create_from_image(await Globals.twitcher.media.load_image(url))
|
||||
%Background.texture = await ImageLoader.load_image(url)
|
||||
|
||||
func _reload_data() -> void:
|
||||
match type:
|
||||
|
|
@ -72,7 +72,7 @@ func _promote_game() -> void:
|
|||
pass
|
||||
Type.ITCHIO:
|
||||
title = itchio_data.title
|
||||
developer = itchio_data.developer
|
||||
developer = itchio_data.authors.front()["name"]
|
||||
description = itchio_data.description.left(200) + "..."
|
||||
link = itchio_data.url
|
||||
msg = msg.format({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue