Small fix to HUD.

godot4-port
unfa 2020-09-28 22:34:54 +02:00
parent 2b4f4d5419
commit 9296df56d3
2 changed files with 74 additions and 4 deletions

View File

@ -1,8 +1,9 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=8 format=2]
[ext_resource path="res://Assets/HUD/HeathBarEmpty.svg" type="Texture" id=1]
[ext_resource path="res://Assets/HUD/HeathBarProgress.svg" type="Texture" id=2]
[ext_resource path="res://Assets/HUD/HeathBarUnder.svg" type="Texture" id=3]
[ext_resource path="res://Assets/HUD/Panel.svg" type="Texture" id=4]
[sub_resource type="VisualShaderNodeColorConstant" id=1]
constant = Color( 0, 0, 0, 0.176471 )
@ -33,7 +34,6 @@ void light() {
}
"
graph_offset = Vector2( 0, -7 )
mode = 1
flags/light_only = false
nodes/fragment/0/position = Vector2( 840, 80 )
@ -118,10 +118,9 @@ __meta__ = {
}
[node name="NinePatchRect" type="NinePatchRect" parent="Weapon"]
material = SubResource( 3 )
margin_right = 116.0
margin_bottom = 64.0
texture = ExtResource( 3 )
texture = ExtResource( 4 )
patch_margin_left = 32
patch_margin_top = 32
patch_margin_right = 32

71
Assets/HUD/Panel.svg Normal file
View File

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="96"
height="96"
viewBox="0 0 25.399999 25.400001"
version="1.1"
id="svg8"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="Panel.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#545454"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="3.959798"
inkscape:cx="85.752294"
inkscape:cy="55.305259"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="true"
units="px"
inkscape:snap-global="false"
inkscape:window-width="1920"
inkscape:window-height="1051"
inkscape:window-x="1920"
inkscape:window-y="0"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid833"
empspacing="32" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="opacity:1;fill:#000000;stroke-width:0.79375;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;paint-order:markers fill stroke;stroke:#ffffff;fill-opacity:0.25"
id="rect835"
width="23.847076"
height="23.847076"
x="0.77646106"
y="0.77646106"
rx="3.0779727"
ry="3.0779727" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB