Permalink
Browse files

added overlays to resourcecommons.cs

  • Loading branch information...
1 parent 36050de commit 30bd5cf3dd04dc33f671d576d6300b458de72b48 Joseph Dillon committed Apr 19, 2012
Showing with 8 additions and 1 deletion.
  1. +0 −1 GUIManager.cs
  2. +8 −0 ResourceCommons.cs
View
@@ -25,7 +25,6 @@
using Gtk;
using Glade;
using System;
-using System.Threading;
namespace Tetris
{
View
@@ -55,6 +55,7 @@ static class ResourceCommons
public static Texture BlockGhost;
public static Dictionary<TetraminoColor, MeshRenderer> Blocks = new Dictionary<TetraminoColor, MeshRenderer>();
public static Dictionary<TetraminoType, Bitmap> BlockOverlays = new Dictionary<TetraminoType, Bitmap>();
+ public static Dictionary<TetraminoType, Bitmap> BlockOverlaysSmall = new Dictionary<TetraminoType, Bitmap>();
public static MeshRenderer Tetrion;
public static MeshRenderer Panel;
public static int Simple_Shader;
@@ -75,6 +76,13 @@ public static void Load()
BlockOverlays.Add(TetraminoType.S, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "S.png")));
BlockOverlays.Add(TetraminoType.Z, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "Z.png")));
BlockOverlays.Add(TetraminoType.T, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "T.png")));
+ BlockOverlaysSmall.Add(TetraminoType.I, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "Is.png")));
+ BlockOverlaysSmall.Add(TetraminoType.O, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "Os.png")));
+ BlockOverlaysSmall.Add(TetraminoType.J, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "Js.png")));
+ BlockOverlaysSmall.Add(TetraminoType.L, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "Ls.png")));
+ BlockOverlaysSmall.Add(TetraminoType.S, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "Ss.png")));
+ BlockOverlaysSmall.Add(TetraminoType.Z, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "Zs.png")));
+ BlockOverlaysSmall.Add(TetraminoType.T, new Bitmap(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "Ts.png")));
LoadTexture(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "tetrion.png"), out TetrionTexture);
LoadTexture(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "block.png"), out Block);
LoadTexture(Path.Combine(Path.Combine(Path.Combine(".", RESOURCE_DIR), TEXTURES_DIR), "blockGhost.png"), out BlockGhost);

0 comments on commit 30bd5cf

Please sign in to comment.