InitCommit

update 1.4.2 source code
This commit is contained in:
kaia
2024-02-03 18:36:09 -06:00
commit ece4ffd123
216 changed files with 79783 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
extends Node2D
var text = ""
@onready var label = $Tooltip/Label
@onready var area = $Area2D
func _ready():
Global.mouse = self
func _process(delta):
if Global.main.editMode:
if text != "":
label.text = text
visible = true
else:
visible = false
global_position = get_global_mouse_position()
if Input.is_action_just_pressed("mouse_left"):
Global.select(area.get_overlapping_areas())
else:
visible = false
text = ""

View File

@@ -0,0 +1,45 @@
[gd_scene load_steps=6 format=3 uid="uid://fxku5nddarp8"]
[ext_resource type="Script" path="res://ui_scenes/mouse/mouse_cursor.gd" id="1_t6obd"]
[ext_resource type="Texture2D" uid="uid://23rqddatjku3" path="res://ui_scenes/mouse/tooltipBox.png" id="2_qcn8h"]
[ext_resource type="FontFile" uid="uid://ukj8gv8ucqsg" path="res://font/goober_pixel.ttf" id="3_v627m"]
[sub_resource type="CircleShape2D" id="CircleShape2D_y1fm1"]
radius = 1.0
[sub_resource type="LabelSettings" id="LabelSettings_a4hxj"]
font = ExtResource("3_v627m")
font_size = 31
[node name="MouseCursor" type="Node2D"]
script = ExtResource("1_t6obd")
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 2048
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_y1fm1")
[node name="Tooltip" type="Node2D" parent="."]
z_index = 4096
position = Vector2(-24, 46)
[node name="NinePatchRect" type="NinePatchRect" parent="Tooltip"]
offset_left = 9.0
offset_top = -4.0
offset_right = 168.0
offset_bottom = 48.0
texture = ExtResource("2_qcn8h")
region_rect = Rect2(0, 0, 48, 48)
patch_margin_left = 8
patch_margin_top = 8
patch_margin_right = 8
patch_margin_bottom = 8
[node name="Label" type="Label" parent="Tooltip"]
offset_left = 7.0
offset_top = 7.0
offset_right = 173.0
offset_bottom = 41.0
label_settings = SubResource("LabelSettings_a4hxj")
horizontal_alignment = 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://23rqddatjku3"
path="res://.godot/imported/tooltipBox.png-fbd17edca11f36259ef2d1e9921dc393.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui_scenes/mouse/tooltipBox.png"
dest_files=["res://.godot/imported/tooltipBox.png-fbd17edca11f36259ef2d1e9921dc393.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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