Tweak connection button textures & make them bigger

This commit is contained in:
ROllerozxa 2024-02-27 00:12:46 +01:00
commit 1d98409b07
7 changed files with 102 additions and 111 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Before After
Before After

View file

@ -2,49 +2,43 @@
<!-- 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="64"
height="64"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
inkscape:export-filename="/home/sdac/dev/a2-sdl/data/attach.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
sodipodi:docname="New document 1">
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
inkscape:export-filename="../../data-shared/textures/symbols/attach.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
sodipodi:docname="hammer.svg"
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"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs4">
<linearGradient
id="linearGradient3755">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
offset="0.12126713"
id="stop3757" />
<stop
style="stop-color:#393939;stop-opacity:1;"
offset="1"
id="stop3759" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3755"
id="linearGradient3761"
x1="31.926212"
y1="63.264999"
x2="31.926212"
y2="0.12503193"
gradientUnits="userSpaceOnUse" />
<filter
id="filter3790"
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow">
inkscape:label="Drop Shadow"
x="-0.083156233"
y="-0.083080293"
width="1.1663125"
height="1.1818361">
<feFlood
id="feFlood3792"
flood-opacity="0.5"
@ -81,17 +75,20 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="36"
inkscape:cy="29"
inkscape:zoom="8"
inkscape:cx="28.875"
inkscape:cy="34.5625"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="2556"
inkscape:window-height="1401"
inkscape:window-width="1920"
inkscape:window-height="1001"
inkscape:window-x="0"
inkscape:window-y="18"
inkscape:window-maximized="0" />
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:showpageshadow="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1" />
<metadata
id="metadata7">
<rdf:RDF>
@ -100,7 +97,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@ -111,7 +108,7 @@
transform="translate(0,-988.36218)">
<path
sodipodi:type="arc"
style="fill:url(#linearGradient3761);fill-opacity:1;stroke:#ffffff;stroke-opacity:1;filter:url(#filter3790)"
style="fill:#121212;fill-opacity:1;stroke:#ffffff;stroke-opacity:1;filter:url(#filter3790)"
id="path2985"
sodipodi:cx="31.925985"
sodipodi:cy="31.986626"

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before After
Before After

View file

@ -2,49 +2,43 @@
<!-- 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="64"
height="64"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
inkscape:export-filename="/home/sdac/dev/a2-sdl/data/attach_rigid.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
sodipodi:docname="rigid.svg">
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
inkscape:export-filename="../../data-shared/textures/symbols/attach_rigid.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
sodipodi:docname="rigid.svg"
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"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs4">
<linearGradient
id="linearGradient3755">
<stop
style="stop-color:#000000;stop-opacity:1;"
style="stop-color:#1a1a1a;stop-opacity:1;"
offset="0"
id="stop3757" />
<stop
style="stop-color:#2c462c;stop-opacity:1;"
offset="1"
offset="0"
id="stop3759" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3755"
id="linearGradient3761"
x1="31.926212"
y1="63.264999"
x2="31.926212"
y2="0.12503193"
gradientUnits="userSpaceOnUse" />
<filter
id="filter3790"
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow">
inkscape:label="Drop Shadow"
x="-0.083156233"
y="-0.083080293"
width="1.1663125"
height="1.1818361">
<feFlood
id="feFlood3792"
flood-opacity="0.5"
@ -81,17 +75,20 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1"
inkscape:cx="-174"
inkscape:cy="30.5"
inkscape:zoom="5.6568542"
inkscape:cx="-2.8284271"
inkscape:cy="20.064155"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="2556"
inkscape:window-height="1401"
inkscape:window-width="1920"
inkscape:window-height="1001"
inkscape:window-x="0"
inkscape:window-y="18"
inkscape:window-maximized="0" />
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:showpageshadow="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1" />
<metadata
id="metadata7">
<rdf:RDF>
@ -100,7 +97,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@ -111,7 +108,7 @@
transform="translate(0,-988.36218)">
<path
sodipodi:type="arc"
style="fill:url(#linearGradient3761);fill-opacity:1;stroke:#ffffff;stroke-opacity:1;filter:url(#filter3790)"
style="fill:#121812;fill-opacity:1;stroke:#ffffff;stroke-opacity:1;filter:url(#filter3790)"
id="path2985"
sodipodi:cx="31.925985"
sodipodi:cy="31.986626"

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Before After
Before After

