Skip to content

Commit aae5f0c

Browse files
authored
Merge pull request #64 from TaloDev/develop
Release 0.19.0
2 parents bd12ee0 + 620b906 commit aae5f0c

File tree

5 files changed

+44
-18
lines changed

5 files changed

+44
-18
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: TaloDev

addons/talo/apis/players_api.gd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ func merge(player_id1: String, player_id2: String) -> TaloPlayer:
4747
_:
4848
return null
4949

50+
## Get a player by their ID.
51+
func find(player_id: String) -> TaloPlayer:
52+
var res = await client.make_request(HTTPClient.METHOD_GET, "/%s" % player_id)
53+
match (res.status):
54+
200:
55+
return TaloPlayer.new(res.body.player)
56+
_:
57+
return null
58+
5059
## Generate a mostly-unique identifier.
5160
func generate_identifier() -> String:
5261
var time_hash: String = str(TimeUtils.get_timestamp_msec()).sha256_text()

addons/talo/plugin.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="Talo Game Services"
44
description="Talo (https://trytalo.com) is an open-source game backend with services designed to help you build games faster. You can currently:\n\n- Identify and authenticate players\n- Store persistent data across players\n- Track events (levelling up, finding loot, etc)\n- Display high scores with leaderboards\n- Store and load player saves\n- Load game config options and flags from the cloud\n- Get feedback directly from your players\n- Keep your data in-sync even when players are offline\n- Send channel messages between players"
55
author="trytalo"
6-
version="0.18.0"
6+
version="0.19.0"
77
script="talo_autoload.gd"

addons/talo/samples/playground/playground.tscn

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
[gd_scene load_steps=25 format=3 uid="uid://bg71kho7jirad"]
1+
[gd_scene load_steps=26 format=3 uid="uid://bg71kho7jirad"]
22

33
[ext_resource type="Script" path="res://addons/talo/samples/playground/scripts/identify_button.gd" id="1_o53s3"]
44
[ext_resource type="Script" path="res://addons/talo/samples/playground/scripts/identified_state.gd" id="1_qsdrr"]
5+
[ext_resource type="Script" path="res://addons/talo/samples/playground/scripts/open_docs_button.gd" id="2_l4sgx"]
56
[ext_resource type="Script" path="res://addons/talo/samples/playground/scripts/identified_label.gd" id="2_ncaxm"]
67
[ext_resource type="Script" path="res://addons/talo/samples/playground/scripts/response_label.gd" id="3_bdtqj"]
78
[ext_resource type="Script" path="res://addons/talo/samples/playground/scripts/track_event_button.gd" id="4_vboi8"]
@@ -55,22 +56,6 @@ theme_override_constants/margin_top = 40
5556
theme_override_constants/margin_right = 40
5657
theme_override_constants/margin_bottom = 40
5758

58-
[node name="IdentifiedLabel" type="Label" parent="UI/Content"]
59-
layout_mode = 2
60-
size_flags_horizontal = 8
61-
size_flags_vertical = 8
62-
theme_override_colors/font_color = Color(0, 0, 0, 1)
63-
text = "Player not identified"
64-
script = ExtResource("2_ncaxm")
65-
66-
[node name="ResponseLabel" type="Label" parent="UI/Content"]
67-
unique_name_in_owner = true
68-
layout_mode = 2
69-
size_flags_horizontal = 0
70-
size_flags_vertical = 8
71-
theme_override_colors/font_color = Color(0, 0, 0, 1)
72-
script = ExtResource("3_bdtqj")
73-
7459
[node name="APIs" type="HBoxContainer" parent="UI/Content"]
7560
layout_mode = 2
7661
theme_override_constants/separation = 40
@@ -470,6 +455,32 @@ layout_mode = 2
470455
text = "Send feedback"
471456
script = ExtResource("19_2r4rn")
472457

458+
[node name="Docs_Messages" type="HBoxContainer" parent="UI/Content"]
459+
layout_mode = 2
460+
size_flags_vertical = 8
461+
theme_override_constants/separation = 20
462+
463+
[node name="OpenDocsButton" type="Button" parent="UI/Content/Docs_Messages"]
464+
custom_minimum_size = Vector2(120, 0)
465+
layout_mode = 2
466+
size_flags_horizontal = 0
467+
size_flags_vertical = 4
468+
text = "Go to docs"
469+
script = ExtResource("2_l4sgx")
470+
471+
[node name="ResponseLabel" type="Label" parent="UI/Content/Docs_Messages"]
472+
unique_name_in_owner = true
473+
layout_mode = 2
474+
size_flags_horizontal = 3
475+
theme_override_colors/font_color = Color(0, 0, 0, 1)
476+
script = ExtResource("3_bdtqj")
477+
478+
[node name="IdentifiedLabel" type="Label" parent="UI/Content/Docs_Messages"]
479+
layout_mode = 2
480+
theme_override_colors/font_color = Color(0, 0, 0, 1)
481+
text = "Player not identified"
482+
script = ExtResource("2_ncaxm")
483+
473484
[connection signal="pressed" from="UI/Content/APIs/Players_Continuity/Players/IdentifyButton" to="UI/Content/APIs/Players_Continuity/Players/IdentifyButton" method="_on_pressed"]
474485
[connection signal="pressed" from="UI/Content/APIs/Players_Continuity/Players/SetPropButton" to="UI/Content/APIs/Players_Continuity/Players/SetPropButton" method="_on_pressed"]
475486
[connection signal="pressed" from="UI/Content/APIs/Players_Continuity/Players/DeletePropButton" to="UI/Content/APIs/Players_Continuity/Players/DeletePropButton" method="_on_pressed"]
@@ -490,3 +501,4 @@ script = ExtResource("19_2r4rn")
490501
[connection signal="pressed" from="UI/Content/APIs/Saves/VBoxContainer/RandomiseSaveButton" to="UI/Content/APIs/Saves/VBoxContainer/RandomiseSaveButton" method="_on_pressed"]
491502
[connection signal="pressed" from="UI/Content/APIs/Feedback/GetCategoriesButton" to="UI/Content/APIs/Feedback/GetCategoriesButton" method="_on_pressed"]
492503
[connection signal="pressed" from="UI/Content/APIs/Feedback/SendFeedbackButton" to="UI/Content/APIs/Feedback/SendFeedbackButton" method="_on_pressed"]
504+
[connection signal="pressed" from="UI/Content/Docs_Messages/OpenDocsButton" to="UI/Content/Docs_Messages/OpenDocsButton" method="_on_pressed"]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extends Button
2+
3+
func _on_pressed() -> void:
4+
OS.shell_open("https://docs.trytalo.com/docs/godot/install?utm_source=godot-playground")

0 commit comments

Comments
 (0)