This commit is contained in:
derek
2025-05-09 17:19:42 -05:00
parent b7ba727db5
commit 8fcaf9e3a5
2 changed files with 7 additions and 2 deletions

View File

@@ -1,10 +1,13 @@
[gd_scene load_steps=7 format=3 uid="uid://br882tlh3cfwu"] [gd_scene load_steps=8 format=3 uid="uid://br882tlh3cfwu"]
[ext_resource type="Script" uid="uid://dfv2m81iew3ia" path="res://scripts/hud.gd" id="1_7hukm"] [ext_resource type="Script" uid="uid://dfv2m81iew3ia" path="res://scripts/hud.gd" id="1_7hukm"]
[ext_resource type="Theme" uid="uid://clek42ofxr45f" path="res://DefaultTheme.tres" id="1_22trs"] [ext_resource type="Theme" uid="uid://clek42ofxr45f" path="res://DefaultTheme.tres" id="1_22trs"]
[ext_resource type="Script" uid="uid://x40xk7ltmrgr" path="res://scripts/minimap_v1.gd" id="3_640wx"] [ext_resource type="Script" uid="uid://x40xk7ltmrgr" path="res://scripts/minimap_v1.gd" id="3_640wx"]
[ext_resource type="Script" uid="uid://cfou02ggxj80n" path="res://scripts/dynamic_crosshair.gd" id="5_1xsix"] [ext_resource type="Script" uid="uid://cfou02ggxj80n" path="res://scripts/dynamic_crosshair.gd" id="5_1xsix"]
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_640wx"]
blend_mode = 1
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2hn4h"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2hn4h"]
bg_color = Color(1, 1, 1, 0.129412) bg_color = Color(1, 1, 1, 0.129412)
corner_radius_top_left = 5 corner_radius_top_left = 5
@@ -52,6 +55,7 @@ grow_vertical = 2
script = ExtResource("5_1xsix") script = ExtResource("5_1xsix")
[node name="Minimap" type="Control" parent="StaticItems" node_paths=PackedStringArray("hud")] [node name="Minimap" type="Control" parent="StaticItems" node_paths=PackedStringArray("hud")]
material = SubResource("CanvasItemMaterial_640wx")
layout_mode = 1 layout_mode = 1
anchors_preset = 8 anchors_preset = 8
anchor_left = 0.5 anchor_left = 0.5
@@ -66,6 +70,7 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
script = ExtResource("3_640wx") script = ExtResource("3_640wx")
hud = NodePath("../..") hud = NodePath("../..")
show_vertical_difference = false
[node name="WobbleItems" type="Control" parent="."] [node name="WobbleItems" type="Control" parent="."]
layout_mode = 1 layout_mode = 1

View File

@@ -10,7 +10,7 @@ const MINIMAP_DISPLAY_RADIUS : float = 200.0
const MINIMAP_MAX_OPACITY : float = .75 const MINIMAP_MAX_OPACITY : float = .75
const ERASE_BUFFER_TIME = -10.0 const ERASE_BUFFER_TIME = -10.0
const MAX_PRIORITY_SIZE = 4 const MAX_PRIORITY_SIZE = 4
const MAX_VERTICAL_TICK_LENGTH = 20 const MAX_VERTICAL_TICK_LENGTH = 40
var redraw_timer = redraw_time var redraw_timer = redraw_time
var draw_delta_time var draw_delta_time