small fixes
This commit is contained in:
parent
228eec0a79
commit
06a14ae645
2 changed files with 2 additions and 19 deletions
|
@ -3,22 +3,10 @@ package client.gui.element;
|
|||
import common.util.Util;
|
||||
|
||||
public class PasswordField extends Field {
|
||||
private byte[] passwordHash;
|
||||
|
||||
public PasswordField(int x, int y, int w, int h, int cap, FieldCallback callback, String text) {
|
||||
super(x, y, w, h, cap, callback, text);
|
||||
}
|
||||
|
||||
// protected void drawForeground(int x1, int y1, int x2, int y2) {
|
||||
// Drawing.txt_draw(x1 + this.text_x, y1 + this.text_y,
|
||||
// x1 + this.text_x, y1 + this.text_y,
|
||||
// Integer.MAX_VALUE, Integer.MAX_VALUE, this.enabled ? this.gm.style.text_field : Util.mulColor(this.gm.style.text_field, 0.5f), this.text.isEmpty() ? "" : "****");
|
||||
// }
|
||||
|
||||
// protected int getCursorX(int x1, int x2) {
|
||||
// return x1;
|
||||
// }
|
||||
|
||||
protected String getDrawnText() {
|
||||
return Util.repeatString("*", this.text.length());
|
||||
}
|
||||
|
@ -26,9 +14,4 @@ public class PasswordField extends Field {
|
|||
protected boolean canCopy() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void updateText() {
|
||||
super.updateText();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue