Content mapping, part 1

This commit is contained in:
Anuken
2018-09-05 16:02:30 -04:00
parent be3147465d
commit eb3e507a11
57 changed files with 248 additions and 137 deletions

View File

@@ -7,6 +7,7 @@ import io.anuke.mindustry.core.ContentLoader;
import io.anuke.mindustry.game.Content;
import io.anuke.mindustry.game.UnlockableContent;
import io.anuke.mindustry.graphics.Palette;
import io.anuke.mindustry.type.ContentType;
import io.anuke.ucore.scene.event.HandCursorListener;
import io.anuke.ucore.scene.ui.Image;
import io.anuke.ucore.scene.ui.ScrollPane;
@@ -34,9 +35,9 @@ public class UnlocksDialog extends FloatingDialog{
table.margin(20);
ScrollPane pane = new ScrollPane(table, "clear-black");
OrderedMap<String, Array<Content>> allContent = ContentLoader.getContentMap();
OrderedMap<ContentType, Array<Content>> allContent = ContentLoader.getContentMap();
for(String key : allContent.orderedKeys()){
for(ContentType key : allContent.orderedKeys()){
Array<Content> array = allContent.get(key);
if(array.size == 0 || !(array.first() instanceof UnlockableContent)) continue;