meowed!
This commit is contained in:
parent
add8a76bc8
commit
d34084867b
14 changed files with 260 additions and 106 deletions
|
|
@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/offTask.png-4088ef42c4e956c24345f79ce068106b.
|
|||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
|||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/offTaskHover.png-204a2399884ee63b4217e3d29749
|
|||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
|||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/offTaskPressed.png-62dd4b8b127a98f8dd4490862e
|
|||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
|||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/paused.png-ea3edd41c02e88690e5027d82af3c668.c
|
|||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
|||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/pausedHover.png-58a8e779a35e62cd8e888592ae048
|
|||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
|||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/pausedPressed.png-e86f1d6be1518ed430556c08151
|
|||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
|||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/statusIcon.png-56aff46cca01790c3229dbdd9ca304
|
|||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
|||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.cte
|
|||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
|
|
@ -25,6 +27,10 @@ mipmaps/generate=false
|
|||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
|
|
|
|||
83
main.gd
Normal file
83
main.gd
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
extends Control
|
||||
|
||||
var cell_tag = "MIAW"
|
||||
|
||||
@export var player_name: Label
|
||||
@export var player_rank: Label
|
||||
@export var player_score: Label
|
||||
@export var cell_rank: Label
|
||||
@export var cell_score: Label
|
||||
@export var player_request: HTTPRequest
|
||||
@export var cell_request: HTTPRequest
|
||||
@export var cell_name: Label
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
get_data()
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func get_data():
|
||||
#var http_client : HTTPClient = HTTPClient.new()
|
||||
#http_client.connect_to_host("https://payphonetag.com/")
|
||||
|
||||
|
||||
var body = JSON.stringify({"pin": "98409"})
|
||||
var error = player_request.request("https://payphonetag.com/api/player-snapshot", [], HTTPClient.METHOD_POST, body)
|
||||
print(error)
|
||||
|
||||
|
||||
var body2 = JSON.stringify({"pin": "98409"})
|
||||
var error2 = cell_request.request("https://payphonetag.com/api/cell/leaderboard", [], HTTPClient.METHOD_GET, body2)
|
||||
print(error2)
|
||||
|
||||
#var fields = { }
|
||||
#var query_string = http_client.query_string_from_dict(fields)
|
||||
#var headers = ["pin : 98409" ,"Content-Type: application/x-www-form-urlencoded", "Content-Length: " + str(query_string.length())]
|
||||
#var player_data = http_client.request(http_client.METHOD_POST, "https://payphonetag.com/api/player-snapshot", headers, '"pin" : "98409"')
|
||||
|
||||
#print(player_data)
|
||||
|
||||
# Called when the HTTP request is completed.
|
||||
func player_request_completed(result, response_code, headers, body):
|
||||
var json = JSON.new()
|
||||
json.parse(body.get_string_from_utf8())
|
||||
var response : Dictionary = json.get_data()
|
||||
|
||||
# Will print the user agent string used by the HTTPRequest node (as recognized by httpbin.org).
|
||||
#print(response.headers["rank"])
|
||||
#print(response.headers["total_score"])
|
||||
print(response.get("rank"))
|
||||
print(response.get("total_score"))
|
||||
player_rank.text = "#" + str(int(response.get("rank")))
|
||||
player_score.text = str(int(response.get("total_score")))
|
||||
|
||||
func cell_request_completed(result, response_code, headers, body):
|
||||
var json = JSON.new()
|
||||
json.parse(body.get_string_from_utf8())
|
||||
var response : Array = json.get_data()
|
||||
|
||||
# Will print the user agent string used by the HTTPRequest node (as recognized by httpbin.org).
|
||||
#print(response.headers["rank"])
|
||||
#print(response.headers["total_score"])
|
||||
#print(response.get("rank"))
|
||||
#print(response.get("total_score"))
|
||||
#print(response)
|
||||
print("meow")
|
||||
for i : int in range(response.size()):
|
||||
if (response[i].get("CellTag") == cell_tag):
|
||||
cell_name.text = response[i].get("CellName") + " [" + response[i].get("CellTag") + "]"
|
||||
cell_rank.text = "#" + str(i+1)
|
||||
cell_score.text = str(int(response[i].get("TotalScore")))
|
||||
return
|
||||
|
||||
|
||||
func _on_popup_menu_id_pressed(id: int) -> void:
|
||||
# 0 = exit
|
||||
if id == 0:
|
||||
get_tree().quit()
|
||||
pass # Replace with function body.
|
||||
1
main.gd.uid
Normal file
1
main.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dblnpuq85tsmq
|
||||
184
main.tscn
184
main.tscn
|
|
@ -1,44 +1,36 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://df4wh83ypl085"]
|
||||
[gd_scene format=3 uid="uid://df4wh83ypl085"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://q31pnijofl0q" path="res://logic.gd" id="1_0xm2m"]
|
||||
[ext_resource type="Script" uid="uid://dblnpuq85tsmq" path="res://main.gd" id="1_h2yge"]
|
||||
[ext_resource type="Script" uid="uid://njpp5gvmxi7f" path="res://TitleBar.gd" id="1_ig7tw"]
|
||||
[ext_resource type="Texture2D" uid="uid://brljmipci58rq" path="res://Sprites/offTask.png" id="3_7mycd"]
|
||||
[ext_resource type="Texture2D" uid="uid://b502wtiwv20em" path="res://Sprites/statusIcon.png" id="3_h2yge"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2hn0uem08y1x" path="res://Sprites/offTaskPressed.png" id="4_272bh"]
|
||||
[ext_resource type="Texture2D" uid="uid://duvep02qg1u5d" path="res://Sprites/offTaskHover.png" id="5_5vw27"]
|
||||
[ext_resource type="Texture2D" uid="uid://buemgq8amjorw" path="res://Sprites/paused.png" id="6_kek77"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7kxpcujq3cqn" path="res://Sprites/pausedPressed.png" id="7_4c57u"]
|
||||
[ext_resource type="Texture2D" uid="uid://cdmqqnh3ofp8u" path="res://Sprites/pausedHover.png" id="8_efxa6"]
|
||||
|
||||
[node name="Control" type="Control" node_paths=PackedStringArray("on_task_panel", "off_task_panel", "break_panel", "background", "on_clock", "off_clock", "break_clock", "next_break_text", "time_spent_text")]
|
||||
[node name="Control" type="Control" unique_id=577067945 node_paths=PackedStringArray("player_name", "player_rank", "player_score", "cell_rank", "cell_score", "player_request", "cell_request", "cell_name")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_0xm2m")
|
||||
colors = Array[Color]([Color(0.321569, 0.321569, 0.321569, 1), Color(0.612149, 0, 0.151715, 1), Color(3.36915e-07, 0.391146, 0.157066, 1)])
|
||||
on_task_panel = NodePath("VBoxContainer/MainContent/OnTask")
|
||||
off_task_panel = NodePath("VBoxContainer/MainContent/OffTask")
|
||||
break_panel = NodePath("VBoxContainer/MainContent/Break")
|
||||
background = NodePath("Background")
|
||||
on_clock = NodePath("VBoxContainer/MainContent/OnTask/OnTaskClock")
|
||||
off_clock = NodePath("VBoxContainer/MainContent/OffTask/OffTaskTimer")
|
||||
break_clock = NodePath("VBoxContainer/MainContent/Break/BreakTimer")
|
||||
next_break_text = NodePath("VBoxContainer/MainContent/OnTask/NextBreakText")
|
||||
time_spent_text = NodePath("VBoxContainer/MainContent/OnTask/TimeSpentWorking")
|
||||
script = ExtResource("1_h2yge")
|
||||
player_name = NodePath("VBoxContainer/MainContent/OnTask/playerName")
|
||||
player_rank = NodePath("VBoxContainer/MainContent/OnTask/GridContainer/playerRank")
|
||||
player_score = NodePath("VBoxContainer/MainContent/OnTask/GridContainer/playerScore")
|
||||
cell_rank = NodePath("VBoxContainer/MainContent/OnTask/GridContainer2/cellRank")
|
||||
cell_score = NodePath("VBoxContainer/MainContent/OnTask/GridContainer2/cellScore")
|
||||
player_request = NodePath("playerRequest")
|
||||
cell_request = NodePath("cellRequest")
|
||||
cell_name = NodePath("VBoxContainer/MainContent/OnTask/cellName")
|
||||
|
||||
[node name="Background" type="ColorRect" parent="."]
|
||||
[node name="Background" type="ColorRect" parent="." unique_id=641703216]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.321728, 0.321728, 0.321728, 1)
|
||||
color = Color(0.31691015, 0.00042817116, 0.42128003, 1)
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=670454016]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
@ -46,24 +38,24 @@ anchor_bottom = 1.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="TitleBar" type="PanelContainer" parent="VBoxContainer" node_paths=PackedStringArray("options_menu")]
|
||||
[node name="TitleBar" type="PanelContainer" parent="VBoxContainer" unique_id=1245189107 node_paths=PackedStringArray("options_menu")]
|
||||
layout_mode = 2
|
||||
script = ExtResource("1_ig7tw")
|
||||
options_menu = NodePath("../../StatusIndicator/PopupMenu")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TitleBar"]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/TitleBar" unique_id=1199806333]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/TitleBar/HBoxContainer"]
|
||||
[node name="Label" type="Label" parent="VBoxContainer/TitleBar/HBoxContainer" unique_id=804273888]
|
||||
layout_mode = 2
|
||||
text = "Focus Tool"
|
||||
text = "Payphone Watcher"
|
||||
|
||||
[node name="MainContent" type="Control" parent="VBoxContainer"]
|
||||
[node name="MainContent" type="Control" parent="VBoxContainer" unique_id=1523584708]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="OnTask" type="VBoxContainer" parent="VBoxContainer/MainContent"]
|
||||
[node name="OnTask" type="VBoxContainer" parent="VBoxContainer/MainContent" unique_id=1800861120]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
@ -71,99 +63,81 @@ anchor_bottom = 1.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/separation = 0
|
||||
alignment = 1
|
||||
|
||||
[node name="OnTaskClock" type="RichTextLabel" parent="VBoxContainer/MainContent/OnTask"]
|
||||
[node name="playerName" type="Label" parent="VBoxContainer/MainContent/OnTask" unique_id=1091176720]
|
||||
modulate = Color(1, 0.58431375, 1, 1)
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/normal_font_size = 52
|
||||
text = "2:32"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="NextBreakText" type="RichTextLabel" parent="VBoxContainer/MainContent/OnTask"]
|
||||
layout_mode = 2
|
||||
text = "Until Lunch"
|
||||
fit_content = true
|
||||
text = "LunarLynx 😜"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TimeSpentWorking" type="RichTextLabel" parent="VBoxContainer/MainContent/OnTask"]
|
||||
[node name="GridContainer" type="GridContainer" parent="VBoxContainer/MainContent/OnTask" unique_id=938839243]
|
||||
layout_mode = 2
|
||||
theme_override_colors/default_color = Color(0.564962, 0.564962, 0.564962, 1)
|
||||
text = "2:00 Spent working"
|
||||
fit_content = true
|
||||
columns = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer" unique_id=1388196608]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Rank:"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="playerRank" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer" unique_id=482359721]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "..."
|
||||
|
||||
[node name="Label2" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer" unique_id=1618465185]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Score:"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="playerScore" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer" unique_id=994771734]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "..."
|
||||
|
||||
[node name="HSeparator" type="HSeparator" parent="VBoxContainer/MainContent/OnTask" unique_id=1485557779]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="cellName" type="Label" parent="VBoxContainer/MainContent/OnTask" unique_id=157893317]
|
||||
modulate = Color(1, 0.58431375, 1, 1)
|
||||
layout_mode = 2
|
||||
text = "The Catgirl Mafia [MIAW]"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="OffTask" type="VBoxContainer" parent="VBoxContainer/MainContent"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_vertical = 3
|
||||
alignment = 1
|
||||
|
||||
[node name="OffTaskTimer" type="RichTextLabel" parent="VBoxContainer/MainContent/OffTask"]
|
||||
[node name="GridContainer2" type="GridContainer" parent="VBoxContainer/MainContent/OnTask" unique_id=959168299]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/normal_font_size = 52
|
||||
bbcode_enabled = true
|
||||
text = "2:32"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
columns = 2
|
||||
|
||||
[node name="Label" type="RichTextLabel" parent="VBoxContainer/MainContent/OffTask"]
|
||||
[node name="Label" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer2" unique_id=521074097]
|
||||
layout_mode = 2
|
||||
text = "Off Task"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
size_flags_horizontal = 3
|
||||
text = "Rank:"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="Break" type="VBoxContainer" parent="VBoxContainer/MainContent"]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_vertical = 3
|
||||
alignment = 1
|
||||
|
||||
[node name="BreakTimer" type="RichTextLabel" parent="VBoxContainer/MainContent/Break"]
|
||||
[node name="cellRank" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer2" unique_id=1333088748]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/normal_font_size = 52
|
||||
text = "2:32"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
size_flags_horizontal = 3
|
||||
text = "..."
|
||||
|
||||
[node name="Label" type="RichTextLabel" parent="VBoxContainer/MainContent/Break"]
|
||||
[node name="Label2" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer2" unique_id=639603789]
|
||||
layout_mode = 2
|
||||
text = "On Break"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
size_flags_horizontal = 3
|
||||
text = "Score:"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="Buttons" type="HBoxContainer" parent="VBoxContainer"]
|
||||
[node name="cellScore" type="Label" parent="VBoxContainer/MainContent/OnTask/GridContainer2" unique_id=329730910]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "..."
|
||||
|
||||
[node name="OffTaskButton" type="TextureButton" parent="VBoxContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
texture_normal = ExtResource("3_7mycd")
|
||||
texture_pressed = ExtResource("4_272bh")
|
||||
texture_hover = ExtResource("5_5vw27")
|
||||
|
||||
[node name="PauseButton" type="TextureButton" parent="VBoxContainer/Buttons"]
|
||||
layout_mode = 2
|
||||
texture_normal = ExtResource("6_kek77")
|
||||
texture_pressed = ExtResource("7_4c57u")
|
||||
texture_hover = ExtResource("8_efxa6")
|
||||
|
||||
[node name="StatusIndicator" type="StatusIndicator" parent="."]
|
||||
[node name="StatusIndicator" type="StatusIndicator" parent="." unique_id=1039426600]
|
||||
icon = ExtResource("3_h2yge")
|
||||
menu = NodePath("PopupMenu")
|
||||
|
||||
[node name="PopupMenu" type="PopupMenu" parent="StatusIndicator"]
|
||||
[node name="PopupMenu" type="PopupMenu" parent="StatusIndicator" unique_id=1255435033]
|
||||
item_count = 6
|
||||
item_0/text = "Exit"
|
||||
item_0/id = 0
|
||||
|
|
@ -183,8 +157,12 @@ item_5/text = "Large"
|
|||
item_5/checkable = 2
|
||||
item_5/id = 4
|
||||
|
||||
[node name="playerRequest" type="HTTPRequest" parent="." unique_id=692196380]
|
||||
|
||||
[node name="cellRequest" type="HTTPRequest" parent="." unique_id=1748890035]
|
||||
|
||||
[connection signal="gui_input" from="VBoxContainer/TitleBar" to="VBoxContainer/TitleBar" method="_on_TitleBar_gui_input"]
|
||||
[connection signal="pressed" from="VBoxContainer/Buttons/OffTaskButton" to="." method="_on_off_task_button_pressed"]
|
||||
[connection signal="pressed" from="VBoxContainer/Buttons/PauseButton" to="." method="_on_pause_button_pressed"]
|
||||
[connection signal="id_pressed" from="StatusIndicator/PopupMenu" to="." method="_on_popup_menu_id_pressed"]
|
||||
[connection signal="id_pressed" from="StatusIndicator/PopupMenu" to="VBoxContainer/TitleBar" method="_on_popup_menu_id_pressed"]
|
||||
[connection signal="request_completed" from="playerRequest" to="." method="player_request_completed"]
|
||||
[connection signal="request_completed" from="cellRequest" to="." method="cell_request_completed"]
|
||||
|
|
|
|||
BIN
payphone.png
Normal file
BIN
payphone.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
40
payphone.png.import
Normal file
40
payphone.png.import
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://8b1b188aav14"
|
||||
path="res://.godot/imported/payphone.png-3f09abd3d9de30b265cbbbde3a27d50a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://payphone.png"
|
||||
dest_files=["res://.godot/imported/payphone.png-3f09abd3d9de30b265cbbbde3a27d50a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
|
@ -8,14 +8,18 @@
|
|||
|
||||
config_version=5
|
||||
|
||||
[animation]
|
||||
|
||||
compatibility/default_parent_skeleton_in_mesh_instance_3d=true
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Focus Tool"
|
||||
config/name="Payphone Watcher"
|
||||
run/main_scene="uid://df4wh83ypl085"
|
||||
config/features=PackedStringArray("4.4", "GL Compatibility")
|
||||
config/features=PackedStringArray("4.6", "GL Compatibility")
|
||||
run/max_fps=60
|
||||
run/low_processor_mode=true
|
||||
config/icon="uid://b502wtiwv20em"
|
||||
config/icon="uid://8b1b188aav14"
|
||||
|
||||
[display]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue