command completion
This commit is contained in:
parent
0839beb98e
commit
a8f6af2b37
11 changed files with 400 additions and 347 deletions
|
@ -512,6 +512,10 @@ public abstract class Drawing {
|
|||
return txt_size(0, 0, 0, 0, Integer.MAX_VALUE, Integer.MAX_VALUE, str).xpos;
|
||||
}
|
||||
|
||||
public static int getBoxWidth(String str) {
|
||||
return txt_box(0, 0, 0, 0, Integer.MAX_VALUE, Integer.MAX_VALUE, str).xpos + 4;
|
||||
}
|
||||
|
||||
public static void drawTextbox(String str, int x, int y, int back) {
|
||||
Vec2i size = txt_box(x + 2, y, x + 2, y, Integer.MAX_VALUE, Integer.MAX_VALUE, str);
|
||||
drawRect(x, y, size.xpos + 2, size.ypos, back);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue