Added basic language support for terminators
This commit is contained in:
parent
e7198659ed
commit
90583973a6
245 changed files with 68928 additions and 67727 deletions
|
|
@ -5,6 +5,7 @@ import java.util.Random;
|
|||
import org.osgi.framework.BundleContext;
|
||||
import org.osgi.framework.ServiceReference;
|
||||
|
||||
import imgui.ImColor;
|
||||
import imgui.ImDrawList;
|
||||
import imgui.ImGui;
|
||||
import imgui.ImVec2;
|
||||
|
|
@ -43,12 +44,18 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer,
|
|||
UnicodePlane.BAMUM_SUPPLEMENT,
|
||||
UnicodePlane.TAI_XUAN_JING_SYMBOLS
|
||||
};
|
||||
private final static int Y_LINE_COLOR = ImColor.intToColor(200, 10, 10);
|
||||
private int[] yLine;
|
||||
private float[] yScale;
|
||||
|
||||
public static final class Ꝑŕḯṿª₮ḕ implements BãßBȍőnꝐŕḯṿª₮ḕ {
|
||||
private static final StringGhostKey GHOST_BUNDLE = StringGhostKey.asciiᴳʰᵒˢᵗ();
|
||||
|
||||
@BãßBȍőnSpiderWire注
|
||||
private NotepadDeskApp boon;
|
||||
|
||||
@BãßBȍőnSpiderEgg注()
|
||||
public VrGem4Unicode4DService locateVrGem4Unicode4DService(DefaultBãßBȍőnʸᴰ<NotepadDeskApp> boon) {
|
||||
public VrGem4Unicode4DService locateVrGem4Unicode4DService() {
|
||||
Class<?> eggType = VrGem4Unicode4DService.class;
|
||||
|
||||
BundleContext context = boon.toBBC().UNHOLY(Ꝑŕḯṿª₮ḕ.class).GHOST_OBJ(GHOST_BUNDLE, BundleContext.class);
|
||||
|
|
@ -86,6 +93,8 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer,
|
|||
}
|
||||
}
|
||||
gridChars = buf.toString();
|
||||
yLine = new int[4];
|
||||
yScale = new float[4];
|
||||
}
|
||||
|
||||
public void create() {
|
||||
|
|
@ -111,7 +120,22 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer,
|
|||
if (drawChar == null) {
|
||||
drawChar = unicode4DService.getCharacterForUnicode(DEFAULT_CHAR);
|
||||
}
|
||||
ImCharacter.drawUnicode4D(drawChar, x*ImCharacter.WIDTH, y*ImCharacter.HEIGHT, 0x3c68bb5b, drawList);
|
||||
float scale = 1f;
|
||||
int color = 0x3c68bb5b;
|
||||
for (int i=0;i<4;i++) {
|
||||
if (yLine[i] == 0) {
|
||||
continue;
|
||||
}
|
||||
if (y == yLine[i] && (x == 10 || x == 15 || x== 20 || x == 25 || x == 30 || x == 35 || x == 40 || x == 45 || x == 50 || x == 55)) {
|
||||
yScale[i] = yScale[i] + .11f;
|
||||
scale = yScale[i];
|
||||
color = Y_LINE_COLOR;
|
||||
if (yScale[i] > 50f) {
|
||||
yLine[i] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
ImCharacter.drawUnicode4D(drawChar, x*ImCharacter.WIDTH, y*ImCharacter.HEIGHT, color, drawList, scale);
|
||||
}
|
||||
}
|
||||
drawList.popClipRect();
|
||||
|
|
@ -124,6 +148,12 @@ public class NotepadDeskApp extends AbstractDeskApp implements DeskAppRenderer,
|
|||
return;
|
||||
}
|
||||
runCounter = Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO;
|
||||
for (int i=0;i<4;i++) {
|
||||
if (yLine[i] == 0) {
|
||||
yLine[i] = random.nextInt(gridHeight);
|
||||
yScale[i] = 1f;
|
||||
}
|
||||
}
|
||||
for (int x=gridHeight-1; x>Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO; x--) {
|
||||
for (int y=Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO; y<gridWidth; y++) {
|
||||
gridBuffer[x][y] = gridBuffer[x-1][y];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue