Aar0n
public static SymbolRoot(sp: Laya.Sprite, cfg: any) {
sp.graphics.drawCircle(0, 0, 20, "#ffffff", "#000000", 3);
sp.graphics.drawLine(-20, -20, 20, 20, "#000000", 3);
}
public static SymbolSeq(sp: Laya.Sprite, cfg: any) {
sp.graphics.drawLine(-20, 0, 20, 0, "#000000", 3);
sp.graphics.drawPoly(0, 0, [8, 8, 8, -8, 20, 0], "#000000", "#000000", 1);
}
public static SymbolQmark(sp: Laya.Sprite, cfg: any) {
Shape.drawText(sp, "?");
}
public static ShortCube(sp: Laya.Sprite, cfg: any) {
sp.graphics.drawPoly(
0,
0,
[-35, -35, -35, 35, 35, 35, 35, -35],
cfg.color,
"#000000",
3
);
}
public static LongCube(sp: Laya.Sprite, cfg: any) {
sp.graphics.drawPoly(
0,
0,
[-70, -35, -70, 35, 70, 35, 70, -35],
cfg.color,
"#000000",
3
);
}
public static TiltedCube(sp: Laya.Sprite, cfg: any) {
sp.graphics.drawPoly(
0,
0,
[-75, -35, -85, 35, 75, 35, 85, -35],
cfg.color,
"#000000",
3
);
}
public static ShotDiamond(sp: Laya.Sprite, cfg: any) {
sp.graphics.drawPoly(0, 0, [0, -35, -65, 0, 0, 35, 65, 0], cfg.color, "#000000", 3);
}
public static LongDiamond(sp: Laya.Sprite, cfg: any) {
sp.graphics.drawPoly(
0,
0,
[0, -50, -120, 0, 0, 50, 120, 0],
cfg.color,
"#000000",
3
);
}
public static Circle(sp: Laya.Sprite, cfg: any) {
sp.graphics.drawCircle(0, 0, 35, cfg.color, "#000000", 3);
}
public static LongCircle(g: Graphics, cfg: any) { }
public static drawText(sp: Laya.Sprite, text: string) {
sp.graphics.fillText(text, 0, -20, "20px Arial", "#000000", "center");
}