Skip to content
Snippets Groups Projects
Commit 9cbf79b9 authored by Drahomír Karchňák's avatar Drahomír Karchňák
Browse files

#328 #350 Added new badge board dialog texture. Changed layout of profile screen.

parent d717a406
No related branches found
No related tags found
No related merge requests found
core/assets/common/_global/application/dialog/dialog_badgeboard.9.png

96.8 KiB | W: | H:

core/assets/common/_global/application/dialog/dialog_badgeboard.9.png

374 KiB | W: | H:

core/assets/common/_global/application/dialog/dialog_badgeboard.9.png
core/assets/common/_global/application/dialog/dialog_badgeboard.9.png
core/assets/common/_global/application/dialog/dialog_badgeboard.9.png
core/assets/common/_global/application/dialog/dialog_badgeboard.9.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -28,22 +28,24 @@ import cz.nic.tablexia.util.ui.button.TablexiaButton;
public class ProfileScreen extends FormScreen {
private static final float PROGRESS_BAR_WIDTH = 0.8f;
private static final float PROGRESS_BAR_BOTTOM_OFFSET = 0.10f;
private static final float PROGRESS_BAR_BOTTOM_OFFSET = 0.28f;
private static final float PROGRESS_BAR_SPEED = 3.0f;
private static final ApplicationFontManager.FontType_NEW RANK_NAME_FONT_TYPE = ApplicationFontManager.FontType_NEW.BOLD_20;
private static final String PROGRESS_STATUS_ARROW = "gfx/progress_arrow";
private static final float PROGRESS_STATUS_WIDTH = 0.8f;
private static final float PROGRESS_STATUS_ARROWS_WIDTH = 0.45f;
private static final float PROGRESS_STATUS_BADGE_WIDTH = 0.15f;
private static final float PROGRESS_STATUS_BOTTOM_OFFSET = 0.16f;
private static final float PROGRESS_STATUS_BOTTOM_OFFSET = 0.33f;
private static final String USER_UUID_ERROR = "user_uuid_error";
private static final String USER_UUID_DESCRIPTION_TEXT = "user_uuid_description";
private static final float BADGE_HEIGHT = 0.4f;
private static final float BADGE_POSITON_Y_SCALE = 0.46f;
private static final float USER_UUID_DESCRIPTION_POSITION_Y_SCALE = 0.21f;
private static final float USER_UUID_POSITION_Y_SCALE = 0.185f;
private static final float USER_UUID_DESCRIPTION_POSITION_Y_SCALE = 0.08f;
private static final float USER_UUID_POSITION_Y_SCALE = 0.05f;
private static final float USER_UUID_PADDING = 0.055f; //Percent from page width
private static final int CLOSE_BUTTON_PADDING = 20;
......@@ -131,6 +133,7 @@ public class ProfileScreen extends FormScreen {
TablexiaLabel resultLabel;
String resultLabelText = getSelectedUser().getUuid() == null || getSelectedUser().getUuid().isEmpty() ? getText(USER_UUID_ERROR) : getText(USER_UUID_DESCRIPTION_TEXT);
resultLabelText = getText(USER_UUID_DESCRIPTION_TEXT);
resultLabel = new TablexiaLabel(
resultLabelText,
......@@ -148,10 +151,11 @@ public class ProfileScreen extends FormScreen {
}
private TablexiaLabel createUserUuidLabel() {
if(getSelectedUser().getUuid() == null || getSelectedUser().getUuid().isEmpty())
return null;
// if(getSelectedUser().getUuid() == null || getSelectedUser().getUuid().isEmpty())
// return null;
TablexiaLabel label = new TablexiaLabel(getSelectedUser().getUuid(), new TablexiaLabel.TablexiaLabelStyle(ApplicationFontManager.FontType_NEW.BOLD_16, Color.BLACK));
// TablexiaLabel label = new TablexiaLabel(getSelectedUser().getUuid(), new TablexiaLabel.TablexiaLabelStyle(ApplicationFontManager.FontType_NEW.BOLD_16, Color.BLACK));
TablexiaLabel label = new TablexiaLabel("UUUID-@33232-3232-13-213-213-3", new TablexiaLabel.TablexiaLabelStyle(ApplicationFontManager.FontType_NEW.BOLD_16, Color.BLACK));
label.setPosition(
book.getX(),
getStage().getWidth() * USER_UUID_POSITION_Y_SCALE
......@@ -217,7 +221,7 @@ public class ProfileScreen extends FormScreen {
nextBadge.setX(group.getWidth() - nextBadge.getWidth());
group.addActor(nextBadge);
TablexiaLabel rankName = new TablexiaLabel(ApplicationTextManager.getInstance().getText(currRank.getNameKey()), new TablexiaLabel.TablexiaLabelStyle(ApplicationFontManager.FontType_NEW.REGULAR_16, Color.BLACK));
TablexiaLabel rankName = new TablexiaLabel(ApplicationTextManager.getInstance().getText(currRank.getNameKey()), new TablexiaLabel.TablexiaLabelStyle(RANK_NAME_FONT_TYPE, Color.BLACK));
rankName.setSize(group.getWidth(), rankName.getHeight());
rankName.setAlignment(Align.center);
rankName.setY(progress.getY() + progress.getHeight());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment