Readying for alpha.

This commit is contained in:
Scott Duensing 2023-10-01 19:40:26 -05:00
parent 89167b1559
commit 951e9e94b0
20 changed files with 1484 additions and 32 deletions

View file

@ -0,0 +1,313 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns1="http://sozi.baierouge.fr"
id="svg11772"
sodipodi:docname="glossy_yellow_button.svg"
viewBox="0 0 400 400"
version="1.1"
inkscape:version="0.48.0 r9654"
>
<defs
id="defs11774"
>
<linearGradient
id="linearGradient11740"
y2="367.88"
gradientUnits="userSpaceOnUse"
x2="315.47"
y1="287.49"
x1="241.41"
inkscape:collect="always"
>
<stop
id="stop4158-5"
style="stop-color:#ffffff"
offset="0"
/>
<stop
id="stop4160-5"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</linearGradient
>
<filter
id="filter6126-4"
inkscape:collect="always"
color-interpolation-filters="sRGB"
>
<feGaussianBlur
id="feGaussianBlur6128-4"
stdDeviation="0.53035713"
inkscape:collect="always"
/>
</filter
>
<linearGradient
id="linearGradient11742"
y2="391.45"
gradientUnits="userSpaceOnUse"
x2="342"
y1="300.86"
x1="275.61"
inkscape:collect="always"
>
<stop
id="stop7258"
style="stop-color:#112b00"
offset="0"
/>
<stop
id="stop7260"
style="stop-color:#66ff00"
offset="1"
/>
</linearGradient
>
<radialGradient
id="radialGradient11744"
gradientUnits="userSpaceOnUse"
cy="386.57"
cx="312.78"
gradientTransform="matrix(-.59327 -.59327 .71505 -.71505 243.27 849.03)"
r="53.036"
inkscape:collect="always"
>
<stop
id="stop7113-5"
style="stop-color:#ffffff;stop-opacity:.40816"
offset="0"
/>
<stop
id="stop7115-9"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</radialGradient
>
<linearGradient
id="linearGradient12135"
y2="338.82"
gradientUnits="userSpaceOnUse"
y1="286.67"
gradientTransform="matrix(.95534 0 0 .95534 55.103 592.67)"
x2="300.27"
x1="255.32"
inkscape:collect="always"
>
<stop
id="stop4150-9"
style="stop-color:#ffffff"
offset="0"
/>
<stop
id="stop4152-86"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</linearGradient
>
</defs
>
<sodipodi:namedview
id="base"
bordercolor="#666666"
inkscape:pageshadow="2"
inkscape:window-y="-8"
pagecolor="#ffffff"
inkscape:window-height="748"
inkscape:window-maximized="1"
inkscape:zoom="0.98994949"
inkscape:window-x="-8"
showgrid="false"
borderopacity="1.0"
inkscape:current-layer="layer1"
inkscape:cx="211.24527"
inkscape:cy="230.76804"
inkscape:window-width="1280"
inkscape:pageopacity="0.0"
inkscape:document-units="px"
/>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer"
transform="translate(0 -652.36)"
>
<g
id="g11707"
transform="matrix(2.9051 0 0 2.9051 -770.2 -1760.1)"
>
<path
id="path7234"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:#999999"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.97354 0 0 .97354 39.077 565.99)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7236"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#linearGradient11740)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.95960 0 0 .95960 43.313 570.82)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7238"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="filter:url(#filter6126-4);fill:#ececec"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.87355 0 0 .87355 69.45 600.6)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7240"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="filter:url(#filter6126-4);fill:#999999"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.83838 0 0 .83838 80.131 612.77)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7242"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#linearGradient11742)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.80587 0 0 .80587 90.008 624.02)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7244"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#radialGradient11744)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.75825 0 0 .75825 105.73 642.52)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7246"
style="opacity:.31771;fill:url(#linearGradient12135)"
inkscape:connector-curvature="0"
d="m333.79 862.76c-13.331 0.30069-26.186 7.358-33.336 19.742-7.6903 13.32-6.7139 29.266 1.1545 41.331 0.85306-26.532 21.132-46.515 46.324-45.054 8.2589 0.47907 16.054 3.2001 22.859 7.5908-3.2578-7.4498-8.8171-13.953-16.394-18.327-6.4867-3.7451-13.625-5.4393-20.608-5.2818z"
/>
</g
>
</g
>
<metadata
>
<rdf:RDF
>
<cc:Work
>
<dc:format
>image/svg+xml</dc:format
>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
/>
<cc:license
rdf:resource="http://creativecommons.org/licenses/publicdomain/"
/>
<dc:publisher
>
<cc:Agent
rdf:about="http://openclipart.org/"
>
<dc:title
>Openclipart</dc:title
>
</cc:Agent
>
</dc:publisher
>
<dc:title
>glossy green button</dc:title
>
<dc:date
>2011-02-26T02:58:54</dc:date
>
<dc:description
/>
<dc:source
>https://openclipart.org/detail/122737/glossy-green-button-by-ricardomaia</dc:source
>
<dc:creator
>
<cc:Agent
>
<dc:title
>ricardomaia</dc:title
>
</cc:Agent
>
</dc:creator
>
<dc:subject
>
<rdf:Bag
>
<rdf:li
>button</rdf:li
>
<rdf:li
>glass</rdf:li
>
<rdf:li
>glossy</rdf:li
>
</rdf:Bag
>
</dc:subject
>
</cc:Work
>
<cc:License
rdf:about="http://creativecommons.org/licenses/publicdomain/"
>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks"
/>
</cc:License
>
</rdf:RDF
>
</metadata
>
</svg
>

