Skip to content
Snippets Groups Projects
Commit 0e4072a8 authored by v.tarantik's avatar v.tarantik
Browse files

HOF assets path and names fix

parent 4d27ccb5
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ public class HallOfFameScreen extends AbstractTablexiaScreen<Void> {
}
//Trophies
texturesFileNames.addAll(TrophyHelper.getTrophyNamesList());
}
}
......@@ -3,18 +3,30 @@ package cz.nic.tablexia.screen.halloffame.helper;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import java.util.ArrayList;
import java.util.List;
import cz.nic.tablexia.game.trophy.GameTrophyDefinition;
/**
* Created by Václav Tarantík on 6.3.15.
*/
public class TrophyHelper {
private static final String TROPHY_SUBFOLDER_NAME = "screen/halloffame/trophy/";
private static final String TROPHY_PREFIX = "trophy_";
private static final String TROPHY_EXTENSION = ".png";
public enum TrophyType{
EMPTY,
SMALL,
FULL
}
public List<String> getTrophyNamesList(){
return null;
public static List<String> getTrophyNamesList(){
List<String> trophyNamesToBeLoaded = new ArrayList<String>();
for(GameTrophyDefinition trophyDefinition: GameTrophyDefinition.values()){
for(TrophyType trophyType : TrophyType.values()){
trophyNamesToBeLoaded.add(TROPHY_SUBFOLDER_NAME+TROPHY_PREFIX+trophyDefinition.getTrophyName()+"_"+trophyType.toString().toLowerCase()+TROPHY_EXTENSION);
}
}
return trophyNamesToBeLoaded;
}
}
package cz.nic.tablexia.desktop;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.jcabi.manifests.Manifests;
......
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