feature/monitor #19

Merged
cromer merged 2 commits from feature/monitor into develop 2022-07-23 13:03:43 -04:00
3 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=2] [gd_scene load_steps=14 format=2]
[ext_resource path="res://assets/fonts/data/PixelOperator.tres" type="DynamicFontData" id=1] [ext_resource path="res://assets/fonts/data/PixelOperator.tres" type="DynamicFontData" id=1]
[ext_resource path="res://assets/fonts/data/PixelOperator-Bold.tres" type="DynamicFontData" id=2] [ext_resource path="res://assets/fonts/data/PixelOperator-Bold.tres" type="DynamicFontData" id=2]
@ -42,6 +42,13 @@ corner_radius_top_right = 5
corner_radius_bottom_right = 5 corner_radius_bottom_right = 5
corner_radius_bottom_left = 5 corner_radius_bottom_left = 5
[sub_resource type="InputEventAction" id=17]
action = "ui_accept"
pressed = true
[sub_resource type="ShortCut" id=18]
shortcut = SubResource( 17 )
[sub_resource type="StyleBoxFlat" id=15] [sub_resource type="StyleBoxFlat" id=15]
bg_color = Color( 0.239216, 0.239216, 0.239216, 1 ) bg_color = Color( 0.239216, 0.239216, 0.239216, 1 )
corner_radius_top_left = 5 corner_radius_top_left = 5
@ -160,7 +167,9 @@ margin_bottom = 61.0
focus_mode = 0 focus_mode = 0
custom_fonts/font = SubResource( 11 ) custom_fonts/font = SubResource( 11 )
custom_styles/normal = SubResource( 12 ) custom_styles/normal = SubResource( 12 )
shortcut_in_tooltip = false
enabled_focus_mode = 0 enabled_focus_mode = 0
shortcut = SubResource( 18 )
text = "Ingresar" text = "Ingresar"
script = ExtResource( 5 ) script = ExtResource( 5 )

View File

@ -99,6 +99,8 @@ func _ready() -> void:
func _physics_process(_delta: float) -> void: func _physics_process(_delta: float) -> void:
if monitor_enabled: if monitor_enabled:
if not $MonitorGUI.visible:
$MonitorGUI.visible = true
if started and not get_tree().paused: if started and not get_tree().paused:
var frame = empty_frame.duplicate(true) var frame = empty_frame.duplicate(true)
frame["coins"] = coins frame["coins"] = coins

View File

@ -10,5 +10,6 @@ monitor_enabled = true
use_development_url = true use_development_url = true
[node name="MonitorGUI" parent="." instance=ExtResource( 3 )] [node name="MonitorGUI" parent="." instance=ExtResource( 3 )]
visible = false
[node name="HTTPRequest" type="HTTPRequest" parent="."] [node name="HTTPRequest" type="HTTPRequest" parent="."]