After

Width:  |  Height:  |  Size: 8.8 KiB

View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cmbdj0ptiayuj"
path="res://.godot/imported/glossy-green-button.svg-3713d2b1d0121db3a723b559cc3b51fb.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Art/glossy-green-button.svg"
dest_files=["res://.godot/imported/glossy-green-button.svg-3713d2b1d0121db3a723b559cc3b51fb.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

View file

@ -0,0 +1,313 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns1="http://sozi.baierouge.fr"
id="svg11772"
sodipodi:docname="glossy_blue_button.svg"
viewBox="0 0 400 400"
version="1.1"
inkscape:version="0.48.0 r9654"
>
<defs
id="defs11774"
>
<linearGradient
id="linearGradient11732"
y2="367.88"
gradientUnits="userSpaceOnUse"
x2="315.47"
y1="287.49"
x1="241.41"
inkscape:collect="always"
>
<stop
id="stop4158-0"
style="stop-color:#ffffff"
offset="0"
/>
<stop
id="stop4160-0"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</linearGradient
>
<filter
id="filter6126-7"
inkscape:collect="always"
color-interpolation-filters="sRGB"
>
<feGaussianBlur
id="feGaussianBlur6128-1"
stdDeviation="0.53035713"
inkscape:collect="always"
/>
</filter
>
<linearGradient
id="linearGradient11734"
y2="391.45"
gradientUnits="userSpaceOnUse"
x2="342"
y1="300.86"
x1="275.61"
inkscape:collect="always"
>
<stop
id="stop7201"
style="stop-color:#550000"
offset="0"
/>
<stop
id="stop7203"
style="stop-color:#ff0000"
offset="1"
/>
</linearGradient
>
<radialGradient
id="radialGradient11736"
gradientUnits="userSpaceOnUse"
cy="386.57"
cx="312.78"
gradientTransform="matrix(-.59327 -.59327 .71505 -.71505 243.27 849.03)"
r="53.036"
inkscape:collect="always"
>
<stop
id="stop7113-1"
style="stop-color:#ffffff;stop-opacity:.40816"
offset="0"
/>
<stop
id="stop7115-8"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</radialGradient
>
<linearGradient
id="linearGradient11925"
y2="338.82"
gradientUnits="userSpaceOnUse"
y1="286.67"
gradientTransform="matrix(.95534 0 0 .95534 -84.897 472.67)"
x2="300.27"
x1="255.32"
inkscape:collect="always"
>
<stop
id="stop4150-3"
style="stop-color:#ffffff"
offset="0"
/>
<stop
id="stop4152-8"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</linearGradient
>
</defs
>
<sodipodi:namedview
id="base"
bordercolor="#666666"
inkscape:pageshadow="2"
inkscape:window-y="-8"
pagecolor="#ffffff"
inkscape:window-height="748"
inkscape:window-maximized="1"
inkscape:zoom="0.98994949"
inkscape:window-x="-8"
showgrid="false"
borderopacity="1.0"
inkscape:current-layer="layer1"
inkscape:cx="211.24527"
inkscape:cy="230.76804"
inkscape:window-width="1280"
inkscape:pageopacity="0.0"
inkscape:document-units="px"
/>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer"
transform="translate(0 -652.36)"
>
<g
id="g11689"
transform="matrix(2.9051 0 0 2.9051 -368.53 -1417.5)"
>
<path
id="path7177"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:#999999"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.97354 0 0 .97354 -100.92 445.99)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7179"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#linearGradient11732)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.95960 0 0 .95960 -96.687 450.82)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7181"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="filter:url(#filter6126-7);fill:#ececec"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.87355 0 0 .87355 -70.55 480.6)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7183"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="filter:url(#filter6126-7);fill:#999999"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.83838 0 0 .83838 -59.869 492.77)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7185"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#linearGradient11734)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.80587 0 0 .80587 -49.992 504.02)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7187"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#radialGradient11736)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.75825 0 0 .75825 -34.266 522.52)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7189"
style="opacity:.31771;fill:url(#linearGradient11925)"
inkscape:connector-curvature="0"
d="m193.79 742.76c-13.331 0.30069-26.186 7.358-33.336 19.742-7.6903 13.32-6.7139 29.266 1.1545 41.331 0.85306-26.532 21.132-46.515 46.324-45.054 8.2589 0.47907 16.054 3.2001 22.859 7.5908-3.2578-7.4498-8.8171-13.953-16.394-18.327-6.4867-3.7451-13.625-5.4393-20.608-5.2818z"
/>
</g
>
</g
>
<metadata
>
<rdf:RDF
>
<cc:Work
>
<dc:format
>image/svg+xml</dc:format
>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
/>
<cc:license
rdf:resource="http://creativecommons.org/licenses/publicdomain/"
/>
<dc:publisher
>
<cc:Agent
rdf:about="http://openclipart.org/"
>
<dc:title
>Openclipart</dc:title
>
</cc:Agent
>
</dc:publisher
>
<dc:title
>glossy red button</dc:title
>
<dc:date
>2011-02-26T02:58:54</dc:date
>
<dc:description
/>
<dc:source
>https://openclipart.org/detail/122749/glossy-red-button-by-ricardomaia</dc:source
>
<dc:creator
>
<cc:Agent
>
<dc:title
>ricardomaia</dc:title
>
</cc:Agent
>
</dc:creator
>
<dc:subject
>
<rdf:Bag
>
<rdf:li
>button</rdf:li
>
<rdf:li
>glass</rdf:li
>
<rdf:li
>glossy</rdf:li
>
</rdf:Bag
>
</dc:subject
>
</cc:Work
>
<cc:License
rdf:about="http://creativecommons.org/licenses/publicdomain/"
>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks"
/>
</cc:License
>
</rdf:RDF
>
</metadata
>
</svg
>

After

Width:  |  Height:  |  Size: 8.8 KiB

View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bg0mix7qygorr"
path="res://.godot/imported/glossy-red-button.svg-122e1cdee686ccf1358525786984389b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Art/glossy-red-button.svg"
dest_files=["res://.godot/imported/glossy-red-button.svg-122e1cdee686ccf1358525786984389b.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

View file

@ -0,0 +1,313 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ns1="http://sozi.baierouge.fr"
id="svg11772"
sodipodi:docname="glossy_red_button.svg"
viewBox="0 0 400 400"
version="1.1"
inkscape:version="0.48.0 r9654"
>
<defs
id="defs11774"
>
<linearGradient
id="linearGradient11724"
y2="367.88"
gradientUnits="userSpaceOnUse"
x2="315.47"
y1="287.49"
x1="241.41"
inkscape:collect="always"
>
<stop
id="stop4158-08"
style="stop-color:#ffffff"
offset="0"
/>
<stop
id="stop4160-1"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</linearGradient
>
<filter
id="filter6126-75"
inkscape:collect="always"
color-interpolation-filters="sRGB"
>
<feGaussianBlur
id="feGaussianBlur6128-0"
stdDeviation="0.53035713"
inkscape:collect="always"
/>
</filter
>
<linearGradient
id="linearGradient11726"
y2="391.45"
gradientUnits="userSpaceOnUse"
x2="342"
y1="300.86"
x1="275.61"
inkscape:collect="always"
>
<stop
id="stop7230"
style="stop-color:#806600"
offset="0"
/>
<stop
id="stop7232"
style="stop-color:#ffcc00"
offset="1"
/>
</linearGradient
>
<radialGradient
id="radialGradient11728"
gradientUnits="userSpaceOnUse"
cy="386.57"
cx="312.78"
gradientTransform="matrix(-.59327 -.59327 .71505 -.71505 243.27 849.03)"
r="53.036"
inkscape:collect="always"
>
<stop
id="stop7113-6"
style="stop-color:#ffffff;stop-opacity:.40816"
offset="0"
/>
<stop
id="stop7115-7"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</radialGradient
>
<linearGradient
id="linearGradient12030"
y2="338.82"
gradientUnits="userSpaceOnUse"
y1="286.67"
gradientTransform="matrix(.95534 0 0 .95534 -84.897 592.67)"
x2="300.27"
x1="255.32"
inkscape:collect="always"
>
<stop
id="stop4150-5"
style="stop-color:#ffffff"
offset="0"
/>
<stop
id="stop4152-5"
style="stop-color:#ffffff;stop-opacity:0"
offset="1"
/>
</linearGradient
>
</defs
>
<sodipodi:namedview
id="base"
bordercolor="#666666"
inkscape:pageshadow="2"
inkscape:window-y="-8"
pagecolor="#ffffff"
inkscape:window-height="748"
inkscape:window-maximized="1"
inkscape:zoom="0.98994949"
inkscape:window-x="-8"
showgrid="false"
borderopacity="1.0"
inkscape:current-layer="layer1"
inkscape:cx="211.24527"
inkscape:cy="230.76804"
inkscape:window-width="1280"
inkscape:pageopacity="0.0"
inkscape:document-units="px"
/>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer"
transform="translate(0 -652.36)"
>
<g
id="g11680"
transform="matrix(2.9051 0 0 2.9051 -366.51 -1771.2)"
>
<path
id="path7205"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:#999999"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.97354 0 0 .97354 -100.92 565.99)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7207"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#linearGradient11724)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.95960 0 0 .95960 -96.687 570.82)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7209"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="filter:url(#filter6126-75);fill:#ececec"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.87355 0 0 .87355 -70.55 600.6)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7211"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="filter:url(#filter6126-75);fill:#999999"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.83838 0 0 .83838 -59.869 612.77)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7213"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#linearGradient11726)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.80587 0 0 .80587 -49.992 624.02)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7215"
sodipodi:rx="53.035713"
sodipodi:ry="53.035713"
style="fill:url(#radialGradient11728)"
sodipodi:type="arc"
d="m356.79 346.11c0 29.291-23.745 53.036-53.036 53.036s-53.036-23.745-53.036-53.036 23.745-53.036 53.036-53.036 53.036 23.745 53.036 53.036z"
transform="matrix(.75825 0 0 .75825 -34.266 642.52)"
sodipodi:cy="346.11218"
sodipodi:cx="303.75"
/>
<path
id="path7217"
style="opacity:.31771;fill:url(#linearGradient12030)"
inkscape:connector-curvature="0"
d="m193.79 862.76c-13.331 0.30069-26.186 7.358-33.336 19.742-7.6903 13.32-6.7139 29.266 1.1545 41.331 0.85306-26.532 21.132-46.515 46.324-45.054 8.2589 0.47907 16.054 3.2001 22.859 7.5908-3.2578-7.4498-8.8171-13.953-16.394-18.327-6.4867-3.7451-13.625-5.4393-20.608-5.2818z"
/>
</g
>
</g
>
<metadata
>
<rdf:RDF
>
<cc:Work
>
<dc:format
>image/svg+xml</dc:format
>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
/>
<cc:license
rdf:resource="http://creativecommons.org/licenses/publicdomain/"
/>
<dc:publisher
>
<cc:Agent
rdf:about="http://openclipart.org/"
>
<dc:title
>Openclipart</dc:title
>
</cc:Agent
>
</dc:publisher
>
<dc:title
>glossy yellow button</dc:title
>
<dc:date
>2011-02-26T02:58:54</dc:date
>
<dc:description
/>
<dc:source
>https://openclipart.org/detail/122755/glossy-yellow-button-by-ricardomaia</dc:source
>
<dc:creator
>
<cc:Agent
>
<dc:title
>ricardomaia</dc:title
>
</cc:Agent
>
</dc:creator
>
<dc:subject
>
<rdf:Bag
>
<rdf:li
>button</rdf:li
>
<rdf:li
>glass</rdf:li
>
<rdf:li
>glossy</rdf:li
>
</rdf:Bag
>
</dc:subject
>
</cc:Work
>
<cc:License
rdf:about="http://creativecommons.org/licenses/publicdomain/"
>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks"
/>
</cc:License
>
</rdf:RDF
>
</metadata
>
</svg
>

After

Width:  |  Height:  |  Size: 8.8 KiB

View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bm7fdf52fc6ee"
path="res://.godot/imported/glossy-yellow-button.svg-0c567d7973444f06bc2b43b726033484.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Art/glossy-yellow-button.svg"
dest_files=["res://.godot/imported/glossy-yellow-button.svg-0c567d7973444f06bc2b43b726033484.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

View file

@ -1 +0,0 @@
<svg height="128" width="128" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="124" height="124" rx="14" fill="#363d52" stroke="#212532" stroke-width="4"/><g transform="scale(.101) translate(122 122)"><g fill="#fff"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 813 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H447l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c3 34 55 34 58 0v-86c-3-34-55-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 950 B

BIN
hamncheese/Art/toast-128.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://diat4mmfgaiy4"
path="res://.godot/imported/toast-128.png-fb1cbd5741717a5ad139f5f8fe590afd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Art/toast-128.png"
dest_files=["res://.godot/imported/toast-128.png-fb1cbd5741717a5ad139f5f8fe590afd.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

164
hamncheese/Art/toast.svg Normal file
View file

@ -0,0 +1,164 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:ns1="http://sozi.baierouge.fr"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:dc="http://purl.org/dc/elements/1.1/"
id="svg2"
sodipodi:docname="toast.svg"
viewBox="0 0 670.72 714.6"
version="1.1"
inkscape:version="0.48.4 r9939"
>
<sodipodi:namedview
id="base"
bordercolor="#666666"
inkscape:pageshadow="2"
inkscape:window-y="-8"
fit-margin-left="0"
pagecolor="#ffffff"
inkscape:window-height="961"
inkscape:window-maximized="1"
inkscape:zoom="0.41864952"
inkscape:window-x="-8"
showgrid="false"
borderopacity="1.0"
inkscape:current-layer="layer1"
inkscape:cx="361.89377"
inkscape:cy="395.4022"
fit-margin-top="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1280"
inkscape:pageopacity="0.0"
inkscape:document-units="px"
/>
<g
id="layer1"
inkscape:label="Livello 1"
inkscape:groupmode="layer"
transform="translate(-36.678 -168.88)"
>
<g
id="g3801"
transform="matrix(.78632 0 0 .78632 66.816 162.51)"
>
<g
id="g3792"
transform="translate(-4,84)"
>
<path
id="path3794"
d="m67.812 415.97c-5.9745 23.116 10.084 59.36 41.656 89.469l200.53 191.22c38.385 36.605 84.745 49.876 103.94 29.75l254.09-266.44c7.8078-8.1874 9.8705-20.594 7-34.906-1.2909 4.975-3.6007 9.3417-7 12.906l-254.09 266.44c-19.2 20.12-65.55 6.85-103.94-29.75l-200.53-191.22c-22.771-21.72-37.472-46.6-41.658-67.47z"
style="fill:#cb8535"
inkscape:connector-curvature="0"
/>
<rect
id="rect3796"
ry="50.199"
style="fill:#ecd7ba"
rx="95.742"
transform="matrix(.72368 .69013 -.69013 .72368 0 0)"
height="468.57"
width="468.57"
y="-194.27"
x="317.12"
/>
</g
>
<path
id="rect3775"
style="stroke:#ffd5d5;fill:#ffaaaa"
d="m458.41-146.5c68.731 11.391 139.19-22.861 232.65-24.283 41.889-0.6375 158.3-58.479 129.46 15.549-28.115 72.19 37.635 7.958 26.694 90.373l-21.04 158.59 46.89 177.94c8.9913 34.117-103.43 9.8009-137.56 50.402-90.383 107.51-101.79-4.4032-152.69-6.6048-108-4.6718-177.99-36.415-195.68-8.2272-10.374 16.523-36.131-5.6523-35.007-43.98l10.547-359.56c0.81545-27.798 43.415-58.872 95.742-50.199z"
sodipodi:nodetypes="sssscsssssss"
transform="matrix(.72368 .69013 -.69013 .72368 0 0)"
inkscape:connector-curvature="0"
/>
<path
id="rect3779"
style="fill:#f8e7bb"
d="m398.66 95.145h274.05c52.461 0 42.012 107.12 55.216 130.13l51.06 89.004c77.52 135.12-92.23 153.58-115.32 155.44l-60.505 4.8765-156.23 30.893c-51.46 10.18-136.11 141.41-142.96 3.45l-7.42-149.37c-1.36-27.47 49.65-264.42 102.11-264.42z"
sodipodi:nodetypes="ssssscssss"
inkscape:connector-curvature="0"
transform="rotate(21.162)"
/>
<g
id="g3767"
>
<path
id="rect3756"
style="fill:#cb8535"
inkscape:connector-curvature="0"
d="m67.812 415.97c-5.9745 23.116 10.084 59.36 41.656 89.469l200.53 191.22c38.385 36.605 84.745 49.876 103.94 29.75l254.09-266.44c7.8078-8.1874 9.8705-20.594 7-34.906-1.2909 4.975-3.6007 9.3417-7 12.906l-254.09 266.44c-19.2 20.12-65.55 6.85-103.94-29.75l-200.53-191.22c-22.771-21.72-37.472-46.6-41.658-67.47z"
/>
<rect
id="rect3762"
style="fill:#ecd7ba"
transform="matrix(.72368 .69013 -.69013 .72368 0 0)"
rx="95.742"
ry="50.199"
height="468.57"
width="468.57"
y="-194.27"
x="317.12"
/>
</g
>
</g
>
</g
>
<metadata
>
<rdf:RDF
>
<cc:Work
>
<dc:format
>image/svg+xml</dc:format
>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage"
/>
<cc:license
rdf:resource="http://creativecommons.org/licenses/publicdomain/"
/>
<dc:publisher
>
<cc:Agent
rdf:about="http://openclipart.org/"
>
<dc:title
>Openclipart</dc:title
>
</cc:Agent
>
</dc:publisher
>
</cc:Work
>
<cc:License
rdf:about="http://creativecommons.org/licenses/publicdomain/"
>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution"
/>
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks"
/>
</cc:License
>
</rdf:RDF
>
</metadata
>
</svg
>

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -2,16 +2,16 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://b7clpxetrjyc5"
path="res://.godot/imported/icon.svg-750f30f6912a3e29e1f50a8e1a7e4a3e.ctex"
uid="uid://lgaqc3pc7o8d"
path="res://.godot/imported/toast.svg-df0242f2f5561416d0b78ab190daa53f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Art/icon.svg"
dest_files=["res://.godot/imported/icon.svg-750f30f6912a3e29e1f50a8e1a7e4a3e.ctex"]
source_file="res://Art/toast.svg"
dest_files=["res://.godot/imported/toast.svg-df0242f2f5561416d0b78ab190daa53f.ctex"]
[params]

View file

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://0gb8db7vlk1d"]
[gd_scene load_steps=3 format=3 uid="uid://0gb8db7vlk1d"]
[ext_resource type="Script" path="res://Scripts/about.gd" id="1_00jo2"]
[ext_resource type="Texture2D" uid="uid://diat4mmfgaiy4" path="res://Art/toast-128.png" id="2_7edtr"]
[node name="AboutWindowControl" type="Control"]
layout_mode = 3
@ -14,8 +15,47 @@ script = ExtResource("1_00jo2")
[node name="AboutWindow" type="Window" parent="."]
unique_name_in_owner = true
title = "About"
initial_position = 1
size = Vector2i(200, 200)
initial_position = 2
size = Vector2i(500, 240)
unresizable = true
[node name="VBoxContainer" type="VBoxContainer" parent="AboutWindow"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HBoxContainer" type="HBoxContainer" parent="AboutWindow/VBoxContainer"]
layout_mode = 2
[node name="RichTextLabel" type="RichTextLabel" parent="AboutWindow/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
bbcode_enabled = true
text = "[center]
[b]Ham'n'Cheese[/b]
[i]Open Source Peer-to-Peer VPN Client[/i]
Copyright 2023-2024 Scott C. Duensing
2023-2024 [url]Kangaroo Punch Studios[/url]
[/center]
"
fit_content = true
[node name="TextureRect" type="TextureRect" parent="AboutWindow/VBoxContainer/HBoxContainer"]
layout_mode = 2
texture = ExtResource("2_7edtr")
stretch_mode = 3
[node name="Button" type="Button" parent="AboutWindow/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
text = "Close"
[connection signal="close_requested" from="AboutWindow" to="." method="_on_about_window_close_requested"]
[connection signal="meta_clicked" from="AboutWindow/VBoxContainer/HBoxContainer/RichTextLabel" to="." method="_on_rich_text_label_meta_clicked"]
[connection signal="pressed" from="AboutWindow/VBoxContainer/Button" to="." method="_on_button_pressed"]

View file

@ -0,0 +1,60 @@
[gd_scene load_steps=2 format=3 uid="uid://d07wdskvuouof"]
[ext_resource type="Script" path="res://Scripts/disclaimer.gd" id="1_ryu3b"]
[node name="DisclaimerControlNode" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_ryu3b")
[node name="DisclaimerWindow" type="Window" parent="."]
unique_name_in_owner = true
title = "Disclaimer"
initial_position = 2
size = Vector2i(300, 340)
exclusive = true
unresizable = true
[node name="MarginContainer" type="MarginContainer" parent="DisclaimerWindow"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_left = 20
theme_override_constants/margin_top = 20
theme_override_constants/margin_right = 20
theme_override_constants/margin_bottom = 20
[node name="VBoxContainer" type="VBoxContainer" parent="DisclaimerWindow/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="RichTextLabel" type="RichTextLabel" parent="DisclaimerWindow/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
bbcode_enabled = true
text = "[center][font_size=24][bgcolor=\"black\"][color=\"red\"]NOTICE![/color][/bgcolor][/font_size]
This software is an alpha release.
It is not bug free.
It is not feature complete.
It is intended for testing only.
Do not be surprised
if it scares your cat.[/center]"
[node name="Button" type="Button" parent="DisclaimerWindow/MarginContainer/VBoxContainer"]
layout_mode = 2
text = "I Read and Understand"
[connection signal="close_requested" from="DisclaimerWindow" to="." method="_on_disclaimer_window_close_requested"]
[connection signal="pressed" from="DisclaimerWindow/MarginContainer/VBoxContainer/Button" to="." method="_on_button_pressed"]

View file

@ -1,7 +1,10 @@
[gd_scene load_steps=2 format=3 uid="uid://ncoejgdv7u3s"]
[gd_scene load_steps=3 format=3 uid="uid://ncoejgdv7u3s"]
[ext_resource type="Script" path="res://Scripts/manual.gd" id="1_2s7bw"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yj1kx"]
bg_color = Color(0, 0, 0, 1)
[node name="ManualWindowControl" type="Control"]
layout_mode = 3
anchors_preset = 15
@ -15,6 +18,34 @@ script = ExtResource("1_2s7bw")
unique_name_in_owner = true
title = "Manual"
initial_position = 1
size = Vector2i(400, 400)
size = Vector2i(450, 200)
[node name="VBoxContainer" type="VBoxContainer" parent="ManualWindow"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="RichTextLabel" type="RichTextLabel" parent="ManualWindow/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/normal = SubResource("StyleBoxFlat_yj1kx")
bbcode_enabled = true
text = "[center]
[i][color=gray]
The instruction manual will eventually be here.
[/color][/i]
[/center]
"
fit_content = true
[node name="Button" type="Button" parent="ManualWindow/VBoxContainer"]
layout_mode = 2
text = "Close"
[connection signal="close_requested" from="ManualWindow" to="." method="_on_manual_window_close_requested"]
[connection signal="pressed" from="ManualWindow/VBoxContainer/Button" to="." method="_on_button_pressed"]

View file

@ -25,3 +25,11 @@ extends Control
func _on_about_window_close_requested():
about_window.visible = false
func _on_button_pressed():
about_window.visible = false
func _on_rich_text_label_meta_clicked(_meta):
OS.shell_open("https://kangaroopunch.com")

View file

@ -0,0 +1,47 @@
#
# Ham'n'Cheese
# Copyright (C) 2023-2024 Scott Duensing <scott@kangaroopunch.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>
#
extends Control
signal _disclaimer_closed
@onready var disclaimer_window = %DisclaimerWindow
var _result = false
func _on_disclaimer_window_close_requested():
_result = false
_disclaimer_closed.emit()
func _on_button_pressed():
_result = true
_disclaimer_closed.emit()
func show_disclaimer():
Disclaimer.disclaimer_window.visible = true
Disclaimer.disclaimer_window.move_to_center()
await _disclaimer_closed
Disclaimer.disclaimer_window.visible = false
return _result

View file

@ -18,8 +18,7 @@
# Things to do:
# - Get the rest of the edge settings into the dialog.
# - Rearrange settings dialog into simple/advanced.
# - Hash community and password together so more than one network on a supernode can have the same network name.
# - Find non-sleazy way to handle registry editing for file access on Windows.
# - Crazy amount of other stuff.
#
@ -41,6 +40,7 @@ const FILE_ID_EXIT = 2
const HELP_ID_ABOUT = 0
const HELP_ID_MANUAL = 1
const BUTTON_NONE = 0
const BUTTON_CHAT = 1
@ -49,6 +49,11 @@ const BUTTON_CHAT = 1
@onready var peers_tree = %PeersTree
var _icon_chat
var _icon_red
var _icon_yellow
var _icon_green
var _ip := ""
@ -75,31 +80,21 @@ func _data_recieved(type, data):
func _draw_tree():
# Redraw peer tree.
var icon_chat = load("res://Art/chat-circle-dots-fill.svg")
peers_tree.clear()
peers_tree.columns = 1
var root = peers_tree.create_item()
for peer in Peers.peerArray:
if peer["online"] or true:
var debug = str(peer["online"]) + " "
if peer["tcp"] == null:
debug = debug + "NULL"
else:
match peer["tcp"].get_status():
StreamPeerTCP.STATUS_NONE:
debug = debug + "None"
StreamPeerTCP.STATUS_CONNECTING:
debug = debug + "Connecting"
StreamPeerTCP.STATUS_CONNECTED:
debug = debug + "Connected " + peer["tcp"].get_connected_host()
StreamPeerTCP.STATUS_ERROR:
debug = debug + "Error"
_:
debug = debug + "Unknown"
var child = peers_tree.create_item(root)
child.set_meta("peer", peer["uuid"])
child.set_text(0, peer["user"] + " (" + peer["ip"] + ") " + debug)
child.add_button(0, icon_chat, BUTTON_CHAT)
child.set_text(0, peer["user"] + " (" + peer["ip"] + ")")
if peer["online"] == false:
child.add_button(0, _icon_red, BUTTON_NONE, true, "Offline")
else:
if peer["_type"] == "p2p":
child.add_button(0, _icon_green, BUTTON_NONE, true, "Peer-to-Peer")
else:
child.add_button(0, _icon_yellow, BUTTON_NONE, true, "Proxied")
func _go_offline():
@ -163,6 +158,10 @@ func _on_peers_tree_button_clicked(item, _column, id, mouse_button_index):
func _ready():
_icon_chat = Util.load_icon("res://Art/chat-circle-dots-fill.svg")
_icon_red = Util.load_icon("res://Art/glossy-red-button.svg")
_icon_yellow = Util.load_icon("res://Art/glossy-yellow-button.svg")
_icon_green = Util.load_icon("res://Art/glossy-green-button.svg")
About.about_window.visible = false
Manual.manual_window.visible = false
Settings.startup()
@ -178,7 +177,10 @@ func _ready():
Edge.startup()
Edge.data_recieved.connect(_data_recieved)
Edge.network_died.connect(_network_died)
Chat.open(null) # Debug
# TESTING RELEASES ONLY!
if await Disclaimer.show_disclaimer() == false:
_shutdown()
#Chat.open(null) # Debug
func _show_exit_dialog():

View file

@ -25,3 +25,7 @@ extends Control
func _on_manual_window_close_requested():
manual_window.visible = false
func _on_button_pressed():
manual_window.visible = false

View file

@ -80,3 +80,10 @@ func ip_string_to_int(ip: String):
result += ip.get_slice(".", 2).to_int() * 256
result += ip.get_slice(".", 3).to_int()
return result
func load_icon(filename: String, width_height: int = 32):
var compressed_texture = load(filename)
var image = compressed_texture.get_image()
image.resize(width_height, width_height, Image.INTERPOLATE_LANCZOS)
return ImageTexture.create_from_image(image)

View file

@ -12,13 +12,15 @@ config_version=5
config/name="Ham'n'Cheese"
config/description="Open Source Peer-to-Peer VPN Client"
config/version="1.0.0"
run/main_scene="res://Scenes/main.tscn"
config/use_custom_user_dir=true
config/custom_user_dir_name="Kangaroo Punch/HamNCheese"
config/auto_accept_quit=false
config/features=PackedStringArray("4.2", "GL Compatibility")
run/low_processor_mode=true
config/icon="res://Art/icon.svg"
boot_splash/show_image=false
config/icon="res://Art/toast.svg"
[autoload]
@ -32,6 +34,7 @@ Settings="*res://Scenes/settings.tscn"
About="*res://Scenes/about.tscn"
Manual="*res://Scenes/manual.tscn"
Chat="*res://Scenes/chat.tscn"
Disclaimer="*res://Scenes/disclaimer.tscn"
[display]