From 5bf9a394a049f0fe071ed1bf31b0f79e796e2d28 Mon Sep 17 00:00:00 2001 From: jvbsl Date: Sun, 8 Jan 2017 19:10:51 +0100 Subject: [PATCH] Fixed options screen --- GameJam2017/NoobFight/Screens/OptionsScreen.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameJam2017/NoobFight/Screens/OptionsScreen.cs b/GameJam2017/NoobFight/Screens/OptionsScreen.cs index 70a6a15..6d20f72 100644 --- a/GameJam2017/NoobFight/Screens/OptionsScreen.cs +++ b/GameJam2017/NoobFight/Screens/OptionsScreen.cs @@ -32,11 +32,11 @@ public OptionsScreen(ScreenComponent manager) : base(manager) HorizontalAlignment = HorizontalAlignment.Stretch; Controls.Add(mainStack); - var playerTextures = File.ReadAllLines("content/playertextures.txt").ToList(); + var playerTextures = manager.Content.ListContent("player"); List playerTex = new List(); - foreach(var tex in playerTextures) + foreach(var tex in playerTextures.Select(Path.GetFileNameWithoutExtension)) { try {