Texture for meters
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Martyn 2020-09-23 23:08:14 +02:00
parent 5f20d8ad3f
commit c44f710d7e
4 changed files with 130 additions and 3 deletions

View File

@ -17,8 +17,8 @@
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="icon.svg" sodipodi:docname="icon.svg"
inkscape:export-filename="C:\Users\Martyn\Documents\src\git.martyn.berlin\martyn\asingcrow\assets\icon.png" inkscape:export-filename="C:\Users\Martyn\Documents\src\git.martyn.berlin\martyn\asingcrow\assets\icon.png"
inkscape:export-xdpi="25.4" inkscape:export-xdpi="50.799999"
inkscape:export-ydpi="25.4"> inkscape:export-ydpi="50.799999">
<defs <defs
id="defs850" /> id="defs850" />
<sodipodi:namedview <sodipodi:namedview
@ -37,7 +37,7 @@
inkscape:window-width="2560" inkscape:window-width="2560"
inkscape:window-height="1377" inkscape:window-height="1377"
inkscape:window-x="2552" inkscape:window-x="2552"
inkscape:window-y="-8" inkscape:window-y="1072"
inkscape:window-maximized="1" /> inkscape:window-maximized="1" />
<metadata <metadata
id="metadata853"> id="metadata853">

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

93
assets/meter.svg Normal file
View File

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="100"
height="10"
viewBox="0 0 26.458333 2.6458334"
version="1.1"
id="svg8"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="meter.svg">
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient821">
<stop
style="stop-color:#00f700;stop-opacity:1"
offset="0"
id="stop817" />
<stop
id="stop825"
offset="0.79732144"
style="stop-color:#ffff00;stop-opacity:1" />
<stop
style="stop-color:#ff0000;stop-opacity:1"
offset="1"
id="stop819" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient821"
id="linearGradient823"
x1="1.9958846e-07"
y1="295.67704"
x2="26.458332"
y2="295.67704"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="11.2"
inkscape:cx="27.023004"
inkscape:cy="7.8103613"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
units="px"
inkscape:window-width="2560"
inkscape:window-height="1377"
inkscape:window-x="2552"
inkscape:window-y="-8"
inkscape:window-maximized="1" />
<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"
transform="translate(0,-294.35415)">
<rect
style="opacity:1;fill:url(#linearGradient823);fill-opacity:1;stroke:none;stroke-width:1.70434785;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect815"
width="26.458332"
height="2.6458333"
x="1.9958846e-07"
y="294.35413"
ry="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
godot/UI/src/meter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/meter.png-ec2174f22fb45f854f3c3738e9c6cb97.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://UI/src/meter.png"
dest_files=[ "res://.import/meter.png-ec2174f22fb45f854f3c3738e9c6cb97.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0