mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
more belt graphics
This commit is contained in:
65977
assets/keylayout/anthy_dict/anthy_dict.t
Normal file
65977
assets/keylayout/anthy_dict/anthy_dict.t
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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*/}
|
||||
@@ -316,4 +316,4 @@ return Object.freeze({"n":"五仓简体 Qwerty","v":"many","c":"CuriousTo\uA75Bv
|
||||
},
|
||||
"reset":()=>{ reset() },
|
||||
"composing":()=>(states.code!=0)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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*/}
|
||||
@@ -316,4 +316,4 @@ return Object.freeze({"n":"五倉正體 Qwerty","v":"many","c":"CuriousTo\uA75Bv
|
||||
},
|
||||
"reset":()=>{ reset() },
|
||||
"composing":()=>(states.code!=0)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user