View file

@ -2,23 +2,22 @@
<!-- 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="64"
height="64"
id="svg2"
version="1.1"
inkscape:version="0.48.3.1 r9886"
inkscape:export-filename="/home/sdac/dev/a2-sdl/data/attach_rotary.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
sodipodi:docname="rotary.svg">
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
inkscape:export-filename="../../data-shared/textures/symbols/attach_rotary.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
sodipodi:docname="rotary.svg"
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"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs4">
<marker
@ -68,22 +67,17 @@
id="stop3757" />
<stop
style="stop-color:#2c2c46;stop-opacity:1;"
offset="1"
offset="0"
id="stop3759" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient3755"
id="linearGradient3761"
x1="31.926212"
y1="63.264999"
x2="31.926212"
y2="0.12503193"
gradientUnits="userSpaceOnUse" />
<filter
id="filter3790"
style="color-interpolation-filters:sRGB;"
inkscape:label="Drop Shadow">
inkscape:label="Drop Shadow"
x="-0.083156233"
y="-0.083080293"
width="1.1663125"
height="1.1818361">
<feFlood
id="feFlood3792"
flood-opacity="0.5"
@ -149,10 +143,10 @@
<filter
id="filter6796"
inkscape:label="Invert"
x="0"
y="0"
width="1"
height="1"
x="-0.075781505"
y="-1.058087"
width="1.0967357"
height="2.384069"
inkscape:menu="Color"
inkscape:menu-tooltip="Invert colors"
color-interpolation-filters="sRGB">
@ -183,10 +177,10 @@
<filter
id="filter6796-0"
inkscape:label="Invert"
x="0"
y="0"
width="1"
height="1"
x="-0.075781505"
y="-1.058087"
width="1.0967357"
height="2.384069"
inkscape:menu="Color"
inkscape:menu-tooltip="Invert colors"
color-interpolation-filters="sRGB">
@ -209,16 +203,19 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="13.010753"
inkscape:cx="14.627686"
inkscape:cy="31.5"
inkscape:cx="14.680165"
inkscape:cy="31.473966"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="2556"
inkscape:window-height="1401"
inkscape:window-width="1920"
inkscape:window-height="1001"
inkscape:window-x="0"
inkscape:window-y="18"
inkscape:window-maximized="0" />
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:showpageshadow="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1" />
<metadata
id="metadata7">
<rdf:RDF>
@ -227,7 +224,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@ -238,7 +235,7 @@
transform="translate(0,-988.36218)">
<path
sodipodi:type="arc"
style="fill:url(#linearGradient3761);fill-opacity:1;stroke:#ffffff;stroke-opacity:1;filter:url(#filter3790)"
style="fill:#121219;fill-opacity:1;stroke:#ffffff;stroke-opacity:1;filter:url(#filter3790)"
id="path2985"
sodipodi:cx="31.925985"
sodipodi:cy="31.986626"

Before

Width:  |  Height:  |  Size: 9 KiB

After

Width:  |  Height:  |  Size: 9 KiB

Before After
Before After

View file

@ -100,7 +100,7 @@
#define MAX_COPY_ENTITIES 10
#define CSCONN_OFFSX .5f
#define CSCONN_OFFSX .55f
#define CSCONN_OFFSY .0f
#define MAX_BTN 5
@ -4047,9 +4047,9 @@ game::render_conn_types()
float mv[16];
float p[16];
if (this->cs_timer < 1.f) {
this->cs_timer += _tms.dt*10.f;
if (this->cs_timer > 1.f) this->cs_timer = 1.f;
if (this->cs_timer < 1.5f) {
this->cs_timer += _tms.dt*15.f;
if (this->cs_timer > 1.5f) this->cs_timer = 1.5f;
}
tmat4_copy(p, this->cam->projection);