Skip to content

Commit

Permalink
Improvements in menus: bigger text, bigger icons, better padding of v…
Browse files Browse the repository at this point in the history
…isual components, etc.
  • Loading branch information
MetatransApps committed Nov 2, 2021
1 parent 5f3235b commit 82406cb
Show file tree
Hide file tree
Showing 21 changed files with 739 additions and 99 deletions.
5 changes: 1 addition & 4 deletions app/src/main/java/org/metatrans/commons/Activity_Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
public abstract class Activity_Base extends Activity {


private static final int ICON_FULL_SIZE = 150;


private int icon_size;


Expand Down Expand Up @@ -131,7 +128,7 @@ protected void initIconSize() {

int factor = 9;
icon_size = Math.min(screen_width / factor, screen_height / factor);
icon_size = Math.min(icon_size, ICON_FULL_SIZE);
icon_size = (int) (1.23 * icon_size);

/*
BitmapFactory.Options o = new BitmapFactory.Options();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
public interface IConfigurationEntry {

public int getID();
public int getName();

public int getIconResID();

public int getName();
public int getDescription();

public String getName_String();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public static int getOrderNumber(int cfgID) {
return i;
}
}

throw new IllegalStateException("CFG identifier " + cfgID + " not found.");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,13 @@ protected GameData_Base getGameData() {
protected Class<? extends Activity_Base> getActivityClass_Menu1() {
return Activity_Menu_Colours_Base.class;
}




protected int getText_Loading() {
return R.string.loading;
}


protected int getText_Menu0() {
return R.string.button_start;
}
Expand Down
Loading

0 comments on commit 82406cb

Please sign in to comment.