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.text = steam_data.name
|
||||||
%GameName.tooltip_text = steam_data.name
|
%GameName.tooltip_text = steam_data.name
|
||||||
var url_no_query: String = steam_data.header_image.split("?")[0]
|
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:
|
Type.ITCHIO:
|
||||||
if not itchio_data:
|
if not itchio_data:
|
||||||
itchio_data = await %ItchIOService.get_itch_app_data(itchio_app_url)
|
itchio_data = await %ItchIOService.get_itch_app_data(itchio_app_url)
|
||||||
%GameName.text = itchio_data.title
|
%GameName.text = itchio_data.title
|
||||||
var url: String = itchio_data.cover_image
|
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:
|
func _reload_data() -> void:
|
||||||
match type:
|
match type:
|
||||||
|
|
@ -72,7 +72,7 @@ func _promote_game() -> void:
|
||||||
pass
|
pass
|
||||||
Type.ITCHIO:
|
Type.ITCHIO:
|
||||||
title = itchio_data.title
|
title = itchio_data.title
|
||||||
developer = itchio_data.developer
|
developer = itchio_data.authors.front()["name"]
|
||||||
description = itchio_data.description.left(200) + "..."
|
description = itchio_data.description.left(200) + "..."
|
||||||
link = itchio_data.url
|
link = itchio_data.url
|
||||||
msg = msg.format({
|
msg = msg.format({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue