public enum Text extends Enum<Text>
Such codes are used in calls to Game.drawText(bwapi.CoordinateType, int, int, java.lang.String, bwapi.Text...)
, Game.printf(java.lang.String, bwapi.Text...)
Modifier and Type | Class and Description |
---|---|
static class |
Text.Size
Enumeration of available text sizes.
|
Enum Constant and Description |
---|
Align_Center
An alignment directive that aligns the text to the center of the screen.
|
Align_Right
An alignment directive that aligns the text to the right side of the screen.
|
Blue
A deep blue.
|
BrightRed
A type of red.
|
Brown
A dark brown.
|
Cyan
A cyan color.
|
DarkGreen
A dark green.
|
Default
Uses the default blueish color.
|
Green
A solid green.
|
Grey
A dark grey.
|
GreyBlue
A dark blueish color.
|
GreyCyan
A different type of Cyan.
|
GreyGreen
A type of Green.
|
Invisible
This code hides all text and formatting that follows.
|
Invisible2
This code hides all text and formatting that follows.
|
LightYellow
A bright yellow.
|
Orange
A solid orange.
|
PlayerWhite
A dirty white.
|
PlayerYellow
A deep yellow.
|
Previous
Uses the previous color that was specified before the current one.
|
Purple
A deep purple.
|
Red
A deep red.
|
Tan
A tan color.
|
Teal
A teal color.
|
Turquoise
A bright blue color.
|
White
A bright white.
|
Yellow
A solid yellow.
|
Modifier and Type | Method and Description |
---|---|
static String |
formatText(String text,
Text format)
Format text with a textcolor to display on broodwar
|
static Text |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Text[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Text Previous
public static final Text Default
public static final Text Yellow
public static final Text White
public static final Text Grey
public static final Text Red
public static final Text Green
public static final Text BrightRed
public static final Text Invisible
public static final Text Blue
public static final Text Teal
public static final Text Purple
public static final Text Orange
public static final Text Align_Right
public static final Text Align_Center
public static final Text Invisible2
public static final Text Brown
public static final Text PlayerWhite
public static final Text PlayerYellow
public static final Text DarkGreen
public static final Text LightYellow
public static final Text Cyan
public static final Text Tan
public static final Text GreyBlue
public static final Text GreyGreen
public static final Text GreyCyan
public static final Text Turquoise
public static Text[] values()
for (Text c : Text.values()) System.out.println(c);
public static Text valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.