Compare commits

..

No commits in common. "85fff938fbf20161b734775586aee815e93b1a03" and "43f82fd03c8b1303e9f72b14ce06ac51cd23584f" have entirely different histories.

24 changed files with 24 additions and 1057 deletions

View file

@ -1,93 +0,0 @@
extends PanelContainer
class_name GameEntry
enum Type {STEAM, ITCHIO}
var type: Type
var steam_app_id: int
var itchio_app_url: String
var steam_data: SteamAppData
var itchio_data: ItchIOAppData
signal game_info_steam_pressed(steam_data: SteamAppData)
signal game_info_itchio_pressesd(itchio_data: ItchIOAppData)
signal entry_deleted(entry: GameEntry)
func _ready() -> void:
populate()
%Refresh.pressed.connect(_reload_data)
%GameName.pressed.connect(_select_game)
%Promote.pressed.connect(_promote_game)
%SteamLink.pressed.connect(_launch_game_site)
%ItchLink.pressed.connect(_launch_game_site)
%Delete.pressed.connect(entry_deleted.emit.bind(self))
func populate() -> void:
%SteamLink.visible = type == Type.STEAM
%ItchLink.visible = type == Type.ITCHIO
match type:
Type.STEAM:
if not steam_data:
steam_data = await %SteamService.get_steam_app_data(steam_app_id)
%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))
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))
func _reload_data() -> void:
match type:
Type.STEAM:
steam_data = await %SteamService.get_steam_app_data(steam_app_id)
populate()
game_info_steam_pressed.emit(steam_data)
Type.ITCHIO:
itchio_data = await %ItchIOService.get_itch_app_data(itchio_app_url)
populate()
game_info_itchio_pressesd.emit(itchio_data)
func _select_game() -> void:
if type == Type.STEAM: game_info_steam_pressed.emit(steam_data)
elif type == Type.ITCHIO: game_info_itchio_pressesd.emit(itchio_data)
func _promote_game() -> void:
var msg: String = "Check out {title} by {developer}! {description} {link}"
var title: String
var developer: String
var description: String
var link: String
match type:
Type.STEAM:
title = steam_data.name
developer = steam_data.developers.front()
description = steam_data.short_description
link = steam_data.s_team_url
pass
Type.ITCHIO:
title = itchio_data.title
developer = itchio_data.developer
description = itchio_data.description.left(200) + "..."
link = itchio_data.url
msg = msg.format({
"title": title,
"developer": developer,
"description": description,
"link": link
})
Globals.twitcher.send_message(msg)
func _launch_game_site() -> void:
var link: String
match type:
Type.STEAM: link = "https://s.team/a/%d" % steam_app_id
Type.ITCHIO: link = itchio_app_url
_:
link = "https://google.com"
OS.shell_open(link)

View file

@ -1 +0,0 @@
uid://c0gqgv8ixdudx

View file

@ -1,88 +0,0 @@
[gd_scene format=3 uid="uid://qu7opwfv2ejy"]
[ext_resource type="Texture2D" uid="uid://bb2asei1pibev" path="res://UI/assets/bootstrap/arrow-repeat.png" id="1_b8obq"]
[ext_resource type="Script" uid="uid://c0gqgv8ixdudx" path="res://UI/Controls/game_entry.gd" id="1_eo48f"]
[ext_resource type="Script" uid="uid://chgufd1youdel" path="res://lib/games_info/steam_service.gd" id="1_lcnnc"]
[ext_resource type="Texture2D" uid="uid://eybcntflwjpx" path="res://UI/assets/bootstrap/megaphone.svg" id="2_7t4x7"]
[ext_resource type="Script" uid="uid://cyef5m8x5f7k6" path="res://lib/games_info/itch_io_service.gd" id="2_eo48f"]
[ext_resource type="Texture2D" uid="uid://pur2a3t6vlfb" path="res://UI/assets/simple/steam.svg" id="3_lcnnc"]
[ext_resource type="Texture2D" uid="uid://bw7yr2aonagxc" path="res://UI/assets/font_awesome/itch-io.svg" id="4_eo48f"]
[ext_resource type="Texture2D" uid="uid://i8rcx5bhkd5x" path="res://UI/assets/bootstrap/trash.svg" id="5_b1mm0"]
[node name="GameEntry" type="PanelContainer" unique_id=2093938454]
offset_right = 8.0
offset_bottom = 8.0
size_flags_horizontal = 3
script = ExtResource("1_eo48f")
[node name="SteamService" type="Node" parent="." unique_id=1960802515]
unique_name_in_owner = true
script = ExtResource("1_lcnnc")
metadata/_custom_type_script = "uid://chgufd1youdel"
[node name="ItchIOService" type="Node" parent="." unique_id=641518539]
unique_name_in_owner = true
script = ExtResource("2_eo48f")
metadata/_custom_type_script = "uid://cyef5m8x5f7k6"
[node name="Background" type="TextureRect" parent="." unique_id=593212671]
unique_name_in_owner = true
layout_mode = 2
expand_mode = 1
stretch_mode = 6
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=1820948686]
layout_mode = 2
[node name="Refresh" type="Button" parent="HBoxContainer" unique_id=827162280]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Refresh"
icon = ExtResource("1_b8obq")
icon_alignment = 1
expand_icon = true
[node name="GameName" type="Button" parent="HBoxContainer" unique_id=1669812435]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "Name of the game very very long name so that we check if the ellipsis work"
text_overrun_behavior = 3
[node name="Promote" type="Button" parent="HBoxContainer" unique_id=710639076]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Promote"
icon = ExtResource("2_7t4x7")
icon_alignment = 1
expand_icon = true
[node name="SteamLink" type="Button" parent="HBoxContainer" unique_id=1282286487]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Steam Page"
icon = ExtResource("3_lcnnc")
icon_alignment = 1
expand_icon = true
[node name="ItchLink" type="Button" parent="HBoxContainer" unique_id=414407013]
unique_name_in_owner = true
visible = false
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Itch Page"
icon = ExtResource("4_eo48f")
icon_alignment = 1
expand_icon = true
[node name="Delete" type="Button" parent="HBoxContainer" unique_id=1920032998]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Delete"
icon = ExtResource("5_b1mm0")
icon_alignment = 1
expand_icon = true

View file

