fixed buttons
This commit is contained in:
parent
847409b426
commit
4be216938c
@ -10,7 +10,7 @@
|
|||||||
<a value="1.0" />
|
<a value="1.0" />
|
||||||
</property>
|
</property>
|
||||||
<property name="textAlign" type="String" value="Center" />
|
<property name="textAlign" type="String" value="Center" />
|
||||||
<property name="textVAlign" type="String" value="Center" />
|
<property name="textVAlign" type="String" value="Top" />
|
||||||
<property name="textWrap" type="String" value="NoWrap" />
|
<property name="textWrap" type="String" value="NoWrap" />
|
||||||
<property name="hoverColor" type="ColorRGBA">
|
<property name="hoverColor" type="ColorRGBA">
|
||||||
<r value="1.0" />
|
<r value="1.0" />
|
||||||
|
|||||||
@ -94,6 +94,7 @@ public class FileMetaInfoGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.startLoading();
|
listener.startLoading();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnStartLoading.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnStartLoading.setText("Play");
|
btnStartLoading.setText("Play");
|
||||||
btnStartLoading.setFontSize(labelFontSize);
|
btnStartLoading.setFontSize(labelFontSize);
|
||||||
|
|
||||||
@ -103,6 +104,7 @@ public class FileMetaInfoGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.cancel();
|
listener.cancel();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnCancel.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnCancel.setText("Cancel");
|
btnCancel.setText("Cancel");
|
||||||
btnCancel.setFontSize(labelFontSize);
|
btnCancel.setFontSize(labelFontSize);
|
||||||
|
|
||||||
|
|||||||
@ -77,38 +77,41 @@ public class GameGUI extends Panel implements Gui{
|
|||||||
float labelFontSize = screenHelper.calcX(20f);
|
float labelFontSize = screenHelper.calcX(20f);
|
||||||
|
|
||||||
btnStart = new ButtonBase(screen, new Vector2f(startPointx, startPointy),
|
btnStart = new ButtonBase(screen, new Vector2f(startPointx, startPointy),
|
||||||
new Vector2f(screenHelper.calcX(200f), screenHelper.calcY(30f))) {
|
new Vector2f(screenHelper.calcX(200f), screenHelper.calcY(40f))) {
|
||||||
@Override
|
@Override
|
||||||
public void onButtonMouseLeftUp(MouseButtonEvent evt, boolean toggled) {
|
public void onButtonMouseLeftUp(MouseButtonEvent evt, boolean toggled) {
|
||||||
listener.start();
|
listener.start();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnStart.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnStart.setText("Launch");
|
btnStart.setText("Launch");
|
||||||
btnStart.setTextAlign(BitmapFont.Align.Center);
|
|
||||||
btnStart.setFontSize(labelFontSize);
|
btnStart.setFontSize(labelFontSize);
|
||||||
|
|
||||||
|
|
||||||
btnResume = new ButtonBase(screen, new Vector2f(startPointx, startPointYMenu),
|
btnResume = new ButtonBase(screen, new Vector2f(startPointx, startPointYMenu),
|
||||||
new Vector2f(screenHelper.calcX(200f), screenHelper.calcY(30f))) {
|
new Vector2f(screenHelper.calcX(200f), screenHelper.calcY(40f))) {
|
||||||
@Override
|
@Override
|
||||||
public void onButtonMouseLeftUp(MouseButtonEvent evt, boolean toggled) {
|
public void onButtonMouseLeftUp(MouseButtonEvent evt, boolean toggled) {
|
||||||
listener.resume();
|
listener.resume();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnResume.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnResume.setText("Resume");
|
btnResume.setText("Resume");
|
||||||
btnResume.setTextAlign(BitmapFont.Align.Center);
|
|
||||||
btnResume.setFontSize(labelFontSize);
|
btnResume.setFontSize(labelFontSize);
|
||||||
|
|
||||||
btnMenu = new ButtonBase(screen, new Vector2f(startPointx, startPointYMenu + screenHelper.calcY(40f)),
|
|
||||||
new Vector2f(screenHelper.calcX(200f), screenHelper.calcY(30f))) {
|
btnMenu = new ButtonBase(screen, new Vector2f(startPointx, startPointYMenu + screenHelper.calcY(50f)),
|
||||||
|
new Vector2f(screenHelper.calcX(200f), screenHelper.calcY(40f))) {
|
||||||
@Override
|
@Override
|
||||||
public void onButtonMouseLeftUp(MouseButtonEvent evt, boolean toggled) {
|
public void onButtonMouseLeftUp(MouseButtonEvent evt, boolean toggled) {
|
||||||
listener.cancelTrack();
|
listener.cancelTrack();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnMenu.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnMenu.setText("Menu");
|
btnMenu.setText("Menu");
|
||||||
btnMenu.setTextAlign(BitmapFont.Align.Center);
|
|
||||||
btnMenu.setFontSize(labelFontSize);
|
btnMenu.setFontSize(labelFontSize);
|
||||||
|
|
||||||
|
|
||||||
indOverheat = new Indicator(screen, new Vector2f(0f, 0f), Indicator.Orientation.VERTICAL) {
|
indOverheat = new Indicator(screen, new Vector2f(0f, 0f), Indicator.Orientation.VERTICAL) {
|
||||||
@Override
|
@Override
|
||||||
public void onChange(float arg0, float arg1) {
|
public void onChange(float arg0, float arg1) {
|
||||||
|
|||||||
@ -105,6 +105,7 @@ public class HighscoreGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.back();
|
listener.back();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnBack.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnBack.setText("Back");
|
btnBack.setText("Back");
|
||||||
btnBack.setFontSize(buttonFontSize);
|
btnBack.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
@ -117,6 +118,7 @@ public class HighscoreGUI extends BackgroundedGui implements Gui {
|
|||||||
drawHighscores(scores);
|
drawHighscores(scores);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnFilter.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnFilter.setText("Filter Song Name");
|
btnFilter.setText("Filter Song Name");
|
||||||
btnFilter.setFontSize(buttonFontSize);
|
btnFilter.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,6 @@ public class LoadingGui extends BackgroundedGui implements Gui {
|
|||||||
|
|
||||||
indProgress = new IndicatorBase(screen, new Vector2f(startPointx, startPointy),
|
indProgress = new IndicatorBase(screen, new Vector2f(startPointx, startPointy),
|
||||||
new Vector2f(screenHelper.calcX(200f), screenHelper.calcY(30f)), Indicator.Orientation.HORIZONTAL);
|
new Vector2f(screenHelper.calcX(200f), screenHelper.calcY(30f)), Indicator.Orientation.HORIZONTAL);
|
||||||
indProgress.setIndicatorImage("Gui/Indicator/indicator_ol_x.png");
|
|
||||||
indProgress.setDisplayValues();
|
indProgress.setDisplayValues();
|
||||||
indProgress.setMaxValue(LoadingProgress.getProgressCount());
|
indProgress.setMaxValue(LoadingProgress.getProgressCount());
|
||||||
indProgress.setIndicatorColor(ColorRGBA.Black);
|
indProgress.setIndicatorColor(ColorRGBA.Black);
|
||||||
|
|||||||
@ -70,6 +70,7 @@ public class MenuGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.selectFile();
|
listener.selectFile();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnStart.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnStart.setText("Start Game");
|
btnStart.setText("Start Game");
|
||||||
btnStart.setFontSize(buttonFontSize);
|
btnStart.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
@ -79,6 +80,7 @@ public class MenuGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.openhighscore();
|
listener.openhighscore();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnHighscore.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnHighscore.setText("Highscore");
|
btnHighscore.setText("Highscore");
|
||||||
btnHighscore.setFontSize(buttonFontSize);
|
btnHighscore.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
@ -88,6 +90,7 @@ public class MenuGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.openOptions();
|
listener.openOptions();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnOptions.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnOptions.setText("Options");
|
btnOptions.setText("Options");
|
||||||
btnOptions.setFontSize(buttonFontSize);
|
btnOptions.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
@ -97,6 +100,7 @@ public class MenuGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.exitGame();
|
listener.exitGame();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnExit.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnExit.setText("Exit Game");
|
btnExit.setText("Exit Game");
|
||||||
btnExit.setFontSize(buttonFontSize);
|
btnExit.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
|
|||||||
@ -98,6 +98,7 @@ public class OptionsGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.save();
|
listener.save();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnSave.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnSave.setText("Save");
|
btnSave.setText("Save");
|
||||||
btnSave.setFontSize(labelFontSize);
|
btnSave.setFontSize(labelFontSize);
|
||||||
|
|
||||||
@ -107,6 +108,7 @@ public class OptionsGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.cancel();
|
listener.cancel();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnCancel.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnCancel.setText("Cancel");
|
btnCancel.setText("Cancel");
|
||||||
btnCancel.setFontSize(labelFontSize);
|
btnCancel.setFontSize(labelFontSize);
|
||||||
|
|
||||||
|
|||||||
@ -64,6 +64,7 @@ public class SelectTrackGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.selectFile();
|
listener.selectFile();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnSelectFile.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnSelectFile.setText("Select File");
|
btnSelectFile.setText("Select File");
|
||||||
btnSelectFile.setFontSize(buttonFontSize);
|
btnSelectFile.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
@ -77,6 +78,7 @@ public class SelectTrackGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.downloadYT();
|
listener.downloadYT();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnYTDownload.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnYTDownload.setText("YT Download");
|
btnYTDownload.setText("YT Download");
|
||||||
btnYTDownload.setFontSize(buttonFontSize);
|
btnYTDownload.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
@ -86,6 +88,7 @@ public class SelectTrackGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.cancel();
|
listener.cancel();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnCancel.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnCancel.setText("Cancel");
|
btnCancel.setText("Cancel");
|
||||||
btnCancel.setFontSize(buttonFontSize);
|
btnCancel.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
|
|||||||
@ -79,6 +79,7 @@ public class YTDownloadGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.downloadYTVideo(txtYTLink.getText());
|
listener.downloadYTVideo(txtYTLink.getText());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnYTDownload.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnYTDownload.setText("Download");
|
btnYTDownload.setText("Download");
|
||||||
btnYTDownload.setFontSize(buttonFontSize);
|
btnYTDownload.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
@ -88,6 +89,7 @@ public class YTDownloadGUI extends BackgroundedGui implements Gui {
|
|||||||
listener.cancel();
|
listener.cancel();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
btnCancel.setTextPadding(screenHelper.calcY(10f));
|
||||||
btnCancel.setText("Cancel");
|
btnCancel.setText("Cancel");
|
||||||
btnCancel.setFontSize(buttonFontSize);
|
btnCancel.setFontSize(buttonFontSize);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user