We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f91e3de + 5bf9a39 commit 4eebcf6Copy full SHA for 4eebcf6
GameJam2017/NoobFight/Screens/OptionsScreen.cs
@@ -32,11 +32,11 @@ public OptionsScreen(ScreenComponent manager) : base(manager)
32
HorizontalAlignment = HorizontalAlignment.Stretch;
33
Controls.Add(mainStack);
34
35
- var playerTextures = File.ReadAllLines("content/playertextures.txt").ToList();
+ var playerTextures = manager.Content.ListContent("player");
36
37
List<PlayerTexture> playerTex = new List<PlayerTexture>();
38
39
- foreach(var tex in playerTextures)
+ foreach(var tex in playerTextures.Select(Path.GetFileNameWithoutExtension))
40
{
41
try
42
0 commit comments