@ -4,62 +4,12 @@
[ext_resource type="Texture2D" uid="uid://cnu6l3x820i82" path="res://UI/assets/bootstrap/eye-slash.png" id="1_rbtts"]
[ext_resource type="Script" uid="uid://ch7qf8iy31pfy" path="res://lib/UI/line_edit_with_buttons.gd" id="2_oookw"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oookw"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 35.0
content_margin_bottom = 4.0
bg_color = Color(0.1, 0.1, 0.1, 0.6)
border_width_bottom = 2
border_color = Color(0, 0, 0, 0.6)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_7naex"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 35.0
content_margin_bottom = 4.0
bg_color = Color(0.1, 0.1, 0.1, 0.3)
border_width_bottom = 2
border_color = Color(0, 0, 0, 0.3)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_en626"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 35.0
content_margin_bottom = 4.0
bg_color = Color(1, 1, 1, 0.75)
draw_center = false
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
expand_margin_left = 2.0
expand_margin_top = 2.0
expand_margin_right = 2.0
expand_margin_bottom = 2.0
[node name="General" type="PanelContainer" unique_id=1071328377]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_type_variation = &"TabPanel"
script = ExtResource("1_oafot")
metadata/_tab_index = 0
@ -176,9 +126,6 @@ text = "Password:"
[node name="ObsPass" type="LineEdit" parent="MarginContainer/VBoxContainer/GridContainer" unique_id=170190217]
unique_name_in_owner = true
layout_mode = 2
theme_override_styles/normal = SubResource("StyleBoxFlat_oookw")
theme_override_styles/read_only = SubResource("StyleBoxFlat_7naex")
theme_override_styles/focus = SubResource("StyleBoxFlat_en626")
secret = true
script = ExtResource("2_oookw")
right = ExtResource("1_rbtts")

View file

@ -1,32 +1,16 @@
extends PanelContainer
@onready var user_games: UserGamesPanel = %UserGames
@onready var tui := %TwitchUserInfo
@onready var up := %UserPromo
var chatter: Chatter:
set(value):
chatter = value
if not value:
tui.clear()
up.chatter = value
user_games.clear()
return
if tui:
tui.populate_from_chatter(chatter)
if up:
up.chatter = value
if user_games:
user_games.chatter = value
if not value: return
if not tui: return
tui.populate_from_chatter(chatter)
if not up: return
up.chatter = value
func _ready() -> void:
tui.extra_expanding.connect(func(x): if x: up.visible = false)
tui.extra_expanded.connect(func(x): if not x: up.visible = true)
resized.connect(func():
var width := int(size.x / 2)
user_games.splitter.split_offsets[0] = width
)
tui.populate_from_chatter(chatter)
up.chatter = chatter
user_games.chatter = chatter

View file

@ -3,32 +3,20 @@
[ext_resource type="PackedScene" uid="uid://bk7elsy5s3equ" path="res://UI/Controls/twitch_user_info.tscn" id="1_bbob4"]
[ext_resource type="Script" uid="uid://bbyomfy4iqbq3" path="res://UI/Controls/internal_twitch_user_info.gd" id="1_l8fl7"]
[ext_resource type="PackedScene" uid="uid://cadil3rnqh61e" path="res://UI/Controls/user_promo.tscn" id="2_l8fl7"]
[ext_resource type="PackedScene" uid="uid://cojuxefo7cryj" path="res://UI/Controls/user_games.tscn" id="4_h7tf2"]
[node name="InternalTwitchUserInfo" type="PanelContainer" unique_id=1986869556]
offset_right = 1346.0
offset_bottom = 536.0
theme_type_variation = &"TabPanel"
script = ExtResource("1_l8fl7")
metadata/_tab_index = 0
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=92971307]
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=515716981]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" unique_id=515716981]
layout_mode = 2
[node name="TwitchUserInfo" parent="VBoxContainer/HBoxContainer" unique_id=1944732530 instance=ExtResource("1_bbob4")]
[node name="TwitchUserInfo" parent="HBoxContainer" unique_id=1944732530 instance=ExtResource("1_bbob4")]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 0
[node name="UserPromo" parent="VBoxContainer/HBoxContainer" unique_id=1364169576 instance=ExtResource("2_l8fl7")]
[node name="UserPromo" parent="HBoxContainer" unique_id=1364169576 instance=ExtResource("2_l8fl7")]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 1
[node name="UserGames" parent="VBoxContainer" unique_id=2022365407 instance=ExtResource("4_h7tf2")]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3

View file

