Another bandolier visual update
Show the sel slot after all, since it balances out an empty bandolier.
This commit is contained in:
parent
8864d30556
commit
7c623da9cc
@ -27,9 +27,9 @@ local function entprops(stack, conf, widx)
|
||||
and nodecore.player_visible(conf.pname)) then return t end
|
||||
if conf.slot then
|
||||
t.is_visible = true
|
||||
t.textures = {modname .. "_slot.png^[transformFX^[opacity:160", "[combine:1x1"}
|
||||
t.textures = {modname .. "_slot.png", "[combine:1x1"}
|
||||
if conf.slot == widx then
|
||||
t.textures[1] = "[combine:1x1"
|
||||
t.textures[1] = modname .. "_sel.png"
|
||||
return t
|
||||
end
|
||||
end
|
||||
|
BIN
mods/nc_player_wield/textures/nc_player_wield_sel.png
Normal file
BIN
mods/nc_player_wield/textures/nc_player_wield_sel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
179
mods/nc_player_wield/textures/src/nc_player_wield.svg
Normal file
179
mods/nc_player_wield/textures/src/nc_player_wield.svg
Normal file
@ -0,0 +1,179 @@
|
||||
<?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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="116.57883mm"
|
||||
height="58.289417mm"
|
||||
viewBox="0 0 116.57883 58.289417"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:export-filename="/home/warr/git/gitlab.com/sztest/nodecore/mods/nc_player_wield/textures/nc_player_wield_slot.png"
|
||||
inkscape:export-xdpi="13.94"
|
||||
inkscape:export-ydpi="13.94"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||
sodipodi:docname="nc_player_wield_slot.svg">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.8628846"
|
||||
inkscape:cx="98.028029"
|
||||
inkscape:cy="45.502981"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:pagecheckerboard="true"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="718"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="21"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-bbox="true"
|
||||
inkscape:bbox-paths="true"
|
||||
inkscape:bbox-nodes="true" />
|
||||
<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(-21.448676,-114.23539)">
|
||||
<g
|
||||
id="g972"
|
||||
inkscape:export-filename="/home/warr/git/gitlab.com/sztest/nodecore/mods/nc_player_wield/textures/nc_player_wield_slot.png"
|
||||
inkscape:export-xdpi="13.94"
|
||||
inkscape:export-ydpi="13.94">
|
||||
<path
|
||||
transform="matrix(0.78925577,0.21148045,-0.21148045,0.78925577,40.984352,19.517018)"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:sides="6"
|
||||
id="path1366-6-7"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#606060;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:13.4, 13.4;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
sodipodi:type="star" />
|
||||
<path
|
||||
transform="matrix(0.84006749,0.22509541,-0.22509541,0.84006749,40.365729,11.542802)"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:sides="6"
|
||||
id="path1366-6"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#808080;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:13.4, 13.4;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
sodipodi:type="star" />
|
||||
<path
|
||||
transform="rotate(15,50.593384,143.3801)"
|
||||
inkscape:transform-center-y="-1.7395022e-06"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:sides="6"
|
||||
id="path1366"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#a0a0a0;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:13.4, 13.4;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
sodipodi:type="star" />
|
||||
</g>
|
||||
<g
|
||||
transform="translate(58.289417)"
|
||||
id="g972-3"
|
||||
inkscape:export-filename="/home/warr/git/gitlab.com/sztest/nodecore/mods/nc_player_wield/textures/nc_player_wield_sel.png"
|
||||
inkscape:export-xdpi="13.94"
|
||||
inkscape:export-ydpi="13.94">
|
||||
<path
|
||||
transform="matrix(0.78925577,0.21148045,-0.21148045,0.78925577,40.984352,19.517018)"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:sides="6"
|
||||
id="path1366-6-7-6"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#606060;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
sodipodi:type="star" />
|
||||
<path
|
||||
transform="matrix(0.84006749,0.22509541,-0.22509541,0.84006749,40.365729,11.542802)"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:sides="6"
|
||||
id="path1366-6-75"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#808080;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
sodipodi:type="star" />
|
||||
<path
|
||||
transform="rotate(15,50.593384,143.3801)"
|
||||
inkscape:transform-center-y="-1.7395022e-06"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:sides="6"
|
||||
id="path1366-3"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#a0a0a0;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
sodipodi:type="star" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 7.8 KiB |
@ -1,114 +0,0 @@
|
||||
<?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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="58.289417mm"
|
||||
height="58.289417mm"
|
||||
viewBox="0 0 58.289417 58.289417"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:export-filename="/home/warr/git/gitlab.com/sztest/nodecore/mods/nc_player_wield/textures/nc_player_wield_slot.png"
|
||||
inkscape:export-xdpi="13.94"
|
||||
inkscape:export-ydpi="13.94"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||
sodipodi:docname="nc_player_wield_slot.svg">
|
||||
<defs
|
||||
id="defs2" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.7257692"
|
||||
inkscape:cx="52.711849"
|
||||
inkscape:cy="187.34657"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:pagecheckerboard="true"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="718"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="21"
|
||||
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(-21.448676,-114.23539)">
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#606060;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:13.4, 13.40000000000000036;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
id="path1366-6-7"
|
||||
sodipodi:sides="6"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
inkscape:flatsided="true"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
transform="matrix(0.78925577,0.21148045,-0.21148045,0.78925577,40.984352,19.517018)" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#808080;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:13.4, 13.40000000000000036;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
id="path1366-6"
|
||||
sodipodi:sides="6"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
inkscape:flatsided="true"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
transform="matrix(0.84006749,0.22509541,-0.22509541,0.84006749,40.365729,11.542802)" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="opacity:1;vector-effect:none;fill:#0f0f0f;fill-opacity:0;stroke:#a0a0a0;stroke-width:6.69999981;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:13.4, 13.40000000000000036;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
|
||||
id="path1366"
|
||||
sodipodi:sides="6"
|
||||
sodipodi:cx="50.593384"
|
||||
sodipodi:cy="143.3801"
|
||||
sodipodi:r1="26.704687"
|
||||
sodipodi:r2="23.126942"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-1.0471976"
|
||||
inkscape:flatsided="true"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m 50.593385,116.67541 23.126937,13.35234 -10e-7,26.70469 -23.126938,13.35234 -23.126937,-13.35234 10e-7,-26.70469 z"
|
||||
inkscape:transform-center-y="-1.7395022e-06"
|
||||
transform="rotate(15,50.593384,143.3801)" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.6 KiB |
Loading…
x
Reference in New Issue
Block a user