From 8fcaf9e3a58962a2d13c998650033e7014d2077a Mon Sep 17 00:00:00 2001 From: derek Date: Fri, 9 May 2025 17:19:42 -0500 Subject: [PATCH] tweaks --- hud.tscn | 7 ++++++- scripts/minimap_v1.gd | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hud.tscn b/hud.tscn index db60cb5..a6109ea 100644 --- a/hud.tscn +++ b/hud.tscn @@ -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="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://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"] bg_color = Color(1, 1, 1, 0.129412) corner_radius_top_left = 5 @@ -52,6 +55,7 @@ grow_vertical = 2 script = ExtResource("5_1xsix") [node name="Minimap" type="Control" parent="StaticItems" node_paths=PackedStringArray("hud")] +material = SubResource("CanvasItemMaterial_640wx") layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 @@ -66,6 +70,7 @@ grow_horizontal = 2 grow_vertical = 2 script = ExtResource("3_640wx") hud = NodePath("../..") +show_vertical_difference = false [node name="WobbleItems" type="Control" parent="."] layout_mode = 1 diff --git a/scripts/minimap_v1.gd b/scripts/minimap_v1.gd index 92875fb..0350f56 100644 --- a/scripts/minimap_v1.gd +++ b/scripts/minimap_v1.gd @@ -10,7 +10,7 @@ const MINIMAP_DISPLAY_RADIUS : float = 200.0 const MINIMAP_MAX_OPACITY : float = .75 const ERASE_BUFFER_TIME = -10.0 const MAX_PRIORITY_SIZE = 4 -const MAX_VERTICAL_TICK_LENGTH = 20 +const MAX_VERTICAL_TICK_LENGTH = 40 var redraw_timer = redraw_time var draw_delta_time