drag button should be extended for left swipe
This commit is contained in:
parent
04b7fcfd4c
commit
ec47b94f42
@ -28,26 +28,51 @@ public class DirectionDragButton extends DragButton {
|
|||||||
@NotNull
|
@NotNull
|
||||||
private final static Float DEFAULT_DIRECTION_TEXT_SCALE = 0.33f;
|
private final static Float DEFAULT_DIRECTION_TEXT_SCALE = 0.33f;
|
||||||
|
|
||||||
@Nullable
|
|
||||||
private String textUp;
|
|
||||||
|
|
||||||
@Nullable
|
|
||||||
private String textDown;
|
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private String textMiddle;
|
private String textMiddle;
|
||||||
|
|
||||||
@NotNull
|
private static class DirectionTextData {
|
||||||
private Point2d textUpPosition;
|
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private Point2d textDownPosition;
|
private String text;
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private TextPaint upTextPaint;
|
private Point2d position;
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private TextPaint downTextPaint;
|
private TextPaint paint;
|
||||||
|
|
||||||
|
private DirectionTextData(@NotNull String text) {
|
||||||
|
this.text = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public String getText() {
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setText(@NotNull String text) {
|
||||||
|
this.text = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public Point2d getPosition() {
|
||||||
|
return position;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPosition(@NotNull Point2d position) {
|
||||||
|
this.position = position;
|
||||||
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public TextPaint getPaint() {
|
||||||
|
return paint;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPaint(@NotNull TextPaint paint) {
|
||||||
|
this.paint = paint;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
private Float directionTextScale = DEFAULT_DIRECTION_TEXT_SCALE;
|
private Float directionTextScale = DEFAULT_DIRECTION_TEXT_SCALE;
|
||||||
|
Loading…
Reference in New Issue
Block a user