@ -1,167 +0,0 @@
@tool
extends PanelContainer
class_name ItchIOAppInfo
@export var enable_logger: bool = true
@warning_ignore("unused_private_class_variable")
@export_tool_button("Search", "Button") var _search = tool_search
@export var tool_app_url: String
#region Test Apps
enum ItchIOGames{
RIDICULOUS_SHOPPING,
THE_MAZE_AND_THE_BEAST,
THE_SUNNYSIDE_MOTEL_IN_HUTTSVILLE_ARKANSAS,
VOID_DRIVE_THROUGH,
POTION_QUEST,
SUPER_ROLL_OUT,
COVINOS_ROTTEN_FRUIT,
AUTENTIC_ITALIAN_PIZZA,
}
const ITCHIO_APP_URLS: Dictionary[ItchIOGames, String] = {
ItchIOGames.RIDICULOUS_SHOPPING: "https://uff.itch.io/ridiculous-shopping",
ItchIOGames.THE_MAZE_AND_THE_BEAST: "https://uff.itch.io/the-maze-and-the-beast",
ItchIOGames.THE_SUNNYSIDE_MOTEL_IN_HUTTSVILLE_ARKANSAS: "https://fgaha56.itch.io/the-sunnyside-motel-in-huttsville-arkansas",
ItchIOGames.VOID_DRIVE_THROUGH: "https://fgaha56.itch.io/void-drive-through",
ItchIOGames.POTION_QUEST: "https://vex667.itch.io/potion-quest",
ItchIOGames.SUPER_ROLL_OUT: "https://seano4d.itch.io/super-roll-out",
ItchIOGames.COVINOS_ROTTEN_FRUIT: "https://jerem-watts.itch.io/gorley-cleans-up-covinos-rotten-fruit",
ItchIOGames.AUTENTIC_ITALIAN_PIZZA: "https://trevron.itch.io/authentic-italian-pizza",
}
@export var selected_itchio_game: ItchIOGames:
set(val):
selected_itchio_game = val
if is_node_ready(): get_app_info(ITCHIO_APP_URLS[selected_itchio_game])
@export var test_data: ItchIOAppData
#endregion
const IMG_VALID_FORMATS = ["png", "jpeg", "jpg", "bmp", "webp", "svg"]
static var _log: TwitchLogger = TwitchLogger.new(&"ItchAppInfo")
var data: ItchIOAppData:
set(val):
data = val
if is_node_ready():
%VisitPage.disabled = data == null
var _save_data: ItchIOAppData
func _ready() -> void:
%Clear.pressed.connect(clear)
if Engine.is_editor_hint():
return
clear()
func tool_search() -> void:
if !Engine.is_editor_hint():
return
if tool_app_url:
get_app_info(tool_app_url)
func get_app_info(app_url: String) -> ItchIOAppData:
var _data: ItchIOAppData = await %ItchIOService.get_itch_app_data(app_url)
if not _data:
return null
display_app_info(_data)
if Engine.is_editor_hint():
test_data = _data
return _data
func display_app_info(_data: ItchIOAppData) -> void:
clear()
data = _data
if not data: return
%AppSearch.text = str(data.url)
%AppId.text = str(data.id)
%GameName.text = data.title
var authors_string: String = ""
for i: int in data.authors.size():
var author_dic: Dictionary = data.authors[i]
authors_string += "[b][url={url}]{name}[/url][/b]".format(author_dic)
if i+1 < data.authors.size():
authors_string += ", "
%AuthorName.text = "[i]by %s[/i]" % authors_string
if data.cover_image:
%CapsuleImage.texture = await load_texture_from_url(data.cover_image)
if not data.screenshots_thumbnails.is_empty():
var texture := await load_texture_from_url(data.screenshots_thumbnails.front())
if texture:
%Background.texture = texture
%lb_price_desc.visible = !data.is_free
if data.is_free:
%GamePrice.text = "[color=green][wave][b]Free to play![/b][/wave][/color]"
else:
%GamePrice.text = "[color=green][b]%s[/b][/color]" % data.price
%Description.text = data.description
func clear() -> void:
data = null
%AppSearch.text = ""
%GameName.text = ""
%AuthorName.text = ""
%CapsuleImage.texture = null
%Background.texture = null
%ReleaseDate.text = ""
%GamePrice.text = ""
%h_price.hide()
%Description.text = ""
func load_texture_from_url(url: String) -> ImageTexture:
var http := HTTPRequest.new()
add_child(http)
var url_no_query: String = url.split("?")[0]
var file_type = url_no_query.get_extension()
if not file_type in ["png", "jpeg", "jpg", "bmp", "webp", "svg"]:
file_type = "webp"
var _err = http.request(url)
if _err != OK:
print("_err != OK")
return
var result: Array = await http.request_completed
var _result: int = result[0]
var response_code: int = result[1]
var _headers: PackedStringArray = result[2]
var buffer: PackedByteArray = result[3]
if response_code != HTTPClient.RESPONSE_OK:
print("response_code != HTTPClient.RESPONSE_OK")
return
var tex_image := Image.new()
match file_type:
"png": tex_image.load_png_from_buffer(buffer)
"jpeg", "jpg": tex_image.load_jpg_from_buffer(buffer)
"bmp": tex_image.load_bmp_from_buffer(buffer)
"webp": tex_image.load_webp_from_buffer(buffer)
"svg": tex_image.load_svg_from_buffer(buffer)
_:
_log.e("%s format not recognized." % file_type)
return null
var tex = ImageTexture.create_from_image(tex_image)
http.queue_free()
return tex
func _notification(what: int) -> void:
if not Engine.is_editor_hint(): return
match what:
NOTIFICATION_EDITOR_PRE_SAVE:
_save_data = data
#_save_capsule_texture = %CapsuleImage.texture
#_save_bg_texture = %Background.texture
#test_data = null
clear()
NOTIFICATION_EDITOR_POST_SAVE:
test_data = _save_data
display_app_info.call_deferred(_save_data)
#%CapsuleImage.texture = _save_capsule_texture
#%Background.texture = _save_bg_texture
#_save_capsule_texture = null
#_save_bg_texture = null

View file

@ -1 +0,0 @@
uid://cc2x4u4d0qrg1

View file

