diff --git a/.gitignore b/.gitignore index bcc84f7..996efcb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # Godot 4+ specific ignores .godot/ -/android/ \ No newline at end of file +/android/ +.idea/ \ No newline at end of file diff --git a/addons/godotsteam/win64/~libgodotsteam.windows.template_debug.x86_64.dll b/addons/godotsteam/win64/~libgodotsteam.windows.template_debug.x86_64.dll deleted file mode 100644 index c80cff6..0000000 Binary files a/addons/godotsteam/win64/~libgodotsteam.windows.template_debug.x86_64.dll and /dev/null differ diff --git a/addons/ingameconsole/GameConsole.tscn b/addons/ingameconsole/GameConsole.tscn index 75aa145..283d204 100644 --- a/addons/ingameconsole/GameConsole.tscn +++ b/addons/ingameconsole/GameConsole.tscn @@ -45,9 +45,11 @@ theme = ExtResource("1_jmwsb") [node name="LogLabel" type="RichTextLabel" parent="Panel/VBoxContainer/MarginContainer"] layout_mode = 2 size_flags_vertical = 3 +focus_mode = 2 theme = ExtResource("1_jmwsb") bbcode_enabled = true scroll_following = true +selection_enabled = true [node name="InputField" type="LineEdit" parent="Panel/VBoxContainer"] layout_mode = 2 diff --git a/assets/core/networking/NetworkManager.gd b/assets/core/networking/NetworkManager.gd new file mode 100644 index 0000000..a4f3d07 --- /dev/null +++ b/assets/core/networking/NetworkManager.gd @@ -0,0 +1,18 @@ +extends Node + +func _init() -> void: + # Set your game's Steam app ID here + OS.set_environment("SteamAppId", str(480)) + OS.set_environment("SteamGameId", str(480)) + + + +func _ready() -> void: + var init_result = Steam.steamInit() + if init_result["status"] <= 1: # Check if initialization was successful + GameConsole.print_line("Steam is running!") + var steamId = Steam.getSteamID() + GameConsole.print_line("Steam ID: " + str(Steam.getFriendPersonaName(steamId))) + else: + GameConsole.log_error("Steam failed to initialize: " + str(init_result)) + \ No newline at end of file diff --git a/assets/scenes/main.tscn b/assets/scenes/main.tscn index 3335c58..4351e57 100644 --- a/assets/scenes/main.tscn +++ b/assets/scenes/main.tscn @@ -1,3 +1,6 @@ -[gd_scene format=3 uid="uid://huq7dxk5yvjk"] +[gd_scene load_steps=2 format=3 uid="uid://huq7dxk5yvjk"] + +[ext_resource type="Script" path="res://assets/core/networking/NetworkManager.gd" id="1_dcack"] [node name="Main" type="Node"] +script = ExtResource("1_dcack") diff --git a/project.godot b/project.godot index 051e9ae..723a5c3 100644 --- a/project.godot +++ b/project.godot @@ -19,6 +19,10 @@ config/icon="res://assets/icon.png" GameConsole="*res://addons/ingameconsole/GameConsole.tscn" +[debug] + +file_logging/enable_file_logging=true + [display] window/size/viewport_width=1280