Skip to content

Commit

Permalink
modifies the generic init code shape
Browse files Browse the repository at this point in the history
  • Loading branch information
hneemann committed Jan 20, 2021
1 parent c301e93 commit 74af030
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public void drawTo(Graphic graphic, Style highLight) {
if (!graphic.isFlagSet(Graphic.Flag.hideTest)) {
Polygon pol = new Polygon(true)
.add(SIZE2, SIZE2)
.add(SIZE2 + SIZE * 6, SIZE2)
.add(SIZE2 + SIZE * 6, SIZE * 2 + SIZE2)
.add(SIZE2 + SIZE * 4, SIZE2)
.add(SIZE2 + SIZE * 4, SIZE * 2 + SIZE2)
.add(SIZE2, SIZE * 2 + SIZE2);
Style textStyle = NORMAL;
if (enabled) {
Expand All @@ -64,8 +64,8 @@ public void drawTo(Graphic graphic, Style highLight) {
textStyle = DISABLED;
}

graphic.drawText(new Vector(SIZE2 + SIZE * 3, SIZE + SIZE2), "generic", Orientation.CENTERCENTER, textStyle);
graphic.drawText(new Vector(SIZE2 + SIZE * 3, 0), label, Orientation.CENTERBOTTOM, textStyle);
graphic.drawText(new Vector(SIZE2 + SIZE * 2, SIZE + SIZE2), "init", Orientation.CENTERCENTER, textStyle);
graphic.drawText(new Vector(SIZE2 + SIZE * 2, 0), label, Orientation.CENTERBOTTOM, textStyle);
}
}
}

0 comments on commit 74af030

Please sign in to comment.