@ -1,186 +0,0 @@
[gd_scene format=3 uid="uid://c0ahhupmdstxq"]
[ext_resource type="Script" uid="uid://cc2x4u4d0qrg1" path="res://UI/Controls/itch_app_panel.gd" id="1_5d14s"]
[ext_resource type="Script" uid="uid://cyef5m8x5f7k6" path="res://lib/games_info/itch_io_service.gd" id="2_15a0r"]
[ext_resource type="Texture2D" uid="uid://bw7yr2aonagxc" path="res://UI/assets/font_awesome/itch-io.svg" id="3_xpc18"]
[ext_resource type="Texture2D" uid="uid://4juherhkw8hp" path="res://addons/script_splitter/assets/Close.svg" id="4_g2paa"]
[ext_resource type="FontFile" uid="uid://cx1a4aqqxhsrn" path="res://UI/assets/neon-wave-theme/polentical_neon/Polentical Neon Italic.ttf" id="5_itotn"]
[ext_resource type="FontFile" uid="uid://b6u8lwedqawa7" path="res://UI/assets/neon-wave-theme/polentical_neon/Polentical Neon Bold italic.ttf" id="6_3efm0"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3mi7s"]
content_margin_left = 8.0
content_margin_top = 8.0
content_margin_right = 8.0
content_margin_bottom = 8.0
bg_color = Color(0.1, 0.1, 0.1, 0.6)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.6215238, 0.6215239, 0.62152356, 1)
border_blend = true
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="LabelSettings" id="LabelSettings_tbax8"]
font_size = 24
[sub_resource type="LabelSettings" id="LabelSettings_s4fpn"]
font = ExtResource("5_itotn")
font_size = 20
[sub_resource type="LabelSettings" id="LabelSettings_cc846"]
font = ExtResource("6_3efm0")
font_size = 20
[node name="ItchAppPanel" type="PanelContainer" unique_id=691251029]
offset_right = 616.0
offset_bottom = 860.0
script = ExtResource("1_5d14s")
selected_itchio_game = 1
[node name="ItchIOService" type="Node" parent="." unique_id=1316795504]
unique_name_in_owner = true
script = ExtResource("2_15a0r")
metadata/_custom_type_script = "uid://cyef5m8x5f7k6"
[node name="Background" type="TextureRect" parent="." unique_id=1907032212]
unique_name_in_owner = true
layout_mode = 2
[node name="v" type="VBoxContainer" parent="." unique_id=279286858]
layout_mode = 2
[node name="m" type="MarginContainer" parent="v" unique_id=357824354]
layout_mode = 2
[node name="h" type="HBoxContainer" parent="v/m" unique_id=833665550]
layout_mode = 2
alignment = 1
[node name="Icon" type="TextureRect" parent="v/m/h" unique_id=1660071037]
custom_minimum_size = Vector2(24, 24)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("3_xpc18")
expand_mode = 1
stretch_mode = 5
[node name="Title" type="Label" parent="v/m/h" unique_id=833828536]
layout_mode = 2
text = "itchIO App Info"
[node name="Clear" type="Button" parent="v/m" unique_id=1103305607]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 4
icon = ExtResource("4_g2paa")
icon_alignment = 1
[node name="hsep" type="HSeparator" parent="v" unique_id=1999803799]
layout_mode = 2
[node name="h" type="HBoxContainer" parent="v" unique_id=660296882]
layout_mode = 2
[node name="Label" type="Label" parent="v/h" unique_id=1424894063]
layout_mode = 2
text = "App url"
[node name="AppSearch" type="LineEdit" parent="v/h" unique_id=1792920414]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
[node name="AppId" type="LineEdit" parent="v" unique_id=327619984]
unique_name_in_owner = true
layout_mode = 2
text = "2673807"
placeholder_text = "App ID"
alignment = 1
[node name="info" type="PanelContainer" parent="v" unique_id=1542425427]
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/panel = SubResource("StyleBoxFlat_3mi7s")
[node name="sc" type="ScrollContainer" parent="v/info" unique_id=1867214191]
layout_mode = 2
[node name="v" type="VBoxContainer" parent="v/info/sc" unique_id=3173697]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="GameName" type="Label" parent="v/info/sc/v" unique_id=279823622]
unique_name_in_owner = true
layout_mode = 2
label_settings = SubResource("LabelSettings_tbax8")
horizontal_alignment = 1
text_overrun_behavior = 3
[node name="AuthorName" type="RichTextLabel" parent="v/info/sc/v" unique_id=348439232]
unique_name_in_owner = true
layout_mode = 2
bbcode_enabled = true
fit_content = true
scroll_active = false
autowrap_mode = 0
horizontal_alignment = 1
vertical_alignment = 1
[node name="CapsuleImage" type="TextureRect" parent="v/info/sc/v" unique_id=1515227202]
unique_name_in_owner = true
layout_mode = 2
stretch_mode = 5
[node name="hr" type="HBoxContainer" parent="v/info/sc/v" unique_id=1865485586]
layout_mode = 2
alignment = 2
[node name="lb" type="Label" parent="v/info/sc/v/hr" unique_id=1295698123]
layout_mode = 2
text = "Release Date:"
label_settings = SubResource("LabelSettings_s4fpn")
[node name="ReleaseDate" type="Label" parent="v/info/sc/v/hr" unique_id=489036318]
unique_name_in_owner = true
layout_mode = 2
label_settings = SubResource("LabelSettings_cc846")
[node name="h_price" type="HBoxContainer" parent="v/info/sc/v" unique_id=2028526260]
unique_name_in_owner = true
visible = false
layout_mode = 2
alignment = 2
[node name="lb_price_desc" type="Label" parent="v/info/sc/v/h_price" unique_id=956528954]
unique_name_in_owner = true
visible = false
layout_mode = 2
text = "Price:"
label_settings = SubResource("LabelSettings_s4fpn")
[node name="GamePrice" type="Label" parent="v/info/sc/v/h_price" unique_id=290394728]
unique_name_in_owner = true
layout_mode = 2
label_settings = SubResource("LabelSettings_cc846")
[node name="hsep" type="HSeparator" parent="v/info/sc/v" unique_id=343519708]
layout_mode = 2
[node name="Description" type="RichTextLabel" parent="v/info/sc/v" unique_id=1459602721]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
bbcode_enabled = true
[node name="VisitPage" type="Button" parent="v" unique_id=914935418]
unique_name_in_owner = true
layout_mode = 2
disabled = true
text = "Visit Steam Page"

View file

@ -111,7 +111,7 @@ var data: SteamAppData:
func _ready() -> void:
%VisitPage.pressed.connect(_on_btn_visit_page_pressed)
%Clear.pressed.connect(clear)
%ClosePanel.pressed.connect(_on_btn_close_png_pressed)
if Engine.is_editor_hint():
if selected_steam_game != 0:
get_app_info(STEAM_APP_IDS[selected_steam_game])
@ -205,6 +205,9 @@ func load_texture_from_url(url: String) -> ImageTexture:
http.queue_free()
return tex
func _on_btn_close_png_pressed() -> void:
hide()
func _on_btn_visit_page_pressed() -> void:
if data:
OS.shell_open(data.short_url)

View file

@ -167,7 +167,6 @@ metadata/_custom_type_script = "uid://chgufd1youdel"
[node name="Background" type="TextureRect" parent="." unique_id=2131684228]
unique_name_in_owner = true
layout_mode = 2
expand_mode = 1
[node name="v" type="VBoxContainer" parent="." unique_id=711622106]
layout_mode = 2
@ -192,7 +191,7 @@ stretch_mode = 5
layout_mode = 2
text = "Steam App Info"
[node name="Clear" type="Button" parent="v/m" unique_id=1693377160]
[node name="ClosePanel" type="Button" parent="v/m" unique_id=1693377160]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 8

View file

@ -71,7 +71,6 @@ func populate_from_chatter(_chatter: Chatter) -> void:
func clear() -> void:
%AvatarImg.texture = preload("res://UI/assets/twitch_user_profile_pic.png")
%LoadingSimple.hide()
%Username.text = ""
%DisplayName.text = ""
%UserId.text = ""

View file

@ -74,7 +74,6 @@ expand_icon = true
[node name="ExtraInfo" type="PanelContainer" parent="HBoxContainer" unique_id=1175412769]
unique_name_in_owner = true
layout_mode = 2
theme_type_variation = &"TabPanel"
[node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/ExtraInfo" unique_id=1105674920]
layout_mode = 2

View file

@ -22,12 +22,6 @@ func _ready() -> void:
%User.pressed.connect(user_selected.emit.bind(chatter))
%Shoutout.pressed.connect(func(): Globals.twitcher.shoutout(chatter.user))
%Promote.pressed.connect(func(): Globals.twitcher.send_message(chatter.promo_msg))
%ButtonMenu.pressed.connect(func(): toggle_buttons(!is_expanded))
_update_tooltips()
func _update_tooltips() -> void:
for node: Control in [%Shoutout, %Promote, %Refresh, %Raid, %Delete]:
node.tooltip_text = node.tooltip_text % chatter.user.display_name
func update() -> void:
if not chatter:

View file

@ -26,7 +26,6 @@ corner_detail = 5
[node name="UserEntry" type="PanelContainer" unique_id=1215925059]
offset_right = 40.0
offset_bottom = 40.0
theme_type_variation = &"Entry"
script = ExtResource("1_xsfty")
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=582266053]
@ -63,11 +62,9 @@ theme_type_variation = &"BlankButton"
[node name="User" type="Button" parent="HBoxContainer" unique_id=565524419]
unique_name_in_owner = true
custom_minimum_size = Vector2(130, 0)
layout_mode = 2
size_flags_horizontal = 3
text = "Falinere"
text_overrun_behavior = 3
[node name="LiveStatus" type="ColorRect" parent="HBoxContainer/User" unique_id=1459190091]
unique_name_in_owner = true
@ -84,7 +81,6 @@ color = Color(0.3647059, 1, 0.44313726, 0.3764706)
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Shoutout %s"
icon = ExtResource("3_sck47")
icon_alignment = 1
expand_icon = true
@ -101,7 +97,6 @@ layout_mode = 2
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Promote %s"
icon = ExtResource("4_0jtnn")
icon_alignment = 1
expand_icon = true
@ -110,7 +105,6 @@ expand_icon = true
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Refresh %s Twitch Data"
icon = ExtResource("5_xsfty")
icon_alignment = 1
expand_icon = true
@ -120,7 +114,6 @@ unique_name_in_owner = true
modulate = Color(0.6392157, 0.38431373, 0.84313726, 1)
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Raid %s channel"
icon = ExtResource("6_mi6bx")
icon_alignment = 1
expand_icon = true
@ -130,7 +123,6 @@ unique_name_in_owner = true
modulate = Color(1, 0, 0, 1)
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
tooltip_text = "Delete %s from Chatter Database"
icon = ExtResource("9_k1oax")
icon_alignment = 1
expand_icon = true

