more belt graphics

This commit is contained in:
minjaesong
2025-03-16 21:57:04 +09:00
parent 5631b8e807
commit 73bf7f8793
6 changed files with 65988 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -254,7 +254,7 @@ let states = {"keylayouts":[[""],[undefined],
[undefined],
[undefined]
],
"dict":IMEProvider.requestDictionary("cj5-sc.han"),
"dict":IMEProvider.requestDictionary("cangjie5_dict/cj5-sc.han"),
"code":0, //0: not composing, 1: composing (has candidates), 2: composing (no candidates)
"buf":"",
"candidates":""/*comma-separated values*/}

View File

@@ -254,7 +254,7 @@ let states = {"keylayouts":[[""],[undefined],
[undefined],
[undefined]
],
"dict":IMEProvider.requestDictionary("cj5-tc.han"),
"dict":IMEProvider.requestDictionary("cangjie5_dict/cj5-tc.han"),
"code":0, //0: not composing, 1: composing (has candidates), 2: composing (no candidates)
"buf":"",
"candidates":""/*comma-separated values*/}

View File

@@ -154,13 +154,18 @@ class ActorConveyors : ActorWithBody {
it.color = COL_BELT_ALT
val segmentLen = s / c
val topSegRemainder = l % segmentLen
for (i in 0 until c) {
for (i in 0 until c / 2) { // not exact code but whatever
val x1 = btx1 + r * sin(di - HALF_PI) * (i - turn + 0.00) * segmentLen
val y1 = bty1 + r * cos(di - HALF_PI) * (i - turn + 0.00) * segmentLen
val x2 = btx1 + r * sin(di - HALF_PI) * (i - turn + 0.25) * segmentLen
val y2 = bty1 + r * cos(di - HALF_PI) * (i - turn + 0.25) * segmentLen
drawLineOnWorld(x1, y1, x2, y2, 2f)
if (x1 < btx2) {
if (y2 > y1)
drawLineOnWorld(x1, y1, minOf(x2, btx2), minOf(y2, bty2), 2f)
else
drawLineOnWorld(x1, y1, minOf(x2, btx2), maxOf(y2, bty2), 2f)
}
}
it.color = COL_BELT_TOP