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

#328 Edited amount of experience points needed for particular ranks. Also...

#328 Edited amount of experience points needed for particular ranks. Also Badge should be displayed correctly on devices with different than 16/9 aspect ratio...
parent e17d3fb9
No related branches found
No related tags found
No related merge requests found
......@@ -23,14 +23,14 @@ public class UserRankManager {
RANK_I ( 0, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_I, ApplicationAtlasManager.BADGE_0, ApplicationAtlasManager.BADGE_0_ICON, new int[]{ 0, 0, 0, 0, 0, 0}),
RANK_II ( 1, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_II, ApplicationAtlasManager.BADGE_1, ApplicationAtlasManager.BADGE_1_ICON, new int[]{ 3, 3, 3, 3, 3, 3}),
RANK_III ( 2, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_III, ApplicationAtlasManager.BADGE_2, ApplicationAtlasManager.BADGE_2_ICON, new int[]{ 9, 9, 9, 9, 9, 9}),
RANK_IV ( 3, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_IV, ApplicationAtlasManager.BADGE_3, ApplicationAtlasManager.BADGE_3_ICON, new int[]{ 21, 21, 21, 21, 21, 21}),
RANK_V ( 4, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_V, ApplicationAtlasManager.BADGE_4, ApplicationAtlasManager.BADGE_4_ICON, new int[]{ 42, 42, 42, 42, 42, 42}),
RANK_VI ( 5, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_VI, ApplicationAtlasManager.BADGE_5, ApplicationAtlasManager.BADGE_5_ICON, new int[]{ 78, 78, 78, 78, 78, 78}),
RANK_VII ( 6, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_VII, ApplicationAtlasManager.BADGE_6, ApplicationAtlasManager.BADGE_6_ICON, new int[]{126, 126, 126, 126, 126, 126}),
RANK_VIII ( 7, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_VIII, ApplicationAtlasManager.BADGE_7, ApplicationAtlasManager.BADGE_7_ICON, new int[]{186, 186, 186, 186, 186, 186}),
RANK_IX ( 8, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_IX, ApplicationAtlasManager.BADGE_8, ApplicationAtlasManager.BADGE_8_ICON, new int[]{260, 260, 260, 260, 260, 260}),
RANK_X ( 9, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_X, ApplicationAtlasManager.BADGE_9, ApplicationAtlasManager.BADGE_9_ICON, new int[]{346, 346, 346, 346, 346, 346}),
RANK_XI (10, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_XI, ApplicationAtlasManager.BADGE_10, ApplicationAtlasManager.BADGE_10_ICON, new int[]{444, 444, 444, 444, 444, 444});
RANK_IV ( 3, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_IV, ApplicationAtlasManager.BADGE_3, ApplicationAtlasManager.BADGE_3_ICON, new int[]{ 18, 18, 18, 18, 18, 18}),
RANK_V ( 4, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_V, ApplicationAtlasManager.BADGE_4, ApplicationAtlasManager.BADGE_4_ICON, new int[]{ 30, 30, 30, 30, 30, 30}),
RANK_VI ( 5, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_VI, ApplicationAtlasManager.BADGE_5, ApplicationAtlasManager.BADGE_5_ICON, new int[]{ 48, 48, 48, 48, 48, 48}),
RANK_VII ( 6, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_VII, ApplicationAtlasManager.BADGE_6, ApplicationAtlasManager.BADGE_6_ICON, new int[]{ 73, 73, 73, 73, 73, 73}),
RANK_VIII ( 7, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_VIII, ApplicationAtlasManager.BADGE_7, ApplicationAtlasManager.BADGE_7_ICON, new int[]{105, 105, 105, 105, 105, 105}),
RANK_IX ( 8, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_IX, ApplicationAtlasManager.BADGE_8, ApplicationAtlasManager.BADGE_8_ICON, new int[]{145, 145, 145, 145, 145, 145}),
RANK_X ( 9, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_X, ApplicationAtlasManager.BADGE_9, ApplicationAtlasManager.BADGE_9_ICON, new int[]{193, 193, 193, 193, 193, 193}),
RANK_XI (10, ApplicationTextManager.ApplicationTextsAssets.USER_RANK_XI, ApplicationAtlasManager.BADGE_10, ApplicationAtlasManager.BADGE_10_ICON, new int[]{248, 248, 248, 248, 248, 248});
private int id;
private String nameKey;
......
......@@ -44,7 +44,7 @@ public class ProfileScreen extends FormScreen {
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 BADGE_POSITON_Y_SCALE = 0.52f;
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
......@@ -69,7 +69,7 @@ public class ProfileScreen extends FormScreen {
switchGender.setVisible(false);
clearName.setVisible(false);
badge.setY(getViewportHeight() * BADGE_POSITON_Y_SCALE);
badge.setY(getSceneInnerBottomY() + getSceneInnerHeight() * BADGE_POSITON_Y_SCALE);
Drawable d = new TextureRegionDrawable(new TextureRegion(getApplicationTextureRegion(UserAvatarDefinition.getAvatar(getSelectedUser().getAvatar()))));
mugshotImage.setDrawable(d);
......
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