add error icon

This commit is contained in:
Matt Parker
2025-09-12 20:04:34 +10:00
parent 15ed073395
commit d15869d576
3 changed files with 45 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=3 format=3 uid="uid://tqpmww430cor"]
[gd_scene load_steps=4 format=3 uid="uid://tqpmww430cor"]
[ext_resource type="Script" uid="uid://b1r3no4u3khik" path="res://Features/Problems/ProblemsPanel.cs" id="1_bnenc"]
[ext_resource type="Texture2D" uid="uid://pd3h5qfjn8pb" path="res://Features/Problems/Resources/Warning.svg" id="2_xj8le"]
[ext_resource type="Texture2D" uid="uid://rvuk8jybyu6m" path="res://Features/Problems/Resources/Error.svg" id="3_sap6e"]
[node name="ProblemsPanel" type="Control"]
layout_mode = 3
@@ -12,7 +13,7 @@ grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_bnenc")
WarningIcon = ExtResource("2_xj8le")
ErrorIcon = ExtResource("2_xj8le")
ErrorIcon = ExtResource("3_sap6e")
[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 1

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" class="mud-icon-root mud-svg-icon mud-error-text mud-icon-size-medium" focusable="false" viewBox="0 0 24 24" aria-hidden="true" role="img" style="fill: rgb(246, 78, 98);">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</svg>

After

Width:  |  Height:  |  Size: 408 B

View File

@@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://rvuk8jybyu6m"
path="res://.godot/imported/Error.svg-6a9f83ecf1a3696ebb66f7b40daa2af4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Features/Problems/Resources/Error.svg"
dest_files=["res://.godot/imported/Error.svg-6a9f83ecf1a3696ebb66f7b40daa2af4.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
svg/scale=1.0
editor/scale_with_editor_scale=false
editor/convert_colors_with_editor_theme=false