View file

@ -1,85 +0,0 @@
extends PanelContainer
class_name UserGamesPanel
const GAME_ENTRY = preload("res://UI/Controls/game_entry.tscn")
@onready var splitter: HSplitContainer = %Splitter
var chatter: Chatter:
set(value):
chatter = value
if not chatter: return
clear()
populate_games()
func _ready() -> void:
%SteamSearch.pressed.connect(_handle_search)
%AddSteamGame.pressed.connect(_handle_add)
func _handle_search() -> void:
var info: String = %SteamGameInput.text
var app_id: int = -1
if info.begins_with("https:"):
var parts := Array(info.split("/"))
parts.reverse()
for part in parts:
if part.is_valid_int():
app_id = part.to_int()
break
elif info.is_valid_int():
app_id = info.to_int()
if app_id == -1: return
var data: SteamAppData = await %SteamService.get_steam_app_data(app_id)
if data:
%SteamAppPanel.display_app_info(data)
%SteamAppPanel.show()
func _handle_add() -> void:
var info: String = %SteamGameInput.text
var app_id: int = -1
if info.begins_with("https:"):
var parts = Array(info.split("/"))
parts.reverse()
for part in parts:
if part.is_valid_int():
app_id = part.to_int()
break
elif info.is_valid_int():
app_id = info.to_int()
if app_id == -1: return
var data: SteamAppData = await %SteamService.get_steam_app_data(app_id)
if data:
chatter.steam_games.append(app_id)
chatter.save()
clear()
populate_games()
func populate_games() -> void:
for game in chatter.steam_games:
var inst: GameEntry = GAME_ENTRY.instantiate()
inst.steam_app_id = game
inst.type = GameEntry.Type.STEAM
inst.game_info_steam_pressed.connect(func(x: SteamAppData):
%SteamAppPanel.show()
%SteamAppPanel.display_app_info(x)
)
%SteamList.add_child(inst)
for game in chatter.itch_games:
var inst: GameEntry = GAME_ENTRY.instantiate()
inst.itchio_app_url = chatter.itch_games[game]
inst.type = GameEntry.Type.ITCHIO
inst.game_info_itchio_pressesd.connect(func(x: ItchIOAppData):
%ItchAppPanel.show()
%ItchAppPanel.display_app_info(x)
)
%ItchList.add_child(inst)
func clear() -> void:
for node in %SteamList.get_children():
node.queue_free()
for node in %ItchList.get_children():
node.queue_free()
%SteamAppPanel.clear()
%ItchAppPanel.clear()

View file

@ -1 +0,0 @@
uid://bj06jd8vt70im

View file

