Added Source Code and Assets

This commit is contained in:
Reproog committed 2026-11-17 08:50:25 +01:00
1 parent fca197514e
commit 812aa6d408
9 files changed
+1538 -16

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
This file can be deleted if there are any other files present in this folder.
It is only here to ensure this folder is added to Git, instead of being
ignored because it is empty.
+894
View File
@@ -0,0 +1,894 @@
info face="C059-Roman" size=42 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=1,1,1,1 spacing=-2,-2
common lineHeight=51 base=31 scaleW=512 scaleH=512 pages=1 packed=0
page id=0 file="c059.png"
chars count=97
char id=0 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=12 page=0 chnl=0
char id=10 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=0 page=0 chnl=0
char id=32 x=0 y=0 width=0 height=0 xoffset=-1 yoffset=0 xadvance=12 page=0 chnl=0
char id=33 x=351 y=0 width=8 height=34 xoffset=2 yoffset=-1 xadvance=12 page=0 chnl=0
char id=34 x=87 y=140 width=14 height=12 xoffset=1 yoffset=-1 xadvance=16 page=0 chnl=0
char id=35 x=92 y=108 width=23 height=31 xoffset=0 yoffset=1 xadvance=23 page=0 chnl=0
char id=36 x=39 y=0 width=23 height=42 xoffset=0 yoffset=-5 xadvance=23 page=0 chnl=0
char id=37 x=23 y=108 width=35 height=32 xoffset=0 yoffset=0 xadvance=35 page=0 chnl=0
char id=38 x=425 y=0 width=33 height=34 xoffset=1 yoffset=-1 xadvance=34 page=0 chnl=0
char id=39 x=101 y=140 width=7 height=12 xoffset=1 yoffset=-1 xadvance=9 page=0 chnl=0
char id=40 x=81 y=0 width=13 height=39 xoffset=0 yoffset=-1 xadvance=14 page=0 chnl=0
char id=41 x=94 y=0 width=13 height=39 xoffset=1 yoffset=-1 xadvance=14 page=0 chnl=0
char id=42 x=20 y=140 width=19 height=21 xoffset=1 yoffset=-1 xadvance=21 page=0 chnl=0
char id=43 x=274 y=108 width=24 height=24 xoffset=1 yoffset=8 xadvance=25 page=0 chnl=0
char id=44 x=496 y=108 width=10 height=15 xoffset=1 yoffset=26 xadvance=12 page=0 chnl=0
char id=45 x=153 y=140 width=14 height=6 xoffset=0 yoffset=18 xadvance=14 page=0 chnl=0
char id=46 x=145 y=140 width=8 height=8 xoffset=2 yoffset=25 xadvance=12 page=0 chnl=0
char id=47 x=378 y=0 width=16 height=34 xoffset=-2 yoffset=-1 xadvance=12 page=0 chnl=0
char id=48 x=0 y=108 width=23 height=32 xoffset=0 yoffset=1 xadvance=23 page=0 chnl=0
char id=49 x=376 y=76 width=19 height=32 xoffset=3 yoffset=0 xadvance=23 page=0 chnl=0
char id=50 x=395 y=76 width=23 height=32 xoffset=0 yoffset=0 xadvance=23 page=0 chnl=0
char id=51 x=329 y=0 width=22 height=34 xoffset=0 yoffset=-1 xadvance=23 page=0 chnl=0
char id=52 x=418 y=76 width=24 height=32 xoffset=0 yoffset=0 xadvance=23 page=0 chnl=0
char id=53 x=309 y=43 width=23 height=33 xoffset=0 yoffset=0 xadvance=23 page=0 chnl=0
char id=54 x=442 y=76 width=23 height=32 xoffset=0 yoffset=1 xadvance=23 page=0 chnl=0
char id=55 x=332 y=43 width=22 height=33 xoffset=1 yoffset=0 xadvance=23 page=0 chnl=0
char id=56 x=465 y=76 width=23 height=32 xoffset=0 yoffset=1 xadvance=23 page=0 chnl=0
char id=57 x=488 y=76 width=23 height=32 xoffset=0 yoffset=1 xadvance=23 page=0 chnl=0
char id=58 x=266 y=108 width=8 height=24 xoffset=2 yoffset=9 xadvance=12 page=0 chnl=0
char id=59 x=83 y=108 width=9 height=31 xoffset=2 yoffset=10 xadvance=12 page=0 chnl=0
char id=60 x=115 y=108 width=24 height=26 xoffset=1 yoffset=4 xadvance=25 page=0 chnl=0
char id=61 x=63 y=140 width=24 height=15 xoffset=1 yoffset=13 xadvance=25 page=0 chnl=0
char id=62 x=139 y=108 width=24 height=26 xoffset=1 yoffset=4 xadvance=25 page=0 chnl=0
char id=63 x=359 y=0 width=19 height=34 xoffset=0 yoffset=-1 xadvance=19 page=0 chnl=0
char id=64 x=394 y=0 width=31 height=34 xoffset=0 yoffset=-1 xadvance=31 page=0 chnl=0
char id=65 x=458 y=0 width=34 height=33 xoffset=-2 yoffset=-1 xadvance=30 page=0 chnl=0
char id=66 x=376 y=43 width=30 height=32 xoffset=0 yoffset=0 xadvance=30 page=0 chnl=0
char id=67 x=159 y=0 width=30 height=34 xoffset=0 yoffset=-1 xadvance=30 page=0 chnl=0
char id=68 x=406 y=43 width=32 height=32 xoffset=0 yoffset=0 xadvance=33 page=0 chnl=0
char id=69 x=438 y=43 width=29 height=32 xoffset=0 yoffset=0 xadvance=30 page=0 chnl=0
char id=70 x=467 y=43 width=28 height=32 xoffset=0 yoffset=0 xadvance=28 page=0 chnl=0
char id=71 x=189 y=0 width=34 height=34 xoffset=0 yoffset=-1 xadvance=33 page=0 chnl=0
char id=72 x=0 y=76 width=35 height=32 xoffset=0 yoffset=0 xadvance=35 page=0 chnl=0
char id=73 x=35 y=76 width=17 height=32 xoffset=0 yoffset=0 xadvance=17 page=0 chnl=0
char id=74 x=0 y=43 width=25 height=33 xoffset=-1 yoffset=0 xadvance=23 page=0 chnl=0
char id=75 x=52 y=76 width=35 height=32 xoffset=0 yoffset=0 xadvance=33 page=0 chnl=0
char id=76 x=87 y=76 width=29 height=32 xoffset=0 yoffset=0 xadvance=28 page=0 chnl=0
char id=77 x=116 y=76 width=41 height=32 xoffset=-1 yoffset=0 xadvance=40 page=0 chnl=0
char id=78 x=25 y=43 width=36 height=33 xoffset=-1 yoffset=0 xadvance=34 page=0 chnl=0
char id=79 x=223 y=0 width=32 height=34 xoffset=0 yoffset=-1 xadvance=33 page=0 chnl=0
char id=80 x=157 y=76 width=29 height=32 xoffset=0 yoffset=0 xadvance=28 page=0 chnl=0
char id=81 x=6 y=0 width=33 height=42 xoffset=0 yoffset=-1 xadvance=33 page=0 chnl=0
char id=82 x=61 y=43 width=31 height=33 xoffset=0 yoffset=0 xadvance=30 page=0 chnl=0
char id=83 x=255 y=0 width=25 height=34 xoffset=1 yoffset=-1 xadvance=26 page=0 chnl=0
char id=84 x=186 y=76 width=30 height=32 xoffset=-1 yoffset=0 xadvance=28 page=0 chnl=0
char id=85 x=92 y=43 width=36 height=33 xoffset=-1 yoffset=0 xadvance=34 page=0 chnl=0
char id=86 x=128 y=43 width=34 height=33 xoffset=-2 yoffset=0 xadvance=30 page=0 chnl=0
char id=87 x=162 y=43 width=43 height=33 xoffset=-1 yoffset=0 xadvance=41 page=0 chnl=0
char id=88 x=216 y=76 width=34 height=32 xoffset=-2 yoffset=0 xadvance=30 page=0 chnl=0
char id=89 x=250 y=76 width=33 height=32 xoffset=-2 yoffset=0 xadvance=30 page=0 chnl=0
char id=90 x=283 y=76 width=26 height=32 xoffset=0 yoffset=0 xadvance=26 page=0 chnl=0
char id=91 x=107 y=0 width=13 height=37 xoffset=1 yoffset=0 xadvance=14 page=0 chnl=0
char id=92 x=354 y=43 width=22 height=33 xoffset=2 yoffset=-1 xadvance=25 page=0 chnl=0
char id=93 x=120 y=0 width=13 height=37 xoffset=0 yoffset=0 xadvance=14 page=0 chnl=0
char id=94 x=39 y=140 width=24 height=19 xoffset=1 yoffset=0 xadvance=25 page=0 chnl=0
char id=95 x=167 y=140 width=23 height=5 xoffset=-1 yoffset=33 xadvance=21 page=0 chnl=0
char id=96 x=108 y=140 width=13 height=10 xoffset=-1 yoffset=0 xadvance=14 page=0 chnl=0
char id=97 x=163 y=108 width=24 height=24 xoffset=0 yoffset=9 xadvance=23 page=0 chnl=0
char id=98 x=280 y=0 width=24 height=34 xoffset=-1 yoffset=-1 xadvance=23 page=0 chnl=0
char id=99 x=187 y=108 width=19 height=24 xoffset=0 yoffset=9 xadvance=19 page=0 chnl=0
char id=100 x=304 y=0 width=25 height=34 xoffset=0 yoffset=-1 xadvance=24 page=0 chnl=0
char id=101 x=206 y=108 width=21 height=24 xoffset=0 yoffset=9 xadvance=21 page=0 chnl=0
char id=102 x=205 y=43 width=25 height=33 xoffset=-1 yoffset=-1 xadvance=14 page=0 chnl=0
char id=103 x=230 y=43 width=25 height=33 xoffset=-1 yoffset=8 xadvance=23 page=0 chnl=0
char id=104 x=255 y=43 width=27 height=33 xoffset=-1 yoffset=-1 xadvance=26 page=0 chnl=0
char id=105 x=495 y=43 width=15 height=32 xoffset=-1 yoffset=0 xadvance=13 page=0 chnl=0
char id=106 x=62 y=0 width=19 height=41 xoffset=-5 yoffset=0 xadvance=12 page=0 chnl=0
char id=107 x=282 y=43 width=27 height=33 xoffset=-1 yoffset=-1 xadvance=25 page=0 chnl=0
char id=108 x=492 y=0 width=15 height=33 xoffset=-1 yoffset=-1 xadvance=13 page=0 chnl=0
char id=109 x=298 y=108 width=39 height=23 xoffset=-1 yoffset=9 xadvance=37 page=0 chnl=0
char id=110 x=337 y=108 width=26 height=23 xoffset=0 yoffset=9 xadvance=26 page=0 chnl=0
char id=111 x=227 y=108 width=21 height=24 xoffset=0 yoffset=9 xadvance=21 page=0 chnl=0
char id=112 x=309 y=76 width=24 height=32 xoffset=0 yoffset=9 xadvance=24 page=0 chnl=0
char id=113 x=333 y=76 width=25 height=32 xoffset=0 yoffset=9 xadvance=23 page=0 chnl=0
char id=114 x=363 y=108 width=21 height=23 xoffset=-1 yoffset=9 xadvance=19 page=0 chnl=0
char id=115 x=248 y=108 width=18 height=24 xoffset=1 yoffset=9 xadvance=19 page=0 chnl=0
char id=116 x=358 y=76 width=18 height=32 xoffset=-1 yoffset=1 xadvance=16 page=0 chnl=0
char id=117 x=384 y=108 width=27 height=23 xoffset=-1 yoffset=10 xadvance=26 page=0 chnl=0
char id=118 x=411 y=108 width=25 height=23 xoffset=-1 yoffset=10 xadvance=23 page=0 chnl=0
char id=119 x=436 y=108 width=35 height=23 xoffset=-1 yoffset=10 xadvance=33 page=0 chnl=0
char id=120 x=471 y=108 width=25 height=22 xoffset=-1 yoffset=10 xadvance=23 page=0 chnl=0
char id=121 x=58 y=108 width=25 height=31 xoffset=-1 yoffset=10 xadvance=23 page=0 chnl=0
char id=122 x=0 y=140 width=20 height=22 xoffset=0 yoffset=10 xadvance=20 page=0 chnl=0
char id=123 x=133 y=0 width=13 height=37 xoffset=1 yoffset=0 xadvance=14 page=0 chnl=0
char id=124 x=0 y=0 width=6 height=43 xoffset=10 yoffset=0 xadvance=25 page=0 chnl=0
char id=125 x=146 y=0 width=13 height=37 xoffset=0 yoffset=0 xadvance=14 page=0 chnl=0
char id=126 x=121 y=140 width=24 height=10 xoffset=1 yoffset=16 xadvance=25 page=0 chnl=0
kernings count=792
kerning first=87 second=85 amount=1
kerning first=115 second=112 amount=-1
kerning first=103 second=118 amount=1
kerning first=88 second=81 amount=-2
kerning first=97 second=121 amount=-2
kerning first=76 second=87 amount=-3
kerning first=71 second=86 amount=-1
kerning first=65 second=89 amount=-2
kerning first=78 second=79 amount=-1
kerning first=47 second=98 amount=2
kerning first=75 second=125 amount=1
kerning first=107 second=102 amount=1
kerning first=76 second=121 amount=-1
kerning first=99 second=58 amount=1
kerning first=118 second=45 amount=-1
kerning first=89 second=111 amount=-4
kerning first=102 second=101 amount=-1
kerning first=75 second=70 amount=2
kerning first=85 second=106 amount=-1
kerning first=121 second=33 amount=-1
kerning first=102 second=46 amount=-1
kerning first=80 second=105 amount=1
kerning first=103 second=42 amount=1
kerning first=102 second=39 amount=2
kerning first=47 second=77 amount=2
kerning first=75 second=104 amount=2
kerning first=69 second=107 amount=-1
kerning first=89 second=90 amount=1
kerning first=45 second=119 amount=-1
kerning first=111 second=120 amount=-1
kerning first=84 second=89 amount=1
kerning first=112 second=116 amount=-1
kerning first=76 second=45 amount=2
kerning first=79 second=88 amount=-2
kerning first=101 second=118 amount=-1
kerning first=114 second=108 amount=-1
kerning first=80 second=84 amount=1
kerning first=121 second=101 amount=-1
kerning first=87 second=77 amount=1
kerning first=75 second=83 amount=1
kerning first=122 second=97 amount=-1
kerning first=39 second=87 amount=1
kerning first=101 second=63 amount=-2
kerning first=82 second=76 amount=1
kerning first=85 second=119 amount=-1
kerning first=79 second=122 amount=-1
kerning first=121 second=46 amount=-3
kerning first=90 second=65 amount=1
kerning first=84 second=68 amount=1
kerning first=65 second=81 amount=-2
kerning first=122 second=42 amount=-1
kerning first=116 second=45 amount=1
kerning first=74 second=121 amount=-1
kerning first=78 second=71 amount=-1
kerning first=87 second=111 amount=-3
kerning first=47 second=90 amount=2
kerning first=111 second=44 amount=-1
kerning first=89 second=103 amount=-3
kerning first=102 second=93 amount=3
kerning first=68 second=69 amount=-1
kerning first=119 second=33 amount=-1
kerning first=65 second=115 amount=1
kerning first=113 second=125 amount=1
kerning first=90 second=44 amount=1
kerning first=114 second=121 amount=1
kerning first=80 second=97 amount=-1
kerning first=47 second=69 amount=2
kerning first=79 second=46 amount=-1
kerning first=120 second=63 amount=-1
kerning first=82 second=89 amount=-1
kerning first=123 second=106 amount=3
kerning first=98 second=122 amount=-1
kerning first=121 second=59 amount=-1
kerning first=118 second=105 amount=1
kerning first=78 second=84 amount=1
kerning first=91 second=74 amount=-1
kerning first=119 second=101 amount=-1
kerning first=47 second=103 amount=1
kerning first=79 second=80 amount=-1
kerning first=107 second=107 amount=1
kerning first=86 second=73 amount=1
kerning first=99 second=63 amount=-2
kerning first=80 second=76 amount=-1
kerning first=102 second=106 amount=1
kerning first=87 second=69 amount=1
kerning first=119 second=46 amount=-3
kerning first=103 second=102 amount=1
kerning first=84 second=115 amount=-1
kerning first=88 second=65 amount=2
kerning first=82 second=68 amount=1
kerning first=114 second=45 amount=-3
kerning first=72 second=121 amount=-2
kerning first=119 second=39 amount=-1
kerning first=70 second=74 amount=-2
kerning first=40 second=89 amount=1
kerning first=87 second=103 amount=-3
kerning first=47 second=82 amount=2
kerning first=98 second=46 amount=-1
kerning first=79 second=59 amount=1
kerning first=67 second=65 amount=-1
kerning first=65 second=107 amount=1
kerning first=112 second=121 amount=-1
kerning first=78 second=97 amount=-1
kerning first=91 second=87 amount=1
kerning first=119 second=114 amount=1
kerning first=113 second=117 amount=-1
kerning first=107 second=120 amount=1
kerning first=92 second=83 amount=-1
kerning first=121 second=106 amount=1
kerning first=102 second=119 amount=1
kerning first=87 second=82 amount=1
kerning first=81 second=85 amount=-1
kerning first=90 second=125 amount=2
kerning first=109 second=112 amount=-1
kerning first=75 second=88 amount=2
kerning first=97 second=118 amount=-1
kerning first=91 second=121 amount=1
kerning first=76 second=84 amount=-2
kerning first=123 second=98 amount=1
kerning first=89 second=74 amount=-2
kerning first=70 second=87 amount=1
kerning first=71 second=83 amount=1
kerning first=118 second=97 amount=-1
kerning first=65 second=86 amount=-4
kerning first=100 second=106 amount=-1
kerning first=98 second=59 amount=1
kerning first=107 second=99 amount=-1
kerning first=101 second=102 amount=-1
kerning first=86 second=65 amount=-4
kerning first=70 second=121 amount=1
kerning first=75 second=67 amount=-1
kerning first=115 second=33 amount=-1
kerning first=86 second=99 amount=-3
kerning first=80 second=102 amount=1
kerning first=65 second=65 amount=2
kerning first=115 second=122 amount=-1
kerning first=47 second=74 amount=1
kerning first=69 second=104 amount=-1
kerning first=86 second=44 amount=-4
kerning first=110 second=121 amount=-2
kerning first=89 second=87 amount=2
kerning first=84 second=86 amount=1
kerning first=116 second=63 amount=-1
kerning first=78 second=89 amount=2
kerning first=100 second=119 amount=-1
kerning first=47 second=108 amount=2
kerning first=70 second=45 amount=-2
kerning first=119 second=106 amount=1
kerning first=88 second=125 amount=1
kerning first=73 second=88 amount=1
kerning first=114 second=105 amount=1
kerning first=65 second=44 amount=1
kerning first=102 second=111 amount=-1
kerning first=87 second=74 amount=-3
kerning first=68 second=87 amount=-2
kerning first=75 second=80 amount=2
kerning first=39 second=84 amount=2
kerning first=82 second=73 amount=1
kerning first=123 second=90 amount=1
kerning first=98 second=106 amount=-1
kerning first=84 second=65 amount=-1
kerning first=116 second=42 amount=-1
kerning first=87 second=108 amount=1
kerning first=66 second=74 amount=1
kerning first=47 second=87 amount=2
kerning first=89 second=100 amount=-4
kerning first=77 second=106 amount=-1
kerning first=84 second=99 amount=-1
kerning first=89 second=45 amount=-3
kerning first=45 second=74 amount=2
kerning first=90 second=41 amount=1
kerning first=114 second=118 amount=1
kerning first=84 second=44 amount=-3
kerning first=108 second=121 amount=-1
kerning first=121 second=111 amount=-1
kerning first=87 second=87 amount=2
kerning first=47 second=66 amount=2
kerning first=75 second=93 amount=1
kerning first=82 second=86 amount=-1
kerning first=114 second=63 amount=-1
kerning first=76 second=89 amount=-3
kerning first=123 second=103 amount=1
kerning first=89 second=79 amount=-2
kerning first=98 second=119 amount=-1
kerning first=117 second=106 amount=-1
kerning first=68 second=45 amount=1
kerning first=115 second=59 amount=1
kerning first=86 second=125 amount=1
kerning first=84 second=78 amount=1
kerning first=87 second=121 amount=-2
kerning first=72 second=84 amount=1
kerning first=66 second=87 amount=-1
kerning first=107 second=104 amount=1
kerning first=88 second=117 amount=-1
kerning first=92 second=67 amount=-2
kerning first=101 second=107 amount=-1
kerning first=80 second=73 amount=-1
kerning first=89 second=113 amount=-4
kerning first=102 second=103 amount=-1
kerning first=87 second=66 amount=1
kerning first=75 second=72 amount=2
kerning first=82 second=65 amount=1
kerning first=66 second=121 amount=-1
kerning first=89 second=58 amount=-2
kerning first=45 second=87 amount=-2
kerning first=86 second=104 amount=2
kerning first=103 second=44 amount=-1
kerning first=40 second=86 amount=1
kerning first=70 second=105 amount=1
kerning first=117 second=119 amount=-1
kerning first=87 second=45 amount=-2
kerning first=45 second=121 amount=-2
kerning first=111 second=122 amount=-1
kerning first=105 second=125 amount=1
kerning first=71 second=101 amount=1
kerning first=112 second=118 amount=-1
kerning first=106 second=121 amount=-1
kerning first=119 second=111 amount=-1
kerning first=85 second=87 amount=1
kerning first=101 second=120 amount=-1
kerning first=114 second=110 amount=1
kerning first=74 second=89 amount=2
kerning first=102 second=116 amount=1
kerning first=40 second=65 amount=-1
kerning first=87 second=79 amount=-2
kerning first=121 second=103 amount=-1
kerning first=81 second=82 amount=-1
kerning first=75 second=85 amount=1
kerning first=103 second=112 amount=1
kerning first=39 second=89 amount=1
kerning first=82 second=78 amount=1
kerning first=85 second=121 amount=-1
kerning first=70 second=84 amount=1
kerning first=89 second=71 amount=-2
kerning first=83 second=74 amount=1
kerning first=86 second=117 amount=-2
kerning first=99 second=107 amount=-1
kerning first=84 second=70 amount=1
kerning first=65 second=83 amount=1
kerning first=75 second=119 amount=-2
kerning first=111 second=46 amount=-1
kerning first=69 second=122 amount=-1
kerning first=80 second=65 amount=-3
kerning first=87 second=58 amount=-1
kerning first=84 second=104 amount=1
kerning first=65 second=117 amount=-1
kerning first=110 second=84 amount=-2
kerning first=123 second=74 amount=1
kerning first=45 second=79 amount=1
kerning first=71 second=59 amount=2
kerning first=90 second=46 amount=1
kerning first=86 second=41 amount=1
kerning first=110 second=118 amount=-1
kerning first=80 second=44 amount=-4
kerning first=104 second=121 amount=-2
kerning first=123 second=108 amount=1
kerning first=70 second=97 amount=-1
kerning first=89 second=84 amount=1
kerning first=77 second=90 amount=1
kerning first=40 second=112 amount=-1
kerning first=72 second=89 amount=2
kerning first=119 second=103 amount=-1
kerning first=107 second=109 amount=1
kerning first=111 second=59 amount=1
kerning first=120 second=99 amount=-1
kerning first=82 second=125 amount=1
kerning first=114 second=102 amount=1
kerning first=65 second=41 amount=-1
kerning first=89 second=118 amount=-3
kerning first=102 second=108 amount=3
kerning first=87 second=71 amount=-2
kerning first=75 second=77 amount=2
kerning first=84 second=117 amount=1
kerning first=88 second=67 amount=-1
kerning first=82 second=70 amount=1
kerning first=123 second=87 amount=1
kerning first=92 second=106 amount=-1
kerning first=71 second=72 amount=-1
kerning first=90 second=59 amount=1
kerning first=78 second=65 amount=-1
kerning first=87 second=105 amount=-1
kerning first=47 second=84 amount=2
kerning first=105 second=41 amount=-1
kerning first=123 second=121 amount=1
kerning first=89 second=97 amount=-3
kerning first=90 second=93 amount=1
kerning first=91 second=89 amount=1
kerning first=119 second=116 amount=1
kerning first=45 second=71 amount=1
kerning first=83 second=45 amount=2
kerning first=92 second=85 amount=-2
kerning first=108 second=118 amount=-1
kerning first=78 second=44 amount=-1
kerning first=121 second=108 amount=-1
kerning first=102 second=121 amount=1
kerning first=87 second=84 amount=1
kerning first=75 second=90 amount=2
kerning first=97 second=120 amount=1
kerning first=82 second=83 amount=1
kerning first=76 second=86 amount=-3
kerning first=70 second=89 amount=1
kerning first=111 second=106 amount=-1
kerning first=67 second=39 amount=1
kerning first=118 second=99 amount=-1
kerning first=65 second=88 amount=2
kerning first=84 second=75 amount=1
kerning first=66 second=84 amount=-1
kerning first=107 second=101 amount=-1
kerning first=101 second=104 amount=-1
kerning first=82 second=117 amount=-1
kerning first=86 second=67 amount=-2
kerning first=118 second=44 amount=-3
kerning first=89 second=110 amount=-3
kerning first=102 second=100 amount=-1
kerning first=71 second=119 amount=-1
kerning first=75 second=69 amount=2
kerning first=65 second=122 amount=1
kerning first=46 second=39 amount=-2
kerning first=76 second=65 amount=1
kerning first=102 second=45 amount=-1
kerning first=45 second=84 amount=-3
kerning first=86 second=101 amount=-3
kerning first=80 second=104 amount=-1
kerning first=103 second=41 amount=-1
kerning first=65 second=67 amount=-1
kerning first=87 second=97 amount=-3
kerning first=47 second=76 amount=2
kerning first=88 second=93 amount=1
kerning first=86 second=46 amount=-4
kerning first=67 second=59 amount=1
kerning first=45 second=118 amount=-1
kerning first=111 second=119 amount=-1
kerning first=81 second=45 amount=1
kerning first=90 second=85 amount=1
kerning first=84 second=88 amount=1
kerning first=82 second=41 amount=1
kerning first=119 second=108 amount=-1
kerning first=100 second=121 amount=-1
kerning first=85 second=84 amount=1
kerning first=79 second=87 amount=-2
kerning first=107 second=114 amount=1
kerning first=73 second=90 amount=1
kerning first=114 second=107 amount=-1
kerning first=65 second=46 amount=1
kerning first=87 second=76 amount=1
kerning first=68 second=89 amount=-1
kerning first=90 second=119 amount=-1
kerning first=75 second=82 amount=2
kerning first=109 second=106 amount=-1
kerning first=65 second=39 amount=-4
kerning first=39 second=86 amount=1
kerning first=82 second=75 amount=1
kerning first=85 second=118 amount=-1
kerning first=121 second=45 amount=-1
kerning first=86 second=114 amount=-2
kerning first=47 second=89 amount=3
kerning first=69 second=119 amount=-1
kerning first=86 second=59 amount=-2
kerning first=74 second=65 amount=-2
kerning first=106 second=42 amount=-1
kerning first=71 second=111 amount=1
kerning first=84 second=101 amount=-1
kerning first=39 second=65 amount=-4
kerning first=119 second=121 amount=1
kerning first=86 second=93 amount=1
kerning first=114 second=120 amount=1
kerning first=103 second=33 amount=-1
kerning first=84 second=46 amount=-3
kerning first=87 second=89 amount=2
kerning first=115 second=116 amount=-1
kerning first=47 second=68 amount=2
kerning first=109 second=119 amount=-2
kerning first=79 second=45 amount=1
kerning first=84 second=39 amount=2
kerning first=82 second=88 amount=1
kerning first=104 second=118 amount=-1
kerning first=123 second=105 amount=1
kerning first=89 second=81 amount=-2
kerning first=98 second=121 amount=-1
kerning first=121 second=58 amount=-1
kerning first=77 second=87 amount=1
kerning first=84 second=80 amount=1
kerning first=65 second=93 amount=-1
kerning first=66 second=89 amount=-1
kerning first=63 second=39 amount=1
kerning first=86 second=72 amount=1
kerning first=76 second=125 amount=1
kerning first=89 second=115 amount=-3
kerning first=102 second=105 amount=1
kerning first=87 second=68 amount=1
kerning first=119 second=45 amount=-1
kerning first=77 second=121 amount=-2
kerning first=47 second=47 amount=1
kerning first=75 second=74 amount=2
kerning first=84 second=114 amount=1
kerning first=78 second=117 amount=-2
kerning first=91 second=107 amount=1
kerning first=114 second=44 amount=-3
kerning first=42 second=46 amount=-1
kerning first=85 second=110 amount=-2
kerning first=45 second=89 amount=-4
kerning first=105 second=93 amount=-1
kerning first=122 second=33 amount=-1
kerning first=103 second=46 amount=-1
kerning first=84 second=59 amount=-1
kerning first=40 second=88 amount=1
kerning first=72 second=65 amount=1
kerning first=104 second=42 amount=-1
kerning first=75 second=108 amount=2
kerning first=79 second=58 amount=1
kerning first=82 second=101 amount=1
kerning first=117 second=121 amount=-1
kerning first=118 second=117 amount=1
kerning first=101 second=33 amount=-1
kerning first=91 second=86 amount=1
kerning first=85 second=89 amount=2
kerning first=101 second=122 amount=-1
kerning first=86 second=85 amount=2
kerning first=114 second=112 amount=1
kerning first=119 second=58 amount=-1
kerning first=75 second=87 amount=1
kerning first=103 second=114 amount=1
kerning first=82 second=80 amount=1
kerning first=102 second=63 amount=3
kerning first=105 second=106 amount=-1
kerning first=84 second=72 amount=1
kerning first=65 second=85 amount=-2
kerning first=91 second=65 amount=-1
kerning first=75 second=121 amount=-3
kerning first=98 second=58 amount=1
kerning first=102 second=97 amount=-1
kerning first=75 second=66 amount=2
kerning first=84 second=106 amount=1
kerning first=65 second=119 amount=-2
kerning first=70 second=65 amount=-3
kerning first=102 second=42 amount=2
kerning first=45 second=81 amount=1
kerning first=80 second=101 amount=-1
kerning first=47 second=73 amount=2
kerning first=99 second=33 amount=-1
kerning first=80 second=46 amount=-4
kerning first=89 second=86 amount=2
kerning first=121 second=63 amount=-1
kerning first=111 second=116 amount=-1
kerning first=105 second=119 amount=-1
kerning first=75 second=45 amount=-1
kerning first=80 second=39 amount=1
kerning first=84 second=85 amount=1
kerning first=122 second=59 amount=1
kerning first=119 second=105 amount=1
kerning first=100 second=118 amount=-1
kerning first=47 second=107 amount=2
kerning first=70 second=44 amount=-4
kerning first=107 second=111 amount=-1
kerning first=92 second=74 amount=-1
kerning first=73 second=87 amount=1
kerning first=120 second=101 amount=-1
kerning first=114 second=104 amount=-1
kerning first=121 second=97 amount=-1
kerning first=87 second=73 amount=1
kerning first=68 second=86 amount=-2
kerning first=75 second=79 amount=-1
kerning first=84 second=119 amount=1
kerning first=103 second=106 amount=2
kerning first=101 second=59 amount=1
kerning first=82 second=72 amount=1
kerning first=91 second=112 amount=-1
kerning first=123 second=89 amount=1
kerning first=89 second=65 amount=-2
kerning first=73 second=121 amount=-2
kerning first=92 second=108 amount=-1
kerning first=86 second=111 amount=-3
kerning first=78 second=67 amount=-1
kerning first=47 second=86 amount=3
kerning first=89 second=99 amount=-4
kerning first=68 second=65 amount=-2
kerning first=78 second=101 amount=-1
kerning first=89 second=44 amount=-3
kerning first=92 second=87 amount=-3
kerning first=114 second=117 amount=1
kerning first=78 second=46 amount=-1
kerning first=121 second=110 amount=1
kerning first=87 second=86 amount=2
kerning first=119 second=63 amount=-1
kerning first=103 second=119 amount=1
kerning first=82 second=85 amount=-1
kerning first=110 second=112 amount=-1
kerning first=123 second=102 amount=1
kerning first=98 second=118 amount=-1
kerning first=115 second=58 amount=1
kerning first=77 second=84 amount=1
kerning first=71 second=87 amount=-1
kerning first=118 second=101 amount=-1
kerning first=84 second=77 amount=1
kerning first=65 second=90 amount=2
kerning first=40 second=106 amount=2
kerning first=119 second=97 amount=-1
kerning first=66 second=86 amount=-1
kerning first=101 second=106 amount=-1
kerning first=86 second=69 amount=1
kerning first=118 second=46 amount=-3
kerning first=99 second=59 amount=1
kerning first=89 second=112 amount=-3
kerning first=74 second=75 amount=1
kerning first=102 second=102 amount=1
kerning first=87 second=65 amount=-3
kerning first=71 second=121 amount=-1
kerning first=75 second=71 amount=-1
kerning first=84 second=111 amount=-1
kerning first=91 second=104 amount=1
kerning first=45 second=86 amount=-2
kerning first=86 second=103 amount=-3
kerning first=80 second=106 amount=1
kerning first=116 second=33 amount=-1
kerning first=87 second=99 amount=-3
kerning first=47 second=78 amount=2
kerning first=75 second=105 amount=2
kerning first=69 second=108 amount=-1
kerning first=76 second=101 amount=1
kerning first=117 second=118 amount=-1
kerning first=45 second=120 amount=-2
kerning first=87 second=44 amount=-3
kerning first=111 second=121 amount=-1
kerning first=90 second=87 amount=1
kerning first=118 second=114 amount=1
kerning first=65 second=103 amount=1
kerning first=85 second=86 amount=2
kerning first=79 second=89 amount=-2
kerning first=92 second=79 amount=-2
kerning first=101 second=119 amount=-1
kerning first=86 second=82 amount=2
kerning first=71 second=45 amount=2
kerning first=114 second=109 amount=1
kerning first=76 second=39 amount=-4
kerning first=89 second=125 amount=1
kerning first=87 second=78 amount=1
kerning first=90 second=121 amount=-2
kerning first=75 second=84 amount=1
kerning first=39 second=88 amount=1
kerning first=82 second=77 amount=1
kerning first=85 second=120 amount=-1
kerning first=80 second=119 amount=1
kerning first=84 second=69 amount=1
kerning first=85 second=65 amount=-2
kerning first=101 second=98 amount=-1
kerning first=82 second=111 amount=1
kerning first=70 second=117 amount=1
kerning first=84 second=103 amount=-1
kerning first=78 second=106 amount=-1
kerning first=114 second=33 amount=-1
kerning first=90 second=45 amount=2
kerning first=71 second=58 amount=1
kerning first=121 second=115 amount=-1
kerning first=85 second=44 amount=-2
kerning first=47 second=70 amount=2
kerning first=109 second=121 amount=-2
kerning first=75 second=97 amount=1
kerning first=88 second=87 amount=1
kerning first=82 second=90 amount=1
kerning first=76 second=93 amount=-1
kerning first=123 second=107 amount=1
kerning first=115 second=63 amount=-2
kerning first=77 second=89 amount=1
kerning first=118 second=106 amount=1
kerning first=84 second=82 amount=1
kerning first=69 second=45 amount=1
kerning first=116 second=59 amount=1
kerning first=87 second=125 amount=1
kerning first=119 second=102 amount=1
kerning first=47 second=104 amount=2
kerning first=88 second=121 amount=-3
kerning first=92 second=71 amount=-2
kerning first=107 second=108 amount=1
kerning first=111 second=58 amount=1
kerning first=86 second=74 amount=-2
kerning first=89 second=117 amount=-3
kerning first=87 second=70 amount=1
kerning first=75 second=76 amount=2
kerning first=97 second=106 amount=-1
kerning first=82 second=69 amount=1
kerning first=114 second=46 amount=-3
kerning first=123 second=86 amount=1
kerning first=85 second=112 amount=-2
kerning first=92 second=105 amount=-1
kerning first=86 second=108 amount=1
kerning first=90 second=58 amount=1
kerning first=80 second=111 amount=-1
kerning first=65 second=74 amount=1
kerning first=40 second=90 amount=1
kerning first=87 second=104 amount=1
kerning first=88 second=45 amount=-1
kerning first=112 second=122 amount=-1
kerning first=106 second=125 amount=1
kerning first=91 second=88 amount=1
kerning first=119 second=115 amount=-1
kerning first=89 second=41 amount=1
kerning first=92 second=84 amount=-3
kerning first=120 second=111 amount=-1
kerning first=114 second=114 amount=1
kerning first=87 second=83 amount=-1
kerning first=75 second=89 amount=2
kerning first=103 second=116 amount=1
kerning first=88 second=79 amount=-2
kerning first=97 second=119 amount=-1
kerning first=82 second=82 amount=1
kerning first=67 second=45 amount=1
kerning first=76 second=85 amount=-1
kerning first=86 second=121 amount=-2
kerning first=71 second=84 amount=-1
kerning first=84 second=74 amount=-2
kerning first=65 second=87 amount=-4
kerning first=87 second=117 amount=-2
kerning first=107 second=100 amount=-1
kerning first=89 second=109 amount=-3
kerning first=102 second=99 amount=-1
kerning first=75 second=68 amount=2
kerning first=84 second=108 amount=1
kerning first=65 second=121 amount=-3
kerning first=107 second=45 amount=-2
kerning first=78 second=111 amount=-1
kerning first=102 second=44 amount=-1
kerning first=45 second=83 amount=2
kerning first=111 second=84 amount=-1
kerning first=65 second=66 amount=1
kerning first=47 second=75 amount=2
kerning first=69 second=105 amount=-1
kerning first=67 second=58 amount=1
kerning first=86 second=45 amount=-2
kerning first=70 second=101 amount=-2
kerning first=89 second=88 amount=2
kerning first=87 second=41 amount=1
kerning first=111 second=118 amount=-1
kerning first=118 second=111 amount=-1
kerning first=84 second=87 amount=1
kerning first=85 second=83 amount=-1
kerning first=70 second=46 amount=-4
kerning first=79 second=86 amount=-2
kerning first=107 second=113 amount=-1
kerning first=73 second=89 amount=1
kerning first=101 second=116 amount=-1
kerning first=86 second=79 amount=-2
kerning first=114 second=106 amount=1
kerning first=89 second=122 amount=-3
kerning first=70 second=39 amount=1
kerning first=121 second=99 amount=-1
kerning first=87 second=75 amount=1
kerning first=68 second=88 amount=-2
kerning first=115 second=102 amount=-1
kerning first=90 second=118 amount=-1
kerning first=75 second=81 amount=-1
kerning first=84 second=121 amount=1
kerning first=82 second=74 amount=2
kerning first=76 second=77 amount=1
kerning first=89 second=67 amount=-2
kerning first=121 second=44 amount=-3
kerning first=80 second=116 amount=1
kerning first=84 second=66 amount=1
kerning first=65 second=79 amount=-2
kerning first=47 second=88 amount=2
kerning first=79 second=65 amount=-2
kerning first=86 second=58 amount=-2
kerning first=76 second=111 amount=1
kerning first=70 second=114 amount=1
kerning first=89 second=101 amount=-4
kerning first=89 second=46 amount=-3
kerning first=92 second=89 amount=-4
kerning first=114 second=119 amount=1
kerning first=84 second=45 amount=-3
kerning first=89 second=39 amount=1
kerning first=102 second=125 amount=3
kerning first=109 second=118 amount=-1
kerning first=79 second=44 amount=-1
kerning first=103 second=121 amount=1
kerning first=88 second=84 amount=1
kerning first=82 second=87 amount=-1
kerning first=76 second=90 amount=1
kerning first=123 second=104 amount=1
kerning first=83 second=83 amount=1
kerning first=118 second=103 amount=-1
kerning first=112 second=106 amount=-1
kerning first=119 second=99 amount=-1
kerning first=81 second=125 amount=1
kerning first=107 second=105 amount=1
kerning first=101 second=108 amount=-1
kerning first=82 second=121 amount=-1
kerning first=86 second=71 amount=-2
kerning first=114 second=98 amount=-1
kerning first=80 second=74 amount=-2
kerning first=89 second=114 amount=-2
kerning first=87 second=67 amount=-2
kerning first=119 second=44 amount=-3
kerning first=75 second=73 amount=2
kerning first=82 second=66 amount=1
kerning first=91 second=106 amount=3
kerning first=85 second=109 amount=-2
kerning first=89 second=59 amount=-2
kerning first=108 second=46 amount=-1
kerning first=45 second=88 amount=-2
kerning first=92 second=102 amount=-1
kerning first=77 second=65 amount=1
kerning first=80 second=108 amount=-1
kerning first=65 second=71 amount=-1
kerning first=84 second=58 amount=-1
kerning first=103 second=45 amount=-1
kerning first=40 second=87 amount=1
kerning first=87 second=101 amount=-3
kerning first=98 second=44 amount=-1
kerning first=88 second=97 amount=1
kerning first=89 second=93 amount=1
kerning first=70 second=106 amount=1
kerning first=117 second=120 amount=1
kerning first=45 second=122 amount=-1
kerning first=87 second=46 amount=-3
kerning first=90 second=89 amount=1
kerning first=112 second=119 amount=-1
kerning first=82 second=45 amount=1
kerning first=87 second=39 amount=1
kerning first=100 second=125 amount=1
kerning first=119 second=112 amount=1
kerning first=85 second=88 amount=2
kerning first=45 second=67 amount=1
kerning first=92 second=81 amount=-2
kerning first=101 second=121 amount=-1
kerning first=86 second=84 amount=1
kerning first=67 second=97 amount=-1
kerning first=99 second=74 amount=1
kerning first=102 second=117 amount=1
kerning first=87 second=80 amount=1
kerning first=115 second=107 amount=-1
kerning first=75 second=86 amount=2
kerning first=107 second=63 amount=-1
kerning first=39 second=90 amount=1
kerning first=97 second=116 amount=-1
kerning first=110 second=106 amount=-1
kerning first=85 second=122 amount=-2
kerning first=77 second=78 amount=1
kerning first=99 second=108 amount=-1
kerning first=80 second=121 amount=1
kerning first=65 second=84 amount=-1
kerning first=87 second=114 amount=-2
kerning first=46 second=42 amount=-1
kerning first=87 second=59 amount=-1
kerning first=75 second=65 amount=3
kerning first=65 second=118 amount=-3
kerning first=84 second=105 amount=1
kerning first=107 second=42 amount=-1
kerning first=101 second=45 amount=1
kerning first=91 second=98 amount=1
kerning first=102 second=41 amount=2
kerning first=120 second=121 amount=1
kerning first=105 second=84 amount=-1
kerning first=86 second=97 amount=-4
kerning first=87 second=93 amount=1
kerning first=85 second=46 amount=-2
kerning first=47 second=72 amount=2
kerning first=88 second=89 amount=2
kerning first=110 second=119 amount=-2
kerning first=80 second=45 amount=-2
kerning first=105 second=118 amount=-1
kerning first=118 second=108 amount=-1
kerning first=122 second=58 amount=1
kerning first=84 second=84 amount=1
kerning first=65 second=97 amount=1
kerning first=78 second=87 amount=1
kerning first=107 second=110 amount=1
kerning first=92 second=73 amount=-1
kerning first=73 second=86 amount=1
kerning first=86 second=76 amount=1
kerning first=89 second=119 amount=-3
kerning first=108 second=106 amount=-1
kerning first=87 second=72 amount=1
kerning first=75 second=78 amount=2
kerning first=84 second=118 amount=1
kerning first=78 second=121 amount=-2
kerning first=101 second=58 amount=1
kerning first=120 second=45 amount=-2
kerning first=123 second=88 amount=1
kerning first=85 second=114 amount=-2
kerning first=87 second=106 amount=-1
kerning first=47 second=85 amount=2
kerning first=73 second=65 amount=1
kerning first=105 second=42 amount=-1
kerning first=70 second=111 amount=-2
kerning first=118 second=121 amount=1
kerning first=84 second=97 amount=-1
kerning first=119 second=117 amount=1
kerning first=102 second=33 amount=2
kerning first=92 second=86 amount=-4
kerning first=120 second=113 amount=-1
kerning first=86 second=89 amount=2
kerning first=114 second=116 amount=1
kerning first=108 second=119 amount=-1
Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 43 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1,211 @@
package io.doppelspalt;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.*;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
public class FullscreenButton extends ImageButton {
private ImageButton fullscreenButton;
private boolean isFullscreen;
private Stage stage;
private Skin skin;
private int FULL_BUTTON_SIZE = 50;
public FullscreenButton(Stage stage, Skin skin) {
super(skin);
this.stage = stage;
this.skin = skin;
this.isFullscreen = false;
// Statt Icons verwenden wir jetzt farbige Rechtecke aus der Skin:
ImageButton.ImageButtonStyle style = new ImageButton.ImageButtonStyle();
style.imageUp = skin.newDrawable("rect", Color.RED); // sichtbar in Rot
style.imageDown = skin.newDrawable("rect", Color.DARK_GRAY); // beim Drücken dunkelgrau
fullscreenButton = new ImageButton(style);
fullscreenButton.addListener(new TextTooltip("Toggle fullscreen", skin));
// Sichtbar positionieren:
fullscreenButton.setSize(100, 100);
fullscreenButton.setPosition(10, 10);
fullscreenButton.addListener(new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
toggleFullscreen();
}
});
}
public void addToStage(Stage stage) {
stage.addActor(fullscreenButton);
}
private void toggleFullscreen() {
if (isFullscreen) {
Gdx.graphics.setWindowedMode(1920, 1080);
} else {
Gdx.graphics.setFullscreenMode(Gdx.graphics.getDisplayMode());
}
isFullscreen = !isFullscreen;
// Icon-Update entfällt hier, da wir keine Icons verwenden
}
public void toFront() {
fullscreenButton.toFront();
}
public void dispose() {
// keine Texturen zum Entsorgen
}
}
/*
package io.doppelspalt;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.*;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.badlogic.gdx.graphics.g2d.*;
import com.badlogic.gdx.scenes.scene2d.utils.*;
public class FullscreenButton extends Button {
private ImageButton fullscreenButton;
private boolean isFullscreen;
private Stage stage;
private Skin skin;
private Texture fullscreenIcon;
private Texture windowedIcon;
private static int FULL_BUTTON_SIZE = 50;
public FullscreenButton(Stage stage, Skin skin) {
super(skin);
this.stage = stage;
this.skin = skin;
this.isFullscreen = false;
windowedIcon = new Texture(Gdx.files.internal("windowed-1.png"));
fullscreenIcon = new Texture(Gdx.files.internal("fullscreen-1.png"));
ImageButton.ImageButtonStyle style = new ImageButton.ImageButtonStyle();
style.imageUp = new TextureRegionDrawable(new TextureRegion(fullscreenIcon));
style.imageDown = new TextureRegionDrawable(new TextureRegion(fullscreenIcon));
fullscreenButton = new ImageButton(style);
fullscreenButton.addListener(new TextTooltip("Toggle fullscreen", skin));
fullscreenButton.setSize(FULL_BUTTON_SIZE, FULL_BUTTON_SIZE);
fullscreenButton.setPosition(0, 0);
fullscreenButton.addListener(new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
toggleFullscreen();
}
});
}
public void addToStage(Stage stage) {
stage.addActor(fullscreenButton);
}
private void toggleFullscreen() {
if (isFullscreen) {
Gdx.graphics.setWindowedMode(1920, 1080);
} else {
Gdx.graphics.setFullscreenMode(Gdx.graphics.getDisplayMode());
}
isFullscreen = !isFullscreen;
updateButtonIcon();
}
private void updateButtonIcon() {
Texture newTexture = isFullscreen ? windowedIcon : fullscreenIcon;
((TextureRegionDrawable) fullscreenButton.getStyle().imageUp).setRegion(new TextureRegion(newTexture));
}
public void dispose() {
fullscreenIcon.dispose();
windowedIcon.dispose();
}
}
public class FullscreenButton extends ImageButton {
private boolean isFullscreen;
private Texture fullscreenIcon;
private Texture windowedIcon;
private static final int FULL_BUTTON_SIZE = 50;
public FullscreenButton(Stage stage, Skin skin) {
super(createStyle(skin));
this.isFullscreen = false;
windowedIcon = new Texture(Gdx.files.internal("windowed-1.png"));
fullscreenIcon = new Texture(Gdx.files.internal("fullscreen-1.png"));
setSize(FULL_BUTTON_SIZE, FULL_BUTTON_SIZE);
addListener(new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
toggleFullscreen();
}
});
}
private static ImageButtonStyle createStyle(Skin skin) {
Texture fullscreenIcon = new Texture(Gdx.files.internal("fullscreen-1.png"));
ImageButtonStyle style = new ImageButtonStyle();
style.imageUp = new TextureRegionDrawable(new TextureRegion(fullscreenIcon));
style.imageDown = new TextureRegionDrawable(new TextureRegion(fullscreenIcon));
return style;
}
private void toggleFullscreen() {
if (isFullscreen) {
Gdx.graphics.setWindowedMode(1920, 1080);
} else {
Gdx.graphics.setFullscreenMode(Gdx.graphics.getDisplayMode());
}
isFullscreen = !isFullscreen;
updateButtonIcon();
}
private void updateButtonIcon() {
Texture newTexture = isFullscreen ? windowedIcon : fullscreenIcon;
((TextureRegionDrawable)getStyle().imageUp).setRegion(new TextureRegion(newTexture));
((TextureRegionDrawable)getStyle().imageDown).setRegion(new TextureRegion(newTexture));
}
public void addToStage(Stage stage) {
stage.addActor(this);
}
public void dispose() {
fullscreenIcon.dispose();
windowedIcon.dispose();
}
}
*/
+430 -16
View File
@@ -1,32 +1,446 @@
package io.doppelspalt;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.ScreenUtils;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
/** {@link com.badlogic.gdx.ApplicationListener} implementation shared by all platforms. */
public class Main extends ApplicationAdapter {
private SpriteBatch batch;
private Texture image;
import com.badlogic.gdx.utils.viewport.Viewport;
import com.badlogic.gdx.utils.viewport.FitViewport;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Slider;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
public class Main implements ApplicationListener {
private Viewport viewport;
private OrthographicCamera camera;
private ShapeRenderer shapeRenderer;
private BitmapFont font;
private Stage stage;
private Skin skin;
private Table table;
private int lambda = 50;
private int gitterD = 75;
private int winkel = 90;
private Label fpsLabel;
private Slider lambdaSlider, dSlider, winkelSlider;
private Label ratioLabel;
private FullscreenButton fullButton;
@Override
public void create() {
batch = new SpriteBatch();
image = new Texture("libgdx.png");
font = new BitmapFont(Gdx.files.internal("bitmap/c059.fnt"));
camera = new OrthographicCamera();
table = new Table();
camera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
shapeRenderer = new ShapeRenderer();
//viewport = new FitViewport(1920, 1080, camera);
viewport = new ScreenViewport();
stage = new Stage(viewport);
Gdx.input.setInputProcessor(stage);
skin = new Skin(Gdx.files.internal("ui/uiskin.json"));
fullButton = new FullscreenButton(stage, skin);
setupUI();
}
private void setupUI() {
lambdaSlider = new Slider(10, 85, 1, false, skin);
dSlider = new Slider(0, 150, 1, false, skin);
winkelSlider = new Slider(0, 180, 1, false, skin);
lambdaSlider.setValue(lambda);
dSlider.setValue(gitterD);
winkelSlider.setValue(winkel);
Label.LabelStyle style = new Label.LabelStyle(skin.getFont("font"), Color.BLACK);
style.font = font;
ratioLabel = new Label("d/lambda = " + formatRatio(), style);
lambdaSlider.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
lambda = (int) lambdaSlider.getValue();
updateRatio();
}
});
dSlider.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
gitterD = (int) dSlider.getValue();
updateRatio();
}
});
winkelSlider.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
winkel = (int) winkelSlider.getValue();
}
});
table.top().left();
table.pack();
table.setPosition(10, viewport.getWorldHeight() - 10);
if (viewport.getWorldHeight() > viewport.getWorldWidth()) {
table.setWidth(viewport.getWorldWidth() - 20);
}
fpsLabel = new Label("FPS: 0", style);
//table.row();
//table.add(fpsLabel).left().colspan(2).padTop(10);
//table.row();
Label lambdaLabel = new Label("Lambda", style);
table.add(lambdaLabel).left().pad(5);
table.add(lambdaSlider).width(300).pad(5);
table.row();
//Label dLabel = new Label("Slit distance d", style);
Label dLabel = new Label("D", style);
table.add(dLabel).left().pad(5);
table.add(dSlider).width(300).pad(5);
table.row();
//Label winkelLabel = new Label("Angle of incidence", style);
Label winkelLabel = new Label("Winkel", style);
table.add(winkelLabel).left().pad(5);
table.add(winkelSlider).width(300).pad(5);
table.row();
table.add(ratioLabel).colspan(2).padTop(10);
table.row();
TextButton resetButton = new TextButton("Reset", skin);
resetButton.setSize(10, 10);
resetButton.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
lambdaSlider.setValue(50);
dSlider.setValue(75);
winkelSlider.setValue(90);
lambda = 50;
gitterD = 75;
winkel = 90;
updateRatio();
}
});
table.add(resetButton)
.colspan(2)
.padTop(10)
.width(100)
.height(30);
table.row();
stage.addActor(table);
//stage.setDebugAll(true);
//fullButton.addToStage(stage);
//fullButton.toFront();
}
private void updateRatio() {
ratioLabel.setText("d/lambda = " + formatRatio());
}
private String formatRatio() {
double value = (double) gitterD / lambda;
return formatDouble(value, 2);
}
private String formatDouble(double value, int decimals) {
double scale = Math.pow(10, decimals);
return String.valueOf(Math.round(value * scale) / scale);
}
@Override
public void render() {
ScreenUtils.clear(0.15f, 0.15f, 0.2f, 1f);
batch.begin();
batch.draw(image, 140, 210);
batch.end();
float delta = Gdx.graphics.getDeltaTime();
Gdx.gl.glClearColor(1, 1, 1, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
fpsLabel.setText("FPS: " + Gdx.graphics.getFramesPerSecond());
camera.update();
shapeRenderer.setProjectionMatrix(camera.combined);
drawInterference();
stage.act(delta);
stage.draw();
}
private void drawInterference() {
int width = Gdx.graphics.getWidth();
int height = Gdx.graphics.getHeight();
int xSpalt = width / 3;
shapeRenderer.begin(ShapeRenderer.ShapeType.Line);
int y1 = (height - gitterD) / 2;
int y2 = (height + gitterD) / 2;
drawCircularWaves(xSpalt, y1, width, height);
drawCircularWaves(xSpalt, y2, width, height);
shapeRenderer.end();
shapeRenderer.begin(ShapeRenderer.ShapeType.Filled);
drawBackgroundForSinus(xSpalt, height);
drawWallWithSlits(xSpalt, height);
shapeRenderer.setColor(Color.RED);
drawIntersectionPoints(xSpalt, width, height);
shapeRenderer.end();
shapeRenderer.begin(ShapeRenderer.ShapeType.Line);
drawSinusWave(xSpalt, height);
drawIncidentWave(xSpalt, height);
shapeRenderer.end();
}
private void drawSinusWave(int breite, int hoehe) {
double phi = Math.toRadians(winkel - 90);
double amplitude = hoehe / 12.0;
int lSinus;
if (Math.abs(phi) < Math.atan(0.5 * hoehe / (double) breite)) {
lSinus = (int) (breite / Math.cos(phi));
} else {
lSinus = (int) (0.5 * hoehe / Math.abs(Math.sin(phi)));
}
float[] points = new float[(lSinus - 1) * 4];
for (int i = 0; i < lSinus - 1; i++) {
double x0 = (i - lSinus);
double y0 = amplitude * Math.sin(1.5 * Math.PI + 2 * Math.PI * ((i - lSinus) % lambda) / lambda);
double x1 = (i + 1 - lSinus);
double y1 = amplitude * Math.sin(1.5 * Math.PI + 2 * Math.PI * ((i + 1 - lSinus) % lambda) / lambda);
float xStart = (float) (x0 * Math.cos(phi) + y0 * Math.sin(phi)) + breite;
float yStart = (float) (-x0 * Math.sin(phi) + y0 * Math.cos(phi)) + hoehe / 2f;
float xEnd = (float) (x1 * Math.cos(phi) + y1 * Math.sin(phi)) + breite;
float yEnd = (float) (-x1 * Math.sin(phi) + y1 * Math.cos(phi)) + hoehe / 2f;
int idx = i * 4;
points[idx] = xStart;
points[idx + 1] = yStart;
points[idx + 2] = xEnd;
points[idx + 3] = yEnd;
}
shapeRenderer.setColor(Color.RED);
for (int i = 0; i < points.length; i += 4) {
shapeRenderer.line(points[i], points[i + 1], points[i + 2], points[i + 3]);
}
}
private void drawWallWithSlits(int xSpalt, int height) {
int loch = 5;
int ySpalt1 = (height - gitterD) / 2;
int ySpalt2 = (height + gitterD) / 2;
int balkenBreite = 5;
shapeRenderer.setColor(Color.BLACK);
shapeRenderer.rect(xSpalt - 2, 0, balkenBreite, ySpalt1 - loch);
shapeRenderer.rect(xSpalt - 2, ySpalt1 + loch, balkenBreite, gitterD - 2 * loch);
shapeRenderer.rect(xSpalt - 2, ySpalt2 + loch, balkenBreite, height - ySpalt2 - loch);
}
private void drawBackgroundForSinus(int xSpalt, int height) {
shapeRenderer.setColor(Color.WHITE);
shapeRenderer.rect(0, 0, xSpalt - 5, height);
}
private void drawIncidentWave(int xSpalt, int height) {
shapeRenderer.setColor(Color.BLACK);
double phi = Math.toRadians(winkel);
double sinPhi = Math.sin(phi);
double cosPhi = Math.cos(phi);
if (winkel == 90) {
for (int i = xSpalt; i > 0; i -= lambda) {
shapeRenderer.line(i, 0, i, height);
}
} else if (winkel == 0 || winkel == 180) {
for (int i = (height / 2) % lambda; i <= height; i += lambda) {
shapeRenderer.line(0, i, xSpalt, i);
}
} else {
double dMin, dMax, d0;
if (winkel < 90) {
dMin = 0.0;
double d1 = xSpalt * sinPhi + (height / 2.0) * cosPhi;
dMax = xSpalt * sinPhi + height * cosPhi;
d0 = dMin + (d1 - dMin) % lambda;
} else {
dMin = height * cosPhi;
double d1 = xSpalt * sinPhi + (height / 2.0) * cosPhi;
dMax = xSpalt * sinPhi;
d0 = dMin + (d1 - dMin) % lambda;
}
for (double d = d0; d < dMax; d += lambda) {
double schnittY_Achse = d / sinPhi;
double schnittX_Achse = d / cosPhi;
double schnittX_breite = (d - xSpalt * sinPhi) / cosPhi;
double schnittY_hoehe = (d - height * cosPhi) / sinPhi;
int x0, y0, x1, y1;
if (schnittY_Achse < 0.0) {
x0 = 0;
y0 = (int) schnittX_Achse;
} else if (schnittY_Achse < xSpalt) {
x0 = (int) schnittY_Achse;
y0 = 0;
} else {
x0 = xSpalt;
y0 = (int) schnittX_breite;
}
if (schnittY_hoehe < 0.0) {
x1 = 0;
y1 = (int) schnittX_Achse;
} else if (schnittY_hoehe < xSpalt) {
x1 = (int) schnittY_hoehe;
y1 = height;
} else {
x1 = xSpalt;
y1 = (int) schnittX_breite;
}
shapeRenderer.line(x0, y0, x1, y1);
}
}
}
private void drawCircularWaves(int x, int y, int width, int height) {
shapeRenderer.setColor(Color.BLACK);
double phi = Math.toRadians(winkel - 90);
int s0;
if (y > height / 2) {
s0 = (int) ((gitterD / 2.0) * Math.sin(phi)) % lambda;
} else {
s0 = -(int) ((gitterD / 2.0) * Math.sin(phi)) % lambda;
}
if (s0 < 0) s0 += lambda;
for (int i = 0; i * lambda + s0 < Math.max(width, height) * 2; i++) {
int r = i * lambda + s0;
if (r > 0) {
shapeRenderer.circle(x, y, r, 64);
}
}
}
private void drawIntersectionPoints(int x, int width, int height) {
double phi = Math.toRadians(winkel - 90);
double s0 = (gitterD / 2.0) * Math.sin(phi) % lambda;
int n = (int)(Math.max(width, height) * 1.5 / lambda);
int radius = 12;
if (lambda <= 20) radius = 9;
if (lambda <= 15) radius = 7;
if (radius < 5) radius = 5;
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
double r1 = i * lambda - s0;
double r2 = j * lambda + s0;
if (r1 + r2 > gitterD && r1 <= r2 + gitterD && r2 <= r1 + gitterD) {
if (gitterD != 0) {
double y = (r1 * r1 - r2 * r2 + gitterD * gitterD) / (2.0 * gitterD);
double xRel = Math.sqrt(Math.abs(r1 * r1 - y * y));
float drawX = (float) (x + xRel);
float drawY = (float) ((height - gitterD) / 2.0 + y);
if (drawY >= 0 && drawY <= height) {
shapeRenderer.circle(drawX, drawY, radius);
}
}
}
}
}
}
@Override
public void resize(int width, int height) {
viewport.update(width, height, true);
table.setPosition(10, viewport.getWorldHeight() - 10);
camera.setToOrtho(false, width, height);
}
@Override
public void dispose() {
batch.dispose();
image.dispose();
stage.dispose();
shapeRenderer.dispose();
skin.dispose();
}
@Override public void pause() {}
@Override public void resume() {}
}