refresh button

This commit is contained in:
Matt Parker
2025-11-04 20:26:02 +10:00
parent d5e76011b2
commit 05408deee0
3 changed files with 94 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://hwdok1kch3b3"]
[gd_scene load_steps=3 format=3 uid="uid://hwdok1kch3b3"]
[ext_resource type="Script" uid="uid://8o78ti2hb0pu" path="res://Features/TestExplorer/TestExplorerPanel.cs" id="1_b5miy"]
[ext_resource type="Texture2D" uid="uid://cmwkpdv6pxaai" path="res://Resources/refresh.svg" id="2_4bhqg"]
[node name="TestExplorerPanel" type="Control"]
layout_mode = 3
@@ -27,10 +28,18 @@ theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="Label" type="Label" parent="VBoxContainer/MarginContainer"]
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/MarginContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="VBoxContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
text = "Test Explorer"
[node name="Button" type="Button" parent="VBoxContainer/MarginContainer/HBoxContainer"]
layout_mode = 2
theme_override_constants/icon_max_width = 15
icon = ExtResource("2_4bhqg")
[node name="HSeparator" type="HSeparator" parent="VBoxContainer"]
layout_mode = 2

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
viewBox="0 0 32 32"
version="1.1"
id="svg1"
sodipodi:docname="refresh.svg"
inkscape:version="1.4.2 (f4327f4, 2025-05-13)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<sodipodi:namedview
id="namedview1"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:zoom="18.234375"
inkscape:cx="7.7874893"
inkscape:cy="16.918595"
inkscape:window-width="2560"
inkscape:window-height="1369"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg1" />
<g
id="surface1"
transform="matrix(1.2844773,0,0,1.2844773,-4.5516369,-4.5516369)">
<path
d="M 16,4 C 10.886719,4 6.617188,7.160156 4.875,11.625 l 1.84375,0.75 C 8.175781,8.640625 11.710938,6 16,6 c 3.242188,0 6.132813,1.589844 7.9375,4 H 20 v 2 h 7 V 5 H 25 V 8.09375 C 22.808594,5.582031 19.570313,4 16,4 Z m 9.28125,15.625 C 23.824219,23.359375 20.289063,26 16,26 12.722656,26 9.84375,24.386719 8.03125,22 H 12 V 20 H 5 v 7 H 7 V 23.90625 C 9.1875,26.386719 12.394531,28 16,28 c 5.113281,0 9.382813,-3.160156 11.125,-7.625 z"
id="path1"
style="fill:#c0c0c0;fill-opacity:1" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cmwkpdv6pxaai"
path="res://.godot/imported/refresh.svg-5676e7a7bdbfacb94a79969f2331091e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Resources/refresh.svg"
dest_files=["res://.godot/imported/refresh.svg-5676e7a7bdbfacb94a79969f2331091e.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
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false