@ -1,249 +0,0 @@
[gd_scene format=3 uid="uid://cojuxefo7cryj"]
[ext_resource type="Texture2D" uid="uid://bexdhdpprh6aa" path="res://UI/assets/font_awesome/magnifying-glass-location.svg" id="1_7mil5"]
[ext_resource type="Script" uid="uid://bj06jd8vt70im" path="res://UI/Controls/user_games.gd" id="1_myc1y"]
[ext_resource type="Texture2D" uid="uid://4nae34ce8pjn" path="res://UI/assets/bootstrap/plus-circle.svg" id="2_0hl8v"]
[ext_resource type="Script" uid="uid://chgufd1youdel" path="res://lib/games_info/steam_service.gd" id="2_u0xo6"]
[ext_resource type="Script" uid="uid://cyef5m8x5f7k6" path="res://lib/games_info/itch_io_service.gd" id="3_hk3mv"]
[ext_resource type="PackedScene" uid="uid://685pgmw1cdw3" path="res://UI/Controls/steam_app_panel.tscn" id="3_j36q5"]
[ext_resource type="Script" uid="uid://bllsv2cy6komw" path="res://lib/models/steam_app_data.gd" id="4_myc1y"]
[ext_resource type="PackedScene" uid="uid://c0ahhupmdstxq" path="res://UI/Controls/itch_app_panel.tscn" id="8_hk3mv"]
[sub_resource type="Resource" id="Resource_hk3mv"]
script = ExtResource("4_myc1y")
steam_app_id = 3712430
type = "game"
name = "Carbrix"
short_description = "Carbrix is a sci-fi inspired multiplayer vehicle-building sandbox game where creativity meets action. Design and construct anything you can imagine—from sleek cars and powerful trucks to futuristic planes, bikes, and rockets."
detailed_description = "<p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><img class=\"bb_img\" src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/ddedd3e2cbbbda0b12059974c2562381.avif?t=1771564874\" width=545 height=124 /></span></p><p class=\"bb_paragraph\" style=\"text-align: center\"></p><p class=\"bb_paragraph\" style=\"text-align: center\"><strong>Carbrix is a sci-fi inspired multiplayer vehicle-building sandbox game</strong> where creativity meets action. Design and construct anything you can imagine, from sleek cars and powerful trucks to futuristic planes, bikes, and rockets.</p><p class=\"bb_paragraph\" style=\"text-align: center\">Play solo or team up with friends in multiplayer to share your creations, race, battle, or simply explore endless possibilities. With intuitive building tools and a physics-driven world, Carbrix offers a playground of imagination, competition, and fun.</p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><img class=\"bb_img\" src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/62d477ed4a8d0610fe41ebcfe4d80a5c.avif?t=1771564874\" width=592 height=124 /></span></p><p class=\"bb_paragraph\" style=\"text-align: center\">With <strong>Carbrix</strong>, you can build cars, trucks, planes, bikes—and so much more!</p><p class=\"bb_paragraph\" style=\"text-align: center\">Thanks to the intuitive building system, you can <strong>build, test, and drive</strong> with ease.</p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p><h2 class=\"bb_tag\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><img class=\"bb_img\" src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/8c98159aaf423437bda13df2b30a2e5e.avif?t=1771564874\" width=905 height=121 /></span></h2><p class=\"bb_paragraph\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><video class=\"bb_img\" autoplay muted loop playsinline crossorigin=\"anonymous\" poster=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/3babe6402e31c20319d567a0821a29c3.poster.avif?t=1771564874\" width=640 height=360 ><source src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/3babe6402e31c20319d567a0821a29c3.webm?t=1771564874\" type=\"video/webm; codecs=vp9\"></video></span></p><p class=\"bb_paragraph\" style=\"text-align: center\">Looking for something to sink your teeth into?</p><p class=\"bb_paragraph\" style=\"text-align: center\">With the built-in destruction system, worry no more</p><p class=\"bb_paragraph\" style=\"text-align: center\">Create combat-oriented vehicles and battle your friends!</p><p class=\"bb_paragraph\" ></p><h2 class=\"bb_tag\" style=\"text-align: center\"><span class=\"bb_img_ctn\"><img class=\"bb_img\" src=\"https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/extras/b54bb17deb785da3089c5b644e3f91ab.avif?t=1771564874\" width=923 height=121 /></span></h2><p class=\"bb_paragraph\" style=\"text-align: center\"><strong>With multiplayer, the fun never ends!</strong><br>Team up with your friends to build together—or challenge them in head-to-head battles.</p><p class=\"bb_paragraph\" style=\"text-align: center\">Take part in thrilling races, compete in creative build contests,<br>or just mess around and see who can come up with the wildest inventions.</p><p class=\"bb_paragraph\" style=\"text-align: center\">With so many ways to play, theres always something new to try!</p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p><p class=\"bb_paragraph\" ></p>"
header_image = "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/a18c9a286445c8553a4eac10ba42df6b96ce63ed/header.jpg?t=1771564874"
capsule_image = "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/0e3354ecdcc92437b51dcc8a7ce5aec3c956d6b8/capsule_231x87.jpg?t=1771564874"
capsule_imagev5 = "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/0e3354ecdcc92437b51dcc8a7ce5aec3c956d6b8/capsule_184x69.jpg?t=1771564874"
developers = Array[String](["Redston4D"])
publishers = Array[String](["Redston4D"])
platforms = {
"linux": true,
"mac": false,
"windows": true
}
genres = Array[Dictionary]([{
"description": "Action",
"id": "1"
}, {
"description": "Adventure",
"id": "25"
}, {
"description": "Casual",
"id": "4"
}, {
"description": "Indie",
"id": "23"
}, {
"description": "Racing",
"id": "9"
}, {
"description": "Simulation",
"id": "28"
}])
release_date = {
"coming_soon": true,
"date": "Coming soon"
}
screenshots_full = Array[String](["https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/4a0c3b9405921fd84ee530e87c4bb49e5bac47d5/ss_4a0c3b9405921fd84ee530e87c4bb49e5bac47d5.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/c3bfb9c95fafd7e2e42bf22b2e1a6324202ff3b3/ss_c3bfb9c95fafd7e2e42bf22b2e1a6324202ff3b3.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/41a0157dabd641a59f561befa2d36687405f906c/ss_41a0157dabd641a59f561befa2d36687405f906c.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/d6440c8c03850fa478c8c845561c6729bf69b981/ss_d6440c8c03850fa478c8c845561c6729bf69b981.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/8c8af6ab67b663d1860e5ebdfe3943eebe85e222/ss_8c8af6ab67b663d1860e5ebdfe3943eebe85e222.1920x1080.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/7ebb66440d8eef2e94a818d95f0805f89ca881d3/ss_7ebb66440d8eef2e94a818d95f0805f89ca881d3.1920x1080.jpg?t=1771564874"])
screenshots_thumbs = Array[String](["https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/4a0c3b9405921fd84ee530e87c4bb49e5bac47d5/ss_4a0c3b9405921fd84ee530e87c4bb49e5bac47d5.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/c3bfb9c95fafd7e2e42bf22b2e1a6324202ff3b3/ss_c3bfb9c95fafd7e2e42bf22b2e1a6324202ff3b3.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/41a0157dabd641a59f561befa2d36687405f906c/ss_41a0157dabd641a59f561befa2d36687405f906c.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/d6440c8c03850fa478c8c845561c6729bf69b981/ss_d6440c8c03850fa478c8c845561c6729bf69b981.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/8c8af6ab67b663d1860e5ebdfe3943eebe85e222/ss_8c8af6ab67b663d1860e5ebdfe3943eebe85e222.600x338.jpg?t=1771564874", "https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/3712430/7ebb66440d8eef2e94a818d95f0805f89ca881d3/ss_7ebb66440d8eef2e94a818d95f0805f89ca881d3.600x338.jpg?t=1771564874"])
categories = Array[Dictionary]([{
"description": "Single-player",
"id": 2.0
}, {
"description": "Multi-player",
"id": 1.0
}, {
"description": "PvP",
"id": 49.0
}, {
"description": "Online PvP",
"id": 36.0
}, {
"description": "Co-op",
"id": 9.0
}, {
"description": "Online Co-op",
"id": 38.0
}, {
"description": "Steam Achievements",
"id": 22.0
}, {
"description": "Steam Workshop",
"id": 30.0
}, {
"description": "Custom Volume Controls",
"id": 68.0
}, {
"description": "Adjustable Difficulty",
"id": 78.0
}, {
"description": "Playable without Timed Input",
"id": 74.0
}, {
"description": "Save Anytime",
"id": 79.0
}, {
"description": "Stereo Sound",
"id": 69.0
}, {
"description": "Surround Sound",
"id": 70.0
}, {
"description": "Partial Controller Support",
"id": 18.0
}, {
"description": "Family Sharing",
"id": 62.0
}])
pc_requirements = "<strong>Minimum:</strong><br><ul class=\"bb_ul\"><li>Requires a 64-bit processor and operating system<br></li><li><strong>OS *:</strong> Windows 7 +<br></li><li><strong>Processor:</strong> Intel Core i5-4670k<br></li><li><strong>Memory:</strong> 8 GB RAM<br></li><li><strong>Graphics:</strong> Intel HD 4600 Graphics<br></li><li><strong>DirectX:</strong> Version 12<br></li><li><strong>Storage:</strong> 1 GB available space<br></li><li><strong>Additional Notes:</strong> Please make sure your GraphicsCard has vulkan</li></ul>"
mac_requirements = "{ \"minimum\": \"<strong>Minimum:</strong><br><ul class=\\\"bb_ul\\\"></ul>\", \"recommended\": \"<strong>Recommended:</strong><br><ul class=\\\"bb_ul\\\"></ul>\" }"
linux_requirements = "{ \"minimum\": \"<strong>Minimum:</strong><br><ul class=\\\"bb_ul\\\"><li><strong>Processor:</strong> Intel Core i5-4670k<br></li><li><strong>Memory:</strong> 8 GB RAM<br></li><li><strong>Graphics:</strong> Please make sure your GraphicsCard has vulkan<br></li><li><strong>Storage:</strong> 1 GB available space</li></ul>\", \"recommended\": \"<strong>Recommended:</strong><br><ul class=\\\"bb_ul\\\"><li><strong>Processor:</strong> Intel Core i5-8500<br></li><li><strong>Memory:</strong> 16 GB RAM<br></li><li><strong>Graphics:</strong> Please make sure your GraphicsCard has vulkan<br></li><li><strong>Storage:</strong> 1 GB available space</li></ul>\" }"
support_email = "CarbrixGame@gmail.com"
background_image = "https://store.akamai.steamstatic.com/images/storepagebackground/app/3712430?t=1771564874"
background_image_raw = "https://store.akamai.steamstatic.com/images/storepagebackground/app/3712430?t=1771564874"
[node name="UserGames" type="PanelContainer" unique_id=2022365407]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_myc1y")
[node name="SteamService" type="Node" parent="." unique_id=1181960445]
unique_name_in_owner = true
script = ExtResource("2_u0xo6")
metadata/_custom_type_script = "uid://chgufd1youdel"
[node name="ItchIOService" type="Node" parent="." unique_id=400309790]
unique_name_in_owner = true
script = ExtResource("3_hk3mv")
metadata/_custom_type_script = "uid://cyef5m8x5f7k6"
[node name="Splitter" type="HSplitContainer" parent="." unique_id=182228020]
unique_name_in_owner = true
layout_mode = 2
split_offsets = PackedInt32Array(530)
split_offset = 530
[node name="VBoxContainer" type="VBoxContainer" parent="Splitter" unique_id=869345086]
layout_mode = 2
[node name="Label" type="Label" parent="Splitter/VBoxContainer" unique_id=385647229]
layout_mode = 2
text = "Games"
horizontal_alignment = 1
[node name="HSeparator" type="HSeparator" parent="Splitter/VBoxContainer" unique_id=1347394535]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Splitter/VBoxContainer" unique_id=123570347]
layout_mode = 2
size_flags_vertical = 3
[node name="SteamColumn" type="VBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer" unique_id=1965017268]
layout_mode = 2
size_flags_horizontal = 3
[node name="SteamSearch" type="HBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn" unique_id=476996992]
layout_mode = 2
[node name="SteamGameInput" type="LineEdit" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/SteamSearch" unique_id=135652688]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "steam app id or url"
[node name="SteamSearch" type="Button" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/SteamSearch" unique_id=1427348414]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
icon = ExtResource("1_7mil5")
icon_alignment = 1
expand_icon = true
[node name="AddSteamGame" type="Button" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/SteamSearch" unique_id=1199771317]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
icon = ExtResource("2_0hl8v")
icon_alignment = 1
expand_icon = true
[node name="PanelContainer" type="PanelContainer" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn" unique_id=1782797010]
layout_mode = 2
size_flags_vertical = 3
[node name="ScrollContainer" type="ScrollContainer" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/PanelContainer" unique_id=1538765940]
layout_mode = 2
[node name="SteamList" type="VBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer/SteamColumn/PanelContainer/ScrollContainer" unique_id=788126228]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
[node name="VSeparator" type="VSeparator" parent="Splitter/VBoxContainer/HBoxContainer" unique_id=220505221]
layout_mode = 2
[node name="ItchColumn" type="VBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer" unique_id=1035792899]
layout_mode = 2
size_flags_horizontal = 3
[node name="ItchSearch" type="HBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn" unique_id=58917565]
layout_mode = 2
[node name="ItchInput" type="LineEdit" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/ItchSearch" unique_id=81918204]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "itch.io link"
[node name="ItchFetch" type="Button" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/ItchSearch" unique_id=1917953068]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
icon = ExtResource("1_7mil5")
icon_alignment = 1
expand_icon = true
[node name="ItchAdd" type="Button" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/ItchSearch" unique_id=1726319206]
unique_name_in_owner = true
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
icon = ExtResource("2_0hl8v")
icon_alignment = 1
expand_icon = true
[node name="PanelContainer" type="PanelContainer" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn" unique_id=1055230274]
layout_mode = 2
size_flags_vertical = 3
[node name="ScrollContainer" type="ScrollContainer" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/PanelContainer" unique_id=1143536360]
layout_mode = 2
[node name="ItchList" type="VBoxContainer" parent="Splitter/VBoxContainer/HBoxContainer/ItchColumn/PanelContainer/ScrollContainer" unique_id=1691269823]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
[node name="TabContainer" type="TabContainer" parent="Splitter" unique_id=298665581]
layout_mode = 2
current_tab = 1
tabs_visible = false
[node name="SteamAppPanel" parent="Splitter/TabContainer" unique_id=597550935 instance=ExtResource("3_j36q5")]
unique_name_in_owner = true
visible = false
layout_mode = 2
test_data = SubResource("Resource_hk3mv")
metadata/_tab_index = 0
[node name="ItchAppPanel" parent="Splitter/TabContainer" unique_id=691251029 instance=ExtResource("8_hk3mv")]
unique_name_in_owner = true
layout_mode = 2
metadata/_tab_index = 1

View file

@ -8,15 +8,15 @@ func _ready() -> void:
%SearchTwitchUser.users_updated.connect(%UserList.update_list)
%UserList.populate_list()
%UserList.user_selected.connect(_handle_user_selected)
%Clear.pressed.connect(_handle_clear)
set_tab_names()
func set_tab_names() -> void:
for pnl in %Tabs.get_children():
var title := pnl.name.trim_prefix("Internal").capitalize()
%Tabs.set_tab_title(pnl.get_index(), title)
func _handle_user_selected(user: Chatter) -> void:
itu.chatter = user
iul.chatter = user
%Tabs.current_tab = 0
%SearchTwitchUser.hide()
func _handle_clear() -> void:
itu.chatter = null
iul.chatter = null
%SearchTwitchUser.show()

View file

@ -5,7 +5,6 @@
[ext_resource type="PackedScene" uid="uid://2ifvkmqd0q3i" path="res://UI/Controls/search_twitch_user.tscn" id="2_hl8i0"]
[ext_resource type="PackedScene" uid="uid://d3fhwrt28r08x" path="res://UI/Controls/internal_twitch_user_info.tscn" id="4_jqw2j"]
[ext_resource type="PackedScene" uid="uid://bipoye4ww4ua6" path="res://UI/Controls/internal_user_live.tscn" id="5_8sme5"]
[ext_resource type="Texture2D" uid="uid://4juherhkw8hp" path="res://addons/script_splitter/assets/Close.svg" id="6_oms12"]
[node name="Users" type="PanelContainer" unique_id=823449222]
anchors_preset = 15
@ -13,7 +12,6 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_type_variation = &"TabPanel"
script = ExtResource("1_8sme5")
metadata/_tab_index = 1
@ -35,41 +33,21 @@ layout_mode = 2
[node name="SearchTwitchUser" parent="HSplitContainer/UserManager/VBoxContainer" unique_id=83637811 instance=ExtResource("2_hl8i0")]
unique_name_in_owner = true
layout_mode = 2
theme_type_variation = &"TabPanel"
[node name="HSeparator" type="HSeparator" parent="HSplitContainer/UserManager/VBoxContainer" unique_id=195418375]
layout_mode = 2
[node name="MarginContainer" type="MarginContainer" parent="HSplitContainer/UserManager/VBoxContainer" unique_id=408900267]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/margin_left = 10
theme_override_constants/margin_right = 10
[node name="Tabs" type="TabContainer" parent="HSplitContainer/UserManager/VBoxContainer/MarginContainer" unique_id=140135258]
[node name="Tabs" type="TabContainer" parent="HSplitContainer/UserManager/VBoxContainer" unique_id=140135258]
unique_name_in_owner = true
custom_minimum_size = Vector2(0, 300)
layout_mode = 2
size_flags_vertical = 3
current_tab = 0
tab_0/title = "Twitch User Info"
tab_1/title = "User Live"
[node name="InternalTwitchUserInfo" parent="HSplitContainer/UserManager/VBoxContainer/MarginContainer/Tabs" unique_id=1986869556 instance=ExtResource("4_jqw2j")]
[node name="InternalTwitchUserInfo" parent="HSplitContainer/UserManager/VBoxContainer/Tabs" unique_id=1986869556 instance=ExtResource("4_jqw2j")]
unique_name_in_owner = true
layout_mode = 2
theme_type_variation = &""
metadata/_tab_name = "Twitch User Info"
[node name="InternalUserLive" parent="HSplitContainer/UserManager/VBoxContainer/MarginContainer/Tabs" unique_id=17956466 instance=ExtResource("5_8sme5")]
[node name="InternalUserLive" parent="HSplitContainer/UserManager/VBoxContainer/Tabs" unique_id=17956466 instance=ExtResource("5_8sme5")]
unique_name_in_owner = true
visible = false
layout_mode = 2
metadata/_tab_name = "User Live"
[node name="Clear" type="Button" parent="HSplitContainer/UserManager/VBoxContainer/MarginContainer" unique_id=624044174]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 8
size_flags_vertical = 0
icon = ExtResource("6_oms12")

View file

@ -14,38 +14,6 @@ bg_color = Color(1, 1, 1, 0.57254905)
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_u7u7u"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_frgrh"]
bg_color = Color(0.13684635, 0.13684635, 0.13684635, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_qhjvx"]
content_margin_left = 4.0
content_margin_top = 4.0
content_margin_right = 4.0
content_margin_bottom = 4.0
bg_color = Color(0.07058824, 0.07058824, 0.07058824, 0.95686275)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0.4121524, 0.4121525, 0.41215223, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ay4fc"]
content_margin_left = 10.0
content_margin_top = 10.0
content_margin_right = 10.0
content_margin_bottom = 10.0
bg_color = Color(0.12260859, 0.12260859, 0.12260859, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u7u7u"]
bg_color = Color(0.07058824, 0.07058824, 0.07058824, 0.8901961)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_25vrv"]
bg_color = Color(0.07058824, 0.07058824, 0.07058824, 0.8901961)
[resource]
BlankButton/base_type = &"Button"
BlankButton/styles/disabled = SubResource("StyleBoxEmpty_dfugh")
@ -54,10 +22,3 @@ BlankButton/styles/hover = SubResource("StyleBoxFlat_dfugh")
BlankButton/styles/hover_pressed = SubResource("StyleBoxFlat_hlhir")
BlankButton/styles/normal = SubResource("StyleBoxEmpty_ay4fc")
BlankButton/styles/pressed = SubResource("StyleBoxEmpty_u7u7u")
Entry/base_type = &"PanelContainer"
Entry/styles/panel = SubResource("StyleBoxFlat_frgrh")
PanelContainer/styles/panel = SubResource("StyleBoxFlat_qhjvx")
TabPanel/base_type = &"PanelContainer"
TabPanel/styles/panel = SubResource("StyleBoxFlat_ay4fc")
TooltipLabel/styles/focus = SubResource("StyleBoxFlat_u7u7u")
TooltipLabel/styles/normal = SubResource("StyleBoxFlat_25vrv")

View file

@ -173,7 +173,7 @@ func _handle_settings() -> void:
win.mode = Window.MODE_WINDOWED
var pnl := SETTINGS_PANEL.instantiate()
win.add_child(pnl)
win.size = Vector2i(1530,1000)
win.size = Vector2i(1530,800)
win.close_requested.connect(func(): win.queue_free(); _set_win = null)
win.name = "SettingsWindow"
win.title = "Settings"

View file

@ -37,11 +37,9 @@ layout_mode = 2
[node name="Music" type="PanelContainer" parent="MarginContainer/VBoxContainer/TabContainer" unique_id=22912491]
visible = false
layout_mode = 2
theme_type_variation = &"TabPanel"
metadata/_tab_index = 2
[node name="Chat Avatars" type="PanelContainer" parent="MarginContainer/VBoxContainer/TabContainer" unique_id=429108220]
visible = false
layout_mode = 2
theme_type_variation = &"TabPanel"
metadata/_tab_index = 3

View file

@ -43,10 +43,6 @@ window/per_pixel_transparency/allowed=true
enabled=PackedStringArray("res://addons/gdata_orm/plugin.cfg", "res://addons/gde_gozen/plugin.cfg", "res://addons/kenny_spritesheet_importer/plugin.cfg", "res://addons/no-obs-ws/plugin.cfg", "res://addons/sc_editor/plugin.cfg", "res://addons/twitcher/plugin.cfg")
[gui]
theme/custom="uid://dh11pgqmtpeig"
[input]
spawn_avatar={