Add outline, shadow, gradient and alignment to Text object (#1096)
BIN
Binaries/Output/Release_Windows/res/actions/textAlign.png
Normal file
After Width: | Height: | Size: 437 B |
149
Binaries/Output/Release_Windows/res/actions/textAlign.svg
Normal file
@@ -0,0 +1,149 @@
|
||||
<?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="50"
|
||||
height="50"
|
||||
viewBox="0 0 50.000001 50.000001"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="textAlign.svg"
|
||||
inkscape:export-filename="/home/matthias/Programme/GD_MyFork/GDevelop/Binaries/Output/Release_Windows/res/actions/textAlign24.png"
|
||||
inkscape:export-xdpi="43.199955"
|
||||
inkscape:export-ydpi="43.199955">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="2.8284271"
|
||||
inkscape:cx="22.973513"
|
||||
inkscape:cy="15.15888"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:snap-page="true"
|
||||
inkscape:snap-text-baseline="true"
|
||||
inkscape:snap-object-midpoints="true"
|
||||
inkscape:snap-center="true"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<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="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1002.3622)">
|
||||
<rect
|
||||
style="opacity:1;fill:#d9d9d9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4138"
|
||||
width="50"
|
||||
height="50.000019"
|
||||
x="0"
|
||||
y="1002.3622" />
|
||||
<rect
|
||||
style="opacity:1;fill:#f9f9f9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4214"
|
||||
width="50"
|
||||
height="16.964285"
|
||||
x="0"
|
||||
y="1002.3622" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4136"
|
||||
width="22.857141"
|
||||
height="3.4043367"
|
||||
x="13.571429"
|
||||
y="1004.6759" />
|
||||
<rect
|
||||
y="1008.9691"
|
||||
x="15.714286"
|
||||
height="3.4043367"
|
||||
width="18.571428"
|
||||
id="rect4180"
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4182"
|
||||
width="30.357141"
|
||||
height="3.4043367"
|
||||
x="9.8214293"
|
||||
y="1013.3254" />
|
||||
<rect
|
||||
y="1021.3353"
|
||||
x="2.5464084"
|
||||
height="3.4043367"
|
||||
width="21.696428"
|
||||
id="rect4191"
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4193"
|
||||
width="25.714285"
|
||||
height="3.4043367"
|
||||
x="2.5464084"
|
||||
y="1025.6285" />
|
||||
<rect
|
||||
y="1029.9847"
|
||||
x="2.5464084"
|
||||
height="3.4043367"
|
||||
width="16.964285"
|
||||
id="rect4195"
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
y="1035.3979"
|
||||
x="0"
|
||||
height="16.964285"
|
||||
width="50"
|
||||
id="rect4216"
|
||||
style="opacity:1;fill:#f9f9f9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4199"
|
||||
width="25.714285"
|
||||
height="3.4043367"
|
||||
x="22.496922"
|
||||
y="1038.3414" />
|
||||
<rect
|
||||
y="1042.6346"
|
||||
x="29.907637"
|
||||
height="3.4043367"
|
||||
width="18.30357"
|
||||
id="rect4201"
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4203"
|
||||
width="22.857141"
|
||||
height="3.4043367"
|
||||
x="25.354065"
|
||||
y="1046.9908" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.7 KiB |
BIN
Binaries/Output/Release_Windows/res/actions/textAlign24.png
Normal file
After Width: | Height: | Size: 488 B |
BIN
Binaries/Output/Release_Windows/res/actions/textGradient.png
Normal file
After Width: | Height: | Size: 334 B |
96
Binaries/Output/Release_Windows/res/actions/textGradient.svg
Normal file
@@ -0,0 +1,96 @@
|
||||
<?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="50"
|
||||
height="50"
|
||||
viewBox="0 0 50.000001 50.000001"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="textGradient.svg"
|
||||
inkscape:export-filename="/home/matthias/Programme/GD_MyFork/GDevelop/Binaries/Output/Release_Windows/res/actions/textGradient.png"
|
||||
inkscape:export-xdpi="28.799999"
|
||||
inkscape:export-ydpi="28.799999">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient4183">
|
||||
<stop
|
||||
style="stop-color:#f00000;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop4185" />
|
||||
<stop
|
||||
id="stop4191"
|
||||
offset="0.5"
|
||||
style="stop-color:#00f02f;stop-opacity:1" />
|
||||
<stop
|
||||
style="stop-color:#1400f0;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop4187" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient4183"
|
||||
id="linearGradient4189"
|
||||
x1="24.945677"
|
||||
y1="1050.0177"
|
||||
x2="24.945677"
|
||||
y2="1004.6278"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="2.6657926"
|
||||
inkscape:cx="14.118182"
|
||||
inkscape:cy="12.090551"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<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="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1002.3622)">
|
||||
<g
|
||||
style="font-style:normal;font-weight:normal;font-size:62.55903244px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient4189);fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
id="text4176">
|
||||
<path
|
||||
d="m 3.9840758,1004.5593 42.0318502,0 0,8.889 -15.12047,0 0,36.7167 -11.760365,0 0,-36.7167 -15.1510152,0 0,-8.889 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:62.55903244px;line-height:125%;font-family:Sans;-inkscape-font-specification:'Sans, Bold';text-align:start;writing-mode:lr-tb;text-anchor:start;fill-opacity:1;fill:url(#linearGradient4189)"
|
||||
id="path4181" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.3 KiB |
BIN
Binaries/Output/Release_Windows/res/actions/textGradient24.png
Normal file
After Width: | Height: | Size: 400 B |
BIN
Binaries/Output/Release_Windows/res/actions/textOutline.png
Normal file
After Width: | Height: | Size: 722 B |
108
Binaries/Output/Release_Windows/res/actions/textOutline.svg
Normal file
@@ -0,0 +1,108 @@
|
||||
<?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="14.111111mm"
|
||||
height="14.111111mm"
|
||||
viewBox="0 0 49.999998 49.999998"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="textOutline.svg"
|
||||
inkscape:export-filename="/home/matthias/Programme/GD_MyFork/GDevelop/Binaries/Output/Release_Windows/res/actions/textOutline.png"
|
||||
inkscape:export-xdpi="28.799999"
|
||||
inkscape:export-ydpi="28.799999">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="7.9195959"
|
||||
inkscape:cx="2.2294479"
|
||||
inkscape:cy="21.435539"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<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="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-240.17857,-248.6122)">
|
||||
<g
|
||||
id="g4170"
|
||||
transform="matrix(1.237589,0,0,1.237589,-195.27257,-62.678437)">
|
||||
<g
|
||||
id="text4151"
|
||||
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1">
|
||||
<path
|
||||
d="m 267.18945,255.19531 c -4.41577,0 -8.17239,1.55302 -10.89257,4.58985 -2.71003,3.02715 -4.03125,7.09658 -4.03126,11.95507 0,4.85851 1.32124,8.92792 4.03126,11.95508 a 1.40742,1.40742 0 0 0 0.002,0.002 c 2.721,3.02332 6.47633,4.56836 10.89062,4.56835 4.40227,0 8.1459,-1.54585 10.85352,-4.57031 a 1.40742,1.40742 0 0 0 0.002,-0.004 c 2.70722,-3.03843 4.0293,-7.10498 4.0293,-11.95118 0,-4.85677 -1.32123,-8.92435 -4.0293,-11.95117 -2.7068,-3.03795 -6.45171,-4.59375 -10.85547,-4.59375 z m 0,6.01953 c 2.51491,0 4.26144,0.83301 5.6875,2.66016 a 1.40742,1.40742 0 0 0 0.004,0.004 c 1.4365,1.82625 2.2168,4.39026 2.2168,7.86132 0,3.4573 -0.77944,6.01445 -2.2168,7.8418 a 1.40742,1.40742 0 0 0 -0.004,0.004 c -1.42606,1.82714 -3.17259,2.66015 -5.6875,2.66015 -2.51489,0 -4.27977,-0.83734 -5.73242,-2.66992 -1.43509,-1.82704 -2.21484,-4.3815 -2.21484,-7.83594 0,-3.46819 0.7806,-6.0295 2.21484,-7.85546 1.45265,-1.83258 3.21753,-2.66993 5.73242,-2.66993 z"
|
||||
id="path4166"
|
||||
style="fill:#ff4e4e;fill-opacity:1"
|
||||
inkscape:original="M 267.18945 256.60352 C 263.08789 256.60352 259.80664 257.97721 257.3457 260.72461 C 254.89779 263.45898 253.67383 267.13086 253.67383 271.74023 C 253.67383 276.34961 254.89779 280.02148 257.3457 282.75586 C 259.80664 285.49023 263.08789 286.85742 267.18945 286.85742 C 271.27799 286.85742 274.54622 285.49023 276.99414 282.75586 C 279.44205 280.00846 280.66602 276.33659 280.66602 271.74023 C 280.66602 267.13086 279.44205 263.45898 276.99414 260.72461 C 274.54622 257.97721 271.27799 256.60352 267.18945 256.60352 z M 267.18945 259.80664 C 270.05404 259.80664 272.31966 260.87435 273.98633 263.00977 C 275.66601 265.14519 276.50586 268.05534 276.50586 271.74023 C 276.50586 275.41211 275.66601 278.31575 273.98633 280.45117 C 272.31966 282.58659 270.05404 283.6543 267.18945 283.6543 C 264.32487 283.6543 262.04623 282.58659 260.35352 280.45117 C 258.67383 278.31575 257.83398 275.41211 257.83398 271.74023 C 257.83398 268.05534 258.67383 265.14519 260.35352 263.00977 C 262.04623 260.87435 264.32487 259.80664 267.18945 259.80664 z "
|
||||
inkscape:radius="1.4072793"
|
||||
sodipodi:type="inkscape:offset" />
|
||||
<path
|
||||
d="m 267.18945,256.60352 c -4.10156,0 -7.38281,1.37369 -9.84375,4.12109 -2.44791,2.73437 -3.67187,6.40625 -3.67187,11.01562 0,4.60938 1.22396,8.28125 3.67187,11.01563 2.46094,2.73437 5.74219,4.10156 9.84375,4.10156 4.08854,0 7.35677,-1.36719 9.80469,-4.10156 2.44791,-2.7474 3.67188,-6.41927 3.67188,-11.01563 0,-4.60937 -1.22397,-8.28125 -3.67188,-11.01562 -2.44792,-2.7474 -5.71615,-4.12109 -9.80469,-4.12109 z m 0,3.20312 c 2.86459,0 5.13021,1.06771 6.79688,3.20313 1.67968,2.13542 2.51953,5.04557 2.51953,8.73046 0,3.67188 -0.83985,6.57552 -2.51953,8.71094 -1.66667,2.13542 -3.93229,3.20313 -6.79688,3.20313 -2.86458,0 -5.14322,-1.06771 -6.83593,-3.20313 -1.67969,-2.13542 -2.51954,-5.03906 -2.51954,-8.71094 0,-3.68489 0.83985,-6.59504 2.51954,-8.73046 1.69271,-2.13542 3.97135,-3.20313 6.83593,-3.20313 z"
|
||||
id="path4162"
|
||||
inkscape:original="M 267.18945 256.60352 C 263.08789 256.60352 259.80664 257.97721 257.3457 260.72461 C 254.89779 263.45898 253.67383 267.13086 253.67383 271.74023 C 253.67383 276.34961 254.89779 280.02148 257.3457 282.75586 C 259.80664 285.49023 263.08789 286.85742 267.18945 286.85742 C 271.27799 286.85742 274.54622 285.49023 276.99414 282.75586 C 279.44205 280.00846 280.66602 276.33659 280.66602 271.74023 C 280.66602 267.13086 279.44205 263.45898 276.99414 260.72461 C 274.54622 257.97721 271.27799 256.60352 267.18945 256.60352 z M 267.18945 259.80664 C 270.05404 259.80664 272.31966 260.87435 273.98633 263.00977 C 275.66601 265.14519 276.50586 268.05534 276.50586 271.74023 C 276.50586 275.41211 275.66601 278.31575 273.98633 280.45117 C 272.31966 282.58659 270.05404 283.6543 267.18945 283.6543 C 264.32487 283.6543 262.04623 282.58659 260.35352 280.45117 C 258.67383 278.31575 257.83398 275.41211 257.83398 271.74023 C 257.83398 268.05534 258.67383 265.14519 260.35352 263.00977 C 262.04623 260.87435 264.32487 259.80664 267.18945 259.80664 z "
|
||||
inkscape:radius="0"
|
||||
sodipodi:type="inkscape:offset" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
id="g4207"
|
||||
transform="matrix(1.3875621,0,0,1.3875621,-102.77149,-106.04052)">
|
||||
<g
|
||||
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#a146ff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
id="g4201">
|
||||
<path
|
||||
d="m 262.95117,256.34375 a 2.6884939,2.6884939 0 0 0 -2.51172,1.72852 l -11.13281,29.16015 a 2.6884939,2.6884939 0 0 0 2.51172,3.64649 l 4.16016,0 a 2.6884939,2.6884939 0 0 0 2.5332,-1.78711 l 2.02148,-5.69336 9.34766,0 2.02148,5.69336 a 2.6884939,2.6884939 0 0 0 2.53321,1.78711 l 4.10156,0 a 2.6884939,2.6884939 0 0 0 2.51172,-3.64453 l -11.11328,-29.16016 a 2.6884939,2.6884939 0 0 0 -2.51172,-1.73047 l -4.47266,0 z m 2.23047,14.33008 1.50586,4.06836 -3.00586,0 1.5,-4.06836 z"
|
||||
id="path4205"
|
||||
style="fill:#a146ff;fill-opacity:1"
|
||||
inkscape:original="M 262.95117 259.03125 L 251.81836 288.19141 L 255.97852 288.19141 L 258.63477 280.71094 L 271.7793 280.71094 L 274.43555 288.19141 L 278.53711 288.19141 L 267.42383 259.03125 L 262.95117 259.03125 z M 265.17773 262.91797 L 270.54883 277.42969 L 259.82617 277.42969 L 265.17773 262.91797 z "
|
||||
inkscape:radius="2.688225"
|
||||
sodipodi:type="inkscape:offset" />
|
||||
</g>
|
||||
<g
|
||||
id="text4194"
|
||||
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1">
|
||||
<path
|
||||
id="path4199"
|
||||
d="m 265.17857,262.91882 -5.35156,14.51172 10.72266,0 -5.3711,-14.51172 z m -2.22656,-3.88672 4.47266,0 11.11328,29.16016 -4.10156,0 -2.65625,-7.48047 -13.14454,0 -2.65625,7.48047 -4.16015,0 11.13281,-29.16016 z"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 8.4 KiB |
BIN
Binaries/Output/Release_Windows/res/actions/textOutline24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Binaries/Output/Release_Windows/res/actions/textPadding.png
Normal file
After Width: | Height: | Size: 392 B |
161
Binaries/Output/Release_Windows/res/actions/textPadding.svg
Normal file
@@ -0,0 +1,161 @@
|
||||
<?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="14.111111mm"
|
||||
height="14.111111mm"
|
||||
viewBox="0 0 49.999998 49.999998"
|
||||
id="svg4259"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
inkscape:export-filename="/home/matthias/Programme/GD_MyFork/GDevelop/Binaries/Output/Release_Windows/res/actions/textPadding24.png"
|
||||
inkscape:export-xdpi="43.200001"
|
||||
inkscape:export-ydpi="43.200001"
|
||||
sodipodi:docname="textPadding.svg">
|
||||
<defs
|
||||
id="defs4261" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="11.2"
|
||||
inkscape:cx="19.874424"
|
||||
inkscape:cy="25.86598"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4815" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata4264">
|
||||
<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="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-277.14285,-263.79077)">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-weight:normal;font-size:29.2100544px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
x="293.22153"
|
||||
y="299.43787"
|
||||
id="text4809"
|
||||
sodipodi:linespacing="125%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4811"
|
||||
x="293.22153"
|
||||
y="299.43787">T</tspan></text>
|
||||
<rect
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4813"
|
||||
width="48.394211"
|
||||
height="48.01968"
|
||||
x="277.94574"
|
||||
y="264.78091" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:1.7467221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path4819"
|
||||
sodipodi:sides="3"
|
||||
sodipodi:cx="-289.14279"
|
||||
sodipodi:cy="289.79077"
|
||||
sodipodi:r1="8"
|
||||
sodipodi:r2="4"
|
||||
sodipodi:arg1="0"
|
||||
sodipodi:arg2="1.0471976"
|
||||
inkscape:flatsided="false"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m -281.14279,289.79077 -6,3.4641 -6,3.4641 0,-6.9282 0,-6.9282 6,3.4641 z"
|
||||
inkscape:transform-center-x="0.43567199"
|
||||
transform="matrix(-0.57029112,0,0,0.57471928,119.22654,122.88529)" />
|
||||
<rect
|
||||
y="275.58447"
|
||||
x="288.83185"
|
||||
height="26.41254"
|
||||
width="26.621983"
|
||||
id="rect4821"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
transform="matrix(0.57029112,0,0,0.57471928,484.95084,122.88529)"
|
||||
inkscape:transform-center-x="-0.43567359"
|
||||
d="m -281.14279,289.79077 -6,3.4641 -6,3.4641 0,-6.9282 0,-6.9282 6,3.4641 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="false"
|
||||
sodipodi:arg2="1.0471976"
|
||||
sodipodi:arg1="0"
|
||||
sodipodi:r2="4"
|
||||
sodipodi:r1="8"
|
||||
sodipodi:cy="289.79077"
|
||||
sodipodi:cx="-289.14279"
|
||||
sodipodi:sides="3"
|
||||
id="path4823"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:1.7467221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
sodipodi:type="star" />
|
||||
<path
|
||||
transform="matrix(0,-0.57029112,-0.57471928,0,468.69119,106.13584)"
|
||||
d="m -281.14279,289.79077 -6,3.4641 -6,3.4641 0,-6.9282 0,-6.9282 6,3.4641 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="false"
|
||||
sodipodi:arg2="1.0471976"
|
||||
sodipodi:arg1="0"
|
||||
sodipodi:r2="4"
|
||||
sodipodi:r1="8"
|
||||
sodipodi:cy="289.79077"
|
||||
sodipodi:cx="-289.14279"
|
||||
sodipodi:sides="3"
|
||||
id="path4825"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:1.7467221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
sodipodi:type="star"
|
||||
inkscape:transform-center-y="-0.43566928" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:1.7467221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path4827"
|
||||
sodipodi:sides="3"
|
||||
sodipodi:cx="-289.14279"
|
||||
sodipodi:cy="289.79077"
|
||||
sodipodi:r1="8"
|
||||
sodipodi:r2="4"
|
||||
sodipodi:arg1="0"
|
||||
sodipodi:arg2="1.0471976"
|
||||
inkscape:flatsided="false"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m -281.14279,289.79077 -6,3.4641 -6,3.4641 0,-6.9282 0,-6.9282 6,3.4641 z"
|
||||
transform="matrix(0,0.57029112,-0.57471928,0,468.69119,471.52867)"
|
||||
inkscape:transform-center-y="0.4356722" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 6.2 KiB |
BIN
Binaries/Output/Release_Windows/res/actions/textPadding24.png
Normal file
After Width: | Height: | Size: 479 B |
BIN
Binaries/Output/Release_Windows/res/actions/textShadow.png
Normal file
After Width: | Height: | Size: 696 B |
100
Binaries/Output/Release_Windows/res/actions/textShadow.svg
Normal file
@@ -0,0 +1,100 @@
|
||||
<?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="14.111111mm"
|
||||
height="14.111111mm"
|
||||
viewBox="0 0 49.999998 49.999998"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
inkscape:export-filename="/home/matthias/Programme/GD_MyFork/GDevelop/Binaries/Output/Release_Windows/res/actions/textShadow.png"
|
||||
inkscape:export-xdpi="28.799999"
|
||||
inkscape:export-ydpi="28.799999"
|
||||
sodipodi:docname="textShadow.svg">
|
||||
<defs
|
||||
id="defs4">
|
||||
<filter
|
||||
inkscape:collect="always"
|
||||
style="color-interpolation-filters:sRGB"
|
||||
id="filter4928"
|
||||
x="-0.17191096"
|
||||
width="1.3438219"
|
||||
y="-0.15751788"
|
||||
height="1.3150358">
|
||||
<feGaussianBlur
|
||||
inkscape:collect="always"
|
||||
stdDeviation="2.5232967"
|
||||
id="feGaussianBlur4930" />
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="7.9195959"
|
||||
inkscape:cx="17.631096"
|
||||
inkscape:cy="15.550118"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<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="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-224.25386,-246.26047)">
|
||||
<text
|
||||
sodipodi:linespacing="125%"
|
||||
id="text4142"
|
||||
y="290.4834"
|
||||
x="233.52649"
|
||||
style="font-style:normal;font-weight:normal;font-size:52.73753738px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#2e007f;fill-opacity:0.56284156;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;filter:url(#filter4928)"
|
||||
xml:space="preserve"><tspan
|
||||
y="290.4834"
|
||||
x="233.52649"
|
||||
id="tspan4144"
|
||||
sodipodi:role="line">A</tspan></text>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-weight:normal;font-size:52.73753738px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
x="227.52649"
|
||||
y="288.4834"
|
||||
id="text4138"
|
||||
sodipodi:linespacing="125%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4140"
|
||||
x="227.52649"
|
||||
y="288.4834">A</tspan></text>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.3 KiB |
BIN
Binaries/Output/Release_Windows/res/actions/textShadow24.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
Binaries/Output/Release_Windows/res/conditions/textAlign.png
Normal file
After Width: | Height: | Size: 437 B |
149
Binaries/Output/Release_Windows/res/conditions/textAlign.svg
Normal file
@@ -0,0 +1,149 @@
|
||||
<?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="50"
|
||||
height="50"
|
||||
viewBox="0 0 50.000001 50.000001"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="textAlign.svg"
|
||||
inkscape:export-filename="/home/matthias/Programme/GD_MyFork/GDevelop/Binaries/Output/Release_Windows/res/actions/textAlign24.png"
|
||||
inkscape:export-xdpi="43.199955"
|
||||
inkscape:export-ydpi="43.199955">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="2.8284271"
|
||||
inkscape:cx="22.973513"
|
||||
inkscape:cy="15.15888"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:snap-page="true"
|
||||
inkscape:snap-text-baseline="true"
|
||||
inkscape:snap-object-midpoints="true"
|
||||
inkscape:snap-center="true"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<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="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1002.3622)">
|
||||
<rect
|
||||
style="opacity:1;fill:#d9d9d9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4138"
|
||||
width="50"
|
||||
height="50.000019"
|
||||
x="0"
|
||||
y="1002.3622" />
|
||||
<rect
|
||||
style="opacity:1;fill:#f9f9f9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4214"
|
||||
width="50"
|
||||
height="16.964285"
|
||||
x="0"
|
||||
y="1002.3622" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4136"
|
||||
width="22.857141"
|
||||
height="3.4043367"
|
||||
x="13.571429"
|
||||
y="1004.6759" />
|
||||
<rect
|
||||
y="1008.9691"
|
||||
x="15.714286"
|
||||
height="3.4043367"
|
||||
width="18.571428"
|
||||
id="rect4180"
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4182"
|
||||
width="30.357141"
|
||||
height="3.4043367"
|
||||
x="9.8214293"
|
||||
y="1013.3254" />
|
||||
<rect
|
||||
y="1021.3353"
|
||||
x="2.5464084"
|
||||
height="3.4043367"
|
||||
width="21.696428"
|
||||
id="rect4191"
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4193"
|
||||
width="25.714285"
|
||||
height="3.4043367"
|
||||
x="2.5464084"
|
||||
y="1025.6285" />
|
||||
<rect
|
||||
y="1029.9847"
|
||||
x="2.5464084"
|
||||
height="3.4043367"
|
||||
width="16.964285"
|
||||
id="rect4195"
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
y="1035.3979"
|
||||
x="0"
|
||||
height="16.964285"
|
||||
width="50"
|
||||
id="rect4216"
|
||||
style="opacity:1;fill:#f9f9f9;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4199"
|
||||
width="25.714285"
|
||||
height="3.4043367"
|
||||
x="22.496922"
|
||||
y="1038.3414" />
|
||||
<rect
|
||||
y="1042.6346"
|
||||
x="29.907637"
|
||||
height="3.4043367"
|
||||
width="18.30357"
|
||||
id="rect4201"
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<rect
|
||||
style="opacity:1;fill:#595959;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4203"
|
||||
width="22.857141"
|
||||
height="3.4043367"
|
||||
x="25.354065"
|
||||
y="1046.9908" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.7 KiB |
BIN
Binaries/Output/Release_Windows/res/conditions/textAlign24.png
Normal file
After Width: | Height: | Size: 488 B |
BIN
Binaries/Output/Release_Windows/res/conditions/textPadding.png
Normal file
After Width: | Height: | Size: 392 B |
161
Binaries/Output/Release_Windows/res/conditions/textPadding.svg
Normal file
@@ -0,0 +1,161 @@
|
||||
<?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="14.111111mm"
|
||||
height="14.111111mm"
|
||||
viewBox="0 0 49.999998 49.999998"
|
||||
id="svg4259"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
inkscape:export-filename="/home/matthias/Programme/GD_MyFork/GDevelop/Binaries/Output/Release_Windows/res/actions/textPadding24.png"
|
||||
inkscape:export-xdpi="43.200001"
|
||||
inkscape:export-ydpi="43.200001"
|
||||
sodipodi:docname="textPadding.svg">
|
||||
<defs
|
||||
id="defs4261" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="11.2"
|
||||
inkscape:cx="19.874424"
|
||||
inkscape:cy="25.86598"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4815" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata4264">
|
||||
<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="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-277.14285,-263.79077)">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-weight:normal;font-size:29.2100544px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
x="293.22153"
|
||||
y="299.43787"
|
||||
id="text4809"
|
||||
sodipodi:linespacing="125%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4811"
|
||||
x="293.22153"
|
||||
y="299.43787">T</tspan></text>
|
||||
<rect
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4813"
|
||||
width="48.394211"
|
||||
height="48.01968"
|
||||
x="277.94574"
|
||||
y="264.78091" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:1.7467221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path4819"
|
||||
sodipodi:sides="3"
|
||||
sodipodi:cx="-289.14279"
|
||||
sodipodi:cy="289.79077"
|
||||
sodipodi:r1="8"
|
||||
sodipodi:r2="4"
|
||||
sodipodi:arg1="0"
|
||||
sodipodi:arg2="1.0471976"
|
||||
inkscape:flatsided="false"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m -281.14279,289.79077 -6,3.4641 -6,3.4641 0,-6.9282 0,-6.9282 6,3.4641 z"
|
||||
inkscape:transform-center-x="0.43567199"
|
||||
transform="matrix(-0.57029112,0,0,0.57471928,119.22654,122.88529)" />
|
||||
<rect
|
||||
y="275.58447"
|
||||
x="288.83185"
|
||||
height="26.41254"
|
||||
width="26.621983"
|
||||
id="rect4821"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
transform="matrix(0.57029112,0,0,0.57471928,484.95084,122.88529)"
|
||||
inkscape:transform-center-x="-0.43567359"
|
||||
d="m -281.14279,289.79077 -6,3.4641 -6,3.4641 0,-6.9282 0,-6.9282 6,3.4641 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="false"
|
||||
sodipodi:arg2="1.0471976"
|
||||
sodipodi:arg1="0"
|
||||
sodipodi:r2="4"
|
||||
sodipodi:r1="8"
|
||||
sodipodi:cy="289.79077"
|
||||
sodipodi:cx="-289.14279"
|
||||
sodipodi:sides="3"
|
||||
id="path4823"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:1.7467221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
sodipodi:type="star" />
|
||||
<path
|
||||
transform="matrix(0,-0.57029112,-0.57471928,0,468.69119,106.13584)"
|
||||
d="m -281.14279,289.79077 -6,3.4641 -6,3.4641 0,-6.9282 0,-6.9282 6,3.4641 z"
|
||||
inkscape:randomized="0"
|
||||
inkscape:rounded="0"
|
||||
inkscape:flatsided="false"
|
||||
sodipodi:arg2="1.0471976"
|
||||
sodipodi:arg1="0"
|
||||
sodipodi:r2="4"
|
||||
sodipodi:r1="8"
|
||||
sodipodi:cy="289.79077"
|
||||
sodipodi:cx="-289.14279"
|
||||
sodipodi:sides="3"
|
||||
id="path4825"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:1.7467221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
sodipodi:type="star"
|
||||
inkscape:transform-center-y="-0.43566928" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="opacity:1;fill:none;fill-opacity:0.56284156;fill-rule:nonzero;stroke:#000000;stroke-width:1.7467221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path4827"
|
||||
sodipodi:sides="3"
|
||||
sodipodi:cx="-289.14279"
|
||||
sodipodi:cy="289.79077"
|
||||
sodipodi:r1="8"
|
||||
sodipodi:r2="4"
|
||||
sodipodi:arg1="0"
|
||||
sodipodi:arg2="1.0471976"
|
||||
inkscape:flatsided="false"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m -281.14279,289.79077 -6,3.4641 -6,3.4641 0,-6.9282 0,-6.9282 6,3.4641 z"
|
||||
transform="matrix(0,0.57029112,-0.57471928,0,468.69119,471.52867)"
|
||||
inkscape:transform-center-y="0.4356722" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 6.2 KiB |
BIN
Binaries/Output/Release_Windows/res/conditions/textPadding24.png
Normal file
After Width: | Height: | Size: 479 B |
BIN
Binaries/Output/Release_Windows/res/conditions/textShadow.png
Normal file
After Width: | Height: | Size: 621 B |
104
Binaries/Output/Release_Windows/res/conditions/textShadow.svg
Normal file
@@ -0,0 +1,104 @@
|
||||
<?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="14.111111mm"
|
||||
height="14.111111mm"
|
||||
viewBox="0 0 49.999998 49.999998"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
inkscape:export-filename="/home/matthias/Programme/GD_MyFork/GDevelop/Binaries/Output/Release_Windows/res/actions/textShadow24.png"
|
||||
inkscape:export-xdpi="43.200001"
|
||||
inkscape:export-ydpi="43.200001"
|
||||
sodipodi:docname="textShadow.svg">
|
||||
<defs
|
||||
id="defs4">
|
||||
<filter
|
||||
inkscape:collect="always"
|
||||
style="color-interpolation-filters:sRGB"
|
||||
id="filter4230"
|
||||
x="-0.096621491"
|
||||
width="1.193243"
|
||||
y="-0.088531949"
|
||||
height="1.1770639">
|
||||
<feGaussianBlur
|
||||
inkscape:collect="always"
|
||||
stdDeviation="1.4182033"
|
||||
id="feGaussianBlur4232" />
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="7.9195959"
|
||||
inkscape:cx="17.631096"
|
||||
inkscape:cy="15.489542"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<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="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-224.25386,-246.26047)">
|
||||
<g
|
||||
id="g4234"
|
||||
transform="translate(-3.7018464,-1.9999976)">
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-weight:normal;font-size:52.73753738px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#4500b8;fill-opacity:0.56284156;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;filter:url(#filter4230)"
|
||||
x="235.22833"
|
||||
y="292.4834"
|
||||
id="text4142"
|
||||
sodipodi:linespacing="125%"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan4144"
|
||||
x="235.22833"
|
||||
y="292.4834">A</tspan></text>
|
||||
<text
|
||||
sodipodi:linespacing="125%"
|
||||
id="text4138"
|
||||
y="290.4834"
|
||||
x="231.22833"
|
||||
style="font-style:normal;font-weight:normal;font-size:52.73753738px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
xml:space="preserve"><tspan
|
||||
y="290.4834"
|
||||
x="231.22833"
|
||||
id="tspan4140"
|
||||
sodipodi:role="line">A</tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.5 KiB |
BIN
Binaries/Output/Release_Windows/res/conditions/textShadow24.png
Normal file
After Width: | Height: | Size: 995 B |
@@ -59,7 +59,7 @@ void DeclareTextObjectExtension(gd::PlatformExtension& extension) {
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("relationalOperator", _("Sign of the test"))
|
||||
.AddParameter("string", _("Text to test"))
|
||||
.AddParameter("string", _("Text to compare"))
|
||||
.SetFunctionName("GetString")
|
||||
.SetManipulatedType("string")
|
||||
.SetIncludeFile("TextObject/TextObject.h");
|
||||
@@ -200,6 +200,65 @@ void DeclareTextObjectExtension(gd::PlatformExtension& extension) {
|
||||
.SetFunctionName("SetColor")
|
||||
.SetIncludeFile("TextObject/TextObject.h");
|
||||
|
||||
obj.AddAction("SetGradient",
|
||||
_("Gradient"),
|
||||
_("Change the gradient of the text."),
|
||||
_("Change gradient of _PARAM0_ to colors _PARAM1_ _PARAM2_ "
|
||||
"_PARAM3_ _PARAM4_ type _PARAM5_"),
|
||||
_("Effects"),
|
||||
"res/actions/textGradient24.png",
|
||||
"res/actions/textGradient.png")
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("stringWithSelector",
|
||||
_("Gradient type"),
|
||||
"[\"LINEAR_VERTICAL\", \"LINEAR_HORIZONTAL\"]",
|
||||
false)
|
||||
.AddParameter("color", _("First Color"))
|
||||
.AddParameter("color", _("Second Color"))
|
||||
.AddParameter("color", _("Third Color"))
|
||||
.AddParameter("color", _("Fourth Color"));
|
||||
|
||||
obj.AddAction("SetOutline",
|
||||
_("Outline"),
|
||||
_("Change the outline of the text. A thickness of 0 disables "
|
||||
"the outline."),
|
||||
_("Change outline of _PARAM0_ to color _PARAM1_ with thickness "
|
||||
"_PARAM2_"),
|
||||
_("Effects"),
|
||||
"res/actions/textOutline24.png",
|
||||
"res/actions/textOutline.png")
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("color", _("Color"))
|
||||
.AddParameter("expression", _("Thickness"));
|
||||
|
||||
obj.AddAction("SetShadow",
|
||||
_("Change Shadow"),
|
||||
_("Change the shadow of the text."),
|
||||
_("Change the shadow of _PARAM0_ to color _PARAM1_ distance "
|
||||
"_PARAM2_ blur _PARAM3_ angle _PARAM4_"),
|
||||
_("Effects/Shadow"),
|
||||
"res/actions/textShadow24.png",
|
||||
"res/actions/textShadow.png")
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("color", _("Color"))
|
||||
.AddParameter("expression", _("Distance"))
|
||||
.AddParameter("expression", _("Blur"))
|
||||
.AddParameter("expression", _("Angle"));
|
||||
|
||||
obj.AddAction("ShowShadow",
|
||||
_("Show Shadow"),
|
||||
_("Show the shadow of the text."),
|
||||
_("Show the shadow of _PARAM0_: _PARAM1_"),
|
||||
_("Effects/Shadow"),
|
||||
"res/actions/textShadow24.png",
|
||||
"res/actions/textShadow.png")
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("yesorno", _("Show the shadow"));
|
||||
|
||||
obj.AddAction("Opacity",
|
||||
_("Change Text Opacity"),
|
||||
_("Change the opacity of a Text. 0 is fully transparent, 255 "
|
||||
@@ -228,7 +287,7 @@ void DeclareTextObjectExtension(gd::PlatformExtension& extension) {
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("relationalOperator", _("Sign of the test"))
|
||||
.AddParameter("expression", _("Value to test"))
|
||||
.AddParameter("expression", _("Value to compare"))
|
||||
.SetFunctionName("GetOpacity")
|
||||
.SetManipulatedType("number")
|
||||
.SetIncludeFile("TextObject/TextObject.h");
|
||||
@@ -364,6 +423,66 @@ void DeclareTextObjectExtension(gd::PlatformExtension& extension) {
|
||||
.SetManipulatedType("number")
|
||||
.SetIncludeFile("TextObject/TextObject.h");
|
||||
|
||||
obj.AddCondition("Padding",
|
||||
_("Padding"),
|
||||
_("Compare the number of pixels around a text object. If "
|
||||
"the shadow or the outline around the text are getting "
|
||||
"cropped, raise this value."),
|
||||
_("The padding of _PARAM0_ is _PARAM1__PARAM2_"),
|
||||
_("Style"),
|
||||
"res/conditions/textPadding24.png",
|
||||
"res/conditions/textPadding.png")
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("relationalOperator", _("Sign of the test"))
|
||||
.AddParameter("expression", _("Value to test"))
|
||||
.SetManipulatedType("number");
|
||||
|
||||
obj.AddAction("SetPadding",
|
||||
_("Padding"),
|
||||
_("Set the number of pixels around a text object. If the "
|
||||
"shadow or the outline around the text are getting cropped, "
|
||||
"raise this value."),
|
||||
_("Do _PARAM1__PARAM2_ to the padding of _PARAM0_"),
|
||||
_("Style"),
|
||||
"res/actions/textPadding24.png",
|
||||
"res/actions/textPadding.png")
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("operator", _("Modification's sign"))
|
||||
.AddParameter("expression", _("Value"))
|
||||
.SetManipulatedType("number");
|
||||
|
||||
obj.AddAction("SetTextAlignment",
|
||||
_("Alignment"),
|
||||
_("Set the text alignment of a multiline text object (does not "
|
||||
"work with single line texts)."),
|
||||
_("Align _PARAM0_: _PARAM1_"),
|
||||
_("Style"),
|
||||
"res/actions/textAlign24.png",
|
||||
"res/actions/textAlign.png")
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("stringWithSelector",
|
||||
_("Alignment"),
|
||||
"[\"left\", \"center\", \"right\"]",
|
||||
false)
|
||||
.SetFunctionName("SetTextAlignment")
|
||||
.SetIncludeFile("TextObject/TextObject.h");
|
||||
|
||||
obj.AddCondition("TextAlignment",
|
||||
_("Alignment"),
|
||||
_("Compare the text alignment of a multiline text object."),
|
||||
_("The alignment of _PARAM0_ is _PARAM1__PARAM2_"),
|
||||
_("Style"),
|
||||
"res/conditions/textAlign24.png",
|
||||
"res/conditions/textAlign.png")
|
||||
|
||||
.AddParameter("object", _("Object"), "Text")
|
||||
.AddParameter("relationalOperator", _("Sign of the test"))
|
||||
.AddParameter("string", _("Text to compare"))
|
||||
.SetManipulatedType("string");
|
||||
|
||||
obj.AddAction(
|
||||
"SetWrapping",
|
||||
_("Wrapping"),
|
||||
@@ -413,6 +532,13 @@ void DeclareTextObjectExtension(gd::PlatformExtension& extension) {
|
||||
.AddParameter("expression", _("Value to test"))
|
||||
.SetManipulatedType("number");
|
||||
|
||||
obj.AddExpression("Padding",
|
||||
_("Padding"),
|
||||
_("Padding"),
|
||||
_("Style"),
|
||||
"res/actions/textPadding.png")
|
||||
.AddParameter("object", _("Object"), "Text");
|
||||
|
||||
obj.AddExpression("ScaleX",
|
||||
_("X Scale of a Text object"),
|
||||
_("X Scale of a Text object"),
|
||||
|
@@ -80,6 +80,7 @@ class TextObjectJsExtension : public gd::PlatformExtension {
|
||||
.SetFunctionName("getOpacity")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
|
||||
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::SetBold"]
|
||||
.SetFunctionName("setBold")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
@@ -101,6 +102,21 @@ class TextObjectJsExtension : public gd::PlatformExtension {
|
||||
.SetFunctionName("isWrapping")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::SetPadding"]
|
||||
.SetFunctionName("setPadding")
|
||||
.SetGetter("getPadding")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
GetAllConditionsForObject("TextObject::Text")["TextObject::Padding"]
|
||||
.SetFunctionName("getPadding")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::SetTextAlignment"]
|
||||
.SetFunctionName("setTextAlignment")
|
||||
.SetGetter("getTextAlignment")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
GetAllConditionsForObject("TextObject::Text")["TextObject::TextAlignment"]
|
||||
.SetFunctionName("getTextAlignment")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::WrappingWidth"]
|
||||
.SetFunctionName("setWrappingWidth")
|
||||
.SetGetter("getWrappingWidth")
|
||||
@@ -109,6 +125,9 @@ class TextObjectJsExtension : public gd::PlatformExtension {
|
||||
.SetFunctionName("getWrappingWidth")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
|
||||
GetAllExpressionsForObject("TextObject::Text")["Padding"]
|
||||
.SetFunctionName("getPadding")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
GetAllExpressionsForObject("TextObject::Text")["ScaleX"]
|
||||
.SetFunctionName("getScaleX")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
@@ -129,6 +148,20 @@ class TextObjectJsExtension : public gd::PlatformExtension {
|
||||
.SetFunctionName("setColor")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::SetGradient"]
|
||||
.SetFunctionName("setGradient")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::SetOutline"]
|
||||
.SetFunctionName("setOutline")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::SetShadow"]
|
||||
.SetFunctionName("setShadow")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::ShowShadow"]
|
||||
.SetFunctionName("showShadow")
|
||||
.SetIncludeFile("Extensions/TextObject/textruntimeobject.js");
|
||||
|
||||
// Unimplemented actions and conditions:
|
||||
GetAllActionsForObject("TextObject::Text")["TextObject::Font"]
|
||||
.SetFunctionName("");
|
||||
|
@@ -36,14 +36,39 @@ gdjs.TextRuntimeObjectPixiRenderer.prototype.updateStyle = function() {
|
||||
style.fontWeight = this._object._bold ? 'bold' : 'normal';
|
||||
style.fontSize = this._object._characterSize;
|
||||
style.fontFamily = fontName;
|
||||
style.fill = gdjs.rgbToHexNumber(
|
||||
this._object._color[0],
|
||||
this._object._color[1],
|
||||
this._object._color[2]
|
||||
);
|
||||
|
||||
if (this._object._useGradient){
|
||||
style.fill = this._getGradientHex();
|
||||
} else {
|
||||
style.fill = this._getColorHex();
|
||||
}
|
||||
|
||||
if (this._object._gradientType === 'LINEAR_VERTICAL'){
|
||||
style.fillGradientType = PIXI.TEXT_GRADIENT.LINEAR_VERTICAL;
|
||||
} else {
|
||||
style.fillGradientType = PIXI.TEXT_GRADIENT.LINEAR_HORIZONTAL;
|
||||
}
|
||||
|
||||
style.align = this._object._textAlign;
|
||||
style.wordWrap = this._object._wrapping;
|
||||
style.wordWrapWidth = this._object._wrappingWidth;
|
||||
style.breakWords = true;
|
||||
style.stroke = gdjs.rgbToHexNumber(
|
||||
this._object._outlineColor[0],
|
||||
this._object._outlineColor[1],
|
||||
this._object._outlineColor[2]
|
||||
);
|
||||
style.strokeThickness = this._object._outlineThickness;
|
||||
style.dropShadow = this._object._shadow;
|
||||
style.dropShadowColor = gdjs.rgbToHexNumber(
|
||||
this._object._shadowColor[0],
|
||||
this._object._shadowColor[1],
|
||||
this._object._shadowColor[2]
|
||||
);
|
||||
style.dropShadowBlur = this._object._shadowBlur;
|
||||
style.dropShadowAngle = this._object._shadowAngle;
|
||||
style.dropShadowDistance = this._object._shadowDistance;
|
||||
style.padding = this._object._padding;
|
||||
this.updatePosition();
|
||||
|
||||
// Manually ask the PIXI object to re-render as we changed a style property
|
||||
@@ -77,6 +102,27 @@ gdjs.TextRuntimeObjectPixiRenderer.prototype.getHeight = function() {
|
||||
return this._text.height;
|
||||
};
|
||||
|
||||
gdjs.TextRuntimeObjectPixiRenderer.prototype._getColorHex = function() {
|
||||
return gdjs.rgbToHexNumber(
|
||||
this._object._color[0],
|
||||
this._object._color[1],
|
||||
this._object._color[2]
|
||||
);
|
||||
}
|
||||
|
||||
gdjs.TextRuntimeObjectPixiRenderer.prototype._getGradientHex = function() {
|
||||
var gradient = [];
|
||||
for (var colorIndex = 0; colorIndex < this._object._gradient.length; colorIndex++){
|
||||
gradient.push(
|
||||
'#' + gdjs.rgbToHex(
|
||||
this._object._gradient[colorIndex][0],
|
||||
this._object._gradient[colorIndex][1],
|
||||
this._object._gradient[colorIndex][2]
|
||||
)
|
||||
);
|
||||
}
|
||||
return gradient;
|
||||
}
|
||||
/**
|
||||
* Get y-scale of the text.
|
||||
*/
|
||||
@@ -114,4 +160,4 @@ gdjs.TextRuntimeObjectPixiRenderer.prototype.setScaleX = function(newScale) {
|
||||
*/
|
||||
gdjs.TextRuntimeObjectPixiRenderer.prototype.setScaleY = function(newScale) {
|
||||
this._text.scale.y = newScale;
|
||||
};
|
||||
};
|
||||
|
@@ -20,9 +20,21 @@ gdjs.TextRuntimeObject = function(runtimeScene, objectData)
|
||||
this._italic = objectData.italic;
|
||||
this._underlined = objectData.underlined;
|
||||
this._color = [objectData.color.r, objectData.color.g, objectData.color.b];
|
||||
this._useGradient = false;
|
||||
this._gradient = [];
|
||||
this._gradientType = '';
|
||||
this.opacity = 255;
|
||||
this._textAlign = 'left';
|
||||
this._wrapping = false;
|
||||
this._wrappingWidth = 1;
|
||||
this._outlineThickness = 0;
|
||||
this._outlineColor = [255,255,255];
|
||||
this._shadow = false;
|
||||
this._shadowColor = [0,0,0];
|
||||
this._shadowDistance = 1;
|
||||
this._shadowBlur = 1;
|
||||
this._shadowAngle = 0;
|
||||
this._padding = 5;
|
||||
this._scaleX = 1;
|
||||
this._scaleY = 1;
|
||||
|
||||
@@ -250,6 +262,9 @@ gdjs.TextRuntimeObject.prototype.setColor = function(str) {
|
||||
this._color[0] = parseInt(color[0], 10);
|
||||
this._color[1] = parseInt(color[1], 10);
|
||||
this._color[2] = parseInt(color[2], 10);
|
||||
|
||||
this._useGradient = false;
|
||||
|
||||
this._renderer.updateStyle();
|
||||
};
|
||||
|
||||
@@ -261,6 +276,23 @@ gdjs.TextRuntimeObject.prototype.getColor = function(str) {
|
||||
return this._color[0] + ";" + this._color[1] + ";" + this._color[2];
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the text alignment for multiline text objects.
|
||||
* @param {string} alignment The text alignment.
|
||||
*/
|
||||
gdjs.TextRuntimeObject.prototype.setTextAlignment = function(alignment) {
|
||||
this._textAlign = alignment;
|
||||
this._renderer.updateStyle();
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the text alignment of text object.
|
||||
* @return {string} The text alignment.
|
||||
*/
|
||||
gdjs.TextRuntimeObject.prototype.getTextAlignment = function() {
|
||||
return this._textAlign;
|
||||
};
|
||||
|
||||
/**
|
||||
* Return true if word wrapping is enabled for the text.
|
||||
*/
|
||||
@@ -293,3 +325,121 @@ gdjs.TextRuntimeObject.prototype.setWrappingWidth = function(width) {
|
||||
this._wrappingWidth = width;
|
||||
this._renderer.updateStyle();
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the outline for the text object.
|
||||
* @param {string} str color as a "R;G;B" string, for example: "255;0;0"
|
||||
* @param {number} thickness thickness of the outline (0 = disabled)
|
||||
*/
|
||||
gdjs.TextRuntimeObject.prototype.setOutline = function(str, thickness) {
|
||||
var color = str.split(";");
|
||||
if ( color.length < 3 ) return;
|
||||
|
||||
this._outlineColor[0] = parseInt(color[0], 10);
|
||||
this._outlineColor[1] = parseInt(color[1], 10);
|
||||
this._outlineColor[2] = parseInt(color[2], 10);
|
||||
this._outlineThickness = thickness;
|
||||
this._renderer.updateStyle();
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the shadow for the text object.
|
||||
* @param {string} str color as a "R;G;B" string, for example: "255;0;0"
|
||||
* @param {number} distance distance between the shadow and the text, in pixels.
|
||||
* @param {number} blur amout of shadow blur, in pixels.
|
||||
* @param {number} angle shadow offset direction, in degrees.
|
||||
*/
|
||||
gdjs.TextRuntimeObject.prototype.setShadow = function(str, distance, blur, angle) {
|
||||
var color = str.split(";");
|
||||
if ( color.length < 3 ) return;
|
||||
|
||||
this._shadowColor[0] = parseInt(color[0], 10);
|
||||
this._shadowColor[1] = parseInt(color[1], 10);
|
||||
this._shadowColor[2] = parseInt(color[2], 10);
|
||||
this._shadowDistance = distance;
|
||||
this._shadowBlur = blur;
|
||||
this._shadowAngle = angle;
|
||||
this._shadow = true;
|
||||
this._renderer.updateStyle();
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the gradient for the text object.
|
||||
* @param {string} strFirstColor color as a "R;G;B" string, for example: "255;0;0"
|
||||
* @param {string} strSecondColor color as a "R;G;B" string, for example: "255;0;0"
|
||||
* @param {string} strThirdColor color as a "R;G;B" string, for example: "255;0;0"
|
||||
* @param {string} strFourthColor color as a "R;G;B" string, for example: "255;0;0"
|
||||
* @param {string} strGradientType gradient type
|
||||
*/
|
||||
gdjs.TextRuntimeObject.prototype.setGradient = function(strGradientType, strFirstColor, strSecondColor, strThirdColor, strFourthColor) {
|
||||
var colorFirst = strFirstColor.split(";");
|
||||
var colorSecond = strSecondColor.split(";");
|
||||
var colorThird = strThirdColor.split(";");
|
||||
var colorFourth = strFourthColor.split(";");
|
||||
|
||||
this._gradient = [];
|
||||
|
||||
if (colorFirst.length == 3){
|
||||
this._gradient.push([
|
||||
parseInt(colorFirst[0], 10),
|
||||
parseInt(colorFirst[1], 10),
|
||||
parseInt(colorFirst[2], 10)
|
||||
]);
|
||||
}
|
||||
|
||||
if (colorSecond.length == 3){
|
||||
this._gradient.push([
|
||||
parseInt(colorSecond[0], 10),
|
||||
parseInt(colorSecond[1], 10),
|
||||
parseInt(colorSecond[2], 10)
|
||||
]);
|
||||
}
|
||||
|
||||
if (colorThird.length == 3){
|
||||
this._gradient.push([
|
||||
parseInt(colorThird[0], 10),
|
||||
parseInt(colorThird[1], 10),
|
||||
parseInt(colorThird[2], 10)
|
||||
]);
|
||||
}
|
||||
|
||||
if (colorFourth.length == 3){
|
||||
this._gradient.push([
|
||||
parseInt(colorFourth[0], 10),
|
||||
parseInt(colorFourth[1], 10),
|
||||
parseInt(colorFourth[2], 10)
|
||||
]);
|
||||
}
|
||||
|
||||
this._gradientType = strGradientType;
|
||||
|
||||
this._useGradient = (this._gradient.length > 1) ? true : false;
|
||||
|
||||
this._renderer.updateStyle();
|
||||
};
|
||||
|
||||
/**
|
||||
* Show the shadow of the text object.
|
||||
* @param {boolean} enable true to show the shadow, false to hide it
|
||||
*/
|
||||
gdjs.TextRuntimeObject.prototype.showShadow = function(enable) {
|
||||
this._shadow = enable;
|
||||
this._renderer.updateStyle();
|
||||
};
|
||||
|
||||
/**
|
||||
* Get padding of the text object.
|
||||
* @return {number} number of pixels around the text before it gets cropped
|
||||
*/
|
||||
gdjs.TextRuntimeObject.prototype.getPadding = function() {
|
||||
return this._padding;
|
||||
};
|
||||
|
||||
/**
|
||||
* Set padding of the text object.
|
||||
* @param {number} value number of pixels around the text before it gets cropped
|
||||
*/
|
||||
gdjs.TextRuntimeObject.prototype.setPadding = function(value) {
|
||||
this._padding = value;
|
||||
this._renderer.updateStyle();
|
||||
};
|
||||
|