Compare commits
No commits in common. "d3da6799f973d36c67669c067e0e484a940c1647" and "70c5375d2862c0bc4628bba564ebae32709a2fb1" have entirely different histories.
d3da6799f9
...
70c5375d28
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,3 @@
|
|||||||
# Godot 4+ specific ignores
|
# Godot 4+ specific ignores
|
||||||
.godot/
|
.godot/
|
||||||
/android/
|
/android/
|
||||||
.idea/
|
|
Binary file not shown.
@ -45,11 +45,9 @@ theme = ExtResource("1_jmwsb")
|
|||||||
[node name="LogLabel" type="RichTextLabel" parent="Panel/VBoxContainer/MarginContainer"]
|
[node name="LogLabel" type="RichTextLabel" parent="Panel/VBoxContainer/MarginContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
focus_mode = 2
|
|
||||||
theme = ExtResource("1_jmwsb")
|
theme = ExtResource("1_jmwsb")
|
||||||
bbcode_enabled = true
|
bbcode_enabled = true
|
||||||
scroll_following = true
|
scroll_following = true
|
||||||
selection_enabled = true
|
|
||||||
|
|
||||||
[node name="InputField" type="LineEdit" parent="Panel/VBoxContainer"]
|
[node name="InputField" type="LineEdit" parent="Panel/VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
extends Node
|
|
||||||
|
|
||||||
var steamId: int
|
|
||||||
var username: String
|
|
||||||
var avatar_texture: ImageTexture
|
|
||||||
|
|
||||||
func _ready() -> void:
|
|
||||||
var init_result = Steam.steamInit(true, 480)
|
|
||||||
if init_result["status"] <= 1:
|
|
||||||
_initialize()
|
|
||||||
else:
|
|
||||||
GameConsole.log_error("Steam failed to initialize: " + str(init_result))
|
|
||||||
|
|
||||||
|
|
||||||
func _initialize() -> void:
|
|
||||||
steamId = Steam.getSteamID()
|
|
||||||
username = Steam.getFriendPersonaName(steamId)
|
|
||||||
GameConsole.print_line("Steam ID: " + username)
|
|
||||||
|
|
||||||
Steam.getPlayerAvatar()
|
|
||||||
Steam.avatar_loaded.connect(_on_avatar_loaded)
|
|
||||||
|
|
||||||
|
|
||||||
func _on_avatar_loaded(_user_id: int, avatar_size: int, avatar_buffer: PackedByteArray) -> void:
|
|
||||||
var avatar_image: Image = Image.create_from_data(avatar_size, avatar_size, false, Image.FORMAT_RGBA8, avatar_buffer)
|
|
||||||
if avatar_size > 128:
|
|
||||||
avatar_image.resize(128, 128, Image.INTERPOLATE_LANCZOS)
|
|
||||||
|
|
||||||
|
|
||||||
if avatar_image != null:
|
|
||||||
avatar_texture = ImageTexture.create_from_image(avatar_image)
|
|
||||||
else:
|
|
||||||
GameConsole.log_error("Failed to create avatar image!")
|
|
@ -1,8 +1,3 @@
|
|||||||
[gd_scene load_steps=2 format=3 uid="uid://huq7dxk5yvjk"]
|
[gd_scene format=3 uid="uid://huq7dxk5yvjk"]
|
||||||
|
|
||||||
[ext_resource type="Script" path="res://assets/core/networking/NetworkManager.gd" id="1_dcack"]
|
|
||||||
|
|
||||||
[node name="Main" type="Node"]
|
[node name="Main" type="Node"]
|
||||||
|
|
||||||
[node name="NetworkManager" type="Node" parent="."]
|
|
||||||
script = ExtResource("1_dcack")
|
|
||||||
|
@ -19,19 +19,11 @@ config/icon="res://assets/icon.png"
|
|||||||
|
|
||||||
GameConsole="*res://addons/ingameconsole/GameConsole.tscn"
|
GameConsole="*res://addons/ingameconsole/GameConsole.tscn"
|
||||||
|
|
||||||
[debug]
|
|
||||||
|
|
||||||
file_logging/enable_file_logging=true
|
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
window/size/viewport_width=1280
|
window/size/viewport_width=1280
|
||||||
window/size/viewport_height=720
|
window/size/viewport_height=720
|
||||||
|
|
||||||
[dotnet]
|
|
||||||
|
|
||||||
project/assembly_name="Steamforged Skies"
|
|
||||||
|
|
||||||
[editor_plugins]
|
[editor_plugins]
|
||||||
|
|
||||||
enabled=PackedStringArray("res://addons/ingameconsole/plugin.cfg")
|
enabled=PackedStringArray("res://addons/ingameconsole/plugin.cfg")
|
||||||
|
Loading…
Reference in New Issue
Block a user