本文整理汇总了Java中tonegod.gui.controls.extras.Indicator类的典型用法代码示例。如果您正苦于以下问题:Java Indicator类的具体用法?Java Indicator怎么用?Java Indicator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Indicator类属于tonegod.gui.controls.extras包,在下文中一共展示了Indicator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: StaminaGauge
import tonegod.gui.controls.extras.Indicator; //导入依赖的package包/类
public StaminaGauge(Screen screen, String filePath, Vector2f position) {
gauge = new Indicator(screen, position, new Vector2f(300, 15),
new Vector4f(5, 50, 50, 5), filePath + "skill.png", Element.Orientation.HORIZONTAL) {
@Override
public void onChange(float currentValue, float currentPercentage) {
}
};
((Indicator)gauge).setIndicatorColor(ATBGauge.getColor("Blue"));
((Indicator)gauge).setAlphaMap(filePath + "skillAlpha.png");
((Indicator)gauge).setOverlayImage(filePath + "skillOverlay.png");
((Indicator)gauge).setBaseImage(filePath + "skill.png");
((Indicator)gauge).setMaxValue(100);
}
示例2: LayoutParser
import tonegod.gui.controls.extras.Indicator; //导入依赖的package包/类
public LayoutParser(Screen screen) {
this.screen = screen;
controls.add(OSRViewPort.class);
controls.add(Indicator.class);
controls.add(Slider.class);
controls.add(Dial.class);
controls.add(CheckBox.class);
controls.add(RadioButton.class);
controls.add(Button.class);
controls.add(ChatBox.class);
controls.add(ChatBoxExt.class);
controls.add(Panel.class);
controls.add(ColorWheel.class);
controls.add(LoginBox.class);
controls.add(AlertBox.class);
controls.add(DialogBox.class);
controls.add(Window.class);
controls.add(TabControl.class);
controls.add(SelectBox.class);
controls.add(ComboBox.class);
controls.add(Menu.class);
controls.add(SelectList.class);
controls.add(ScrollArea.class);
controls.add(SlideTray.class);
controls.add(Spinner.class);
controls.add(Label.class);
controls.add(Password.class);
controls.add(TextField.class);
}
示例3: initIndicator
import tonegod.gui.controls.extras.Indicator; //导入依赖的package包/类
/**
* The {@param param} value work as : name.color.fillingdirection.filepath.
* for color {@link getColor(String string)}
*
* @param screen Tonegod screen used.
* @param param Parameter used to generate the jauge.
* @param pos Position on the screen.
* @param size Size of the jauge.
* @param overlay Alpha image to put over the jauge.
* @return A newly generated jauge on the desired position.
*/
protected static Indicator initIndicator(Screen screen, String param, Vector2f pos, Vector2f size, boolean overlay) {
String[] params = param.split("\\.");
Indicator ind = new Indicator(screen, pos, size,
Element.Orientation.valueOf(params[2]), overlay) {
@Override
public void onChange(float currentValue, float currentPercentage) {
}
};
ind.setIndicatorColor(getColor(params[1]));
ind.setAlphaMap(params[3] + params[0] + "Alpha.png");
ind.setMaxValue(100);
return ind;
}
示例4: getGauge
import tonegod.gui.controls.extras.Indicator; //导入依赖的package包/类
@Override
public Indicator getGauge() {
return (Indicator)gauge;
}