protected override void OnInitialized(EventArgs e) { base.OnInitialized(e); #if asd Drawing drawing; drawing = Test('☻'); list.Items.Add(new DrawingImage(drawing)); for (int i = 33; i < 200; ++i) { char c = (char)i; drawing = Test(c); if (drawing == null) continue; list.Items.Add(new DrawingImage(drawing)); } #else var tileset = new TileSet("DefaultTileSet.xaml"); tileset.Load(); foreach (SymbolID s in Enum.GetValues(typeof(SymbolID))) { if (s == SymbolID.Undefined) continue; var drawing = tileset.GetDetailedDrawing(s, Dwarrowdelf.GameColor.None); list.Items.Add(new DrawingImage(drawing)); } #endif }
static TileSet() { s_defaultTileSet = new TileSet("DefaultTileSet"); s_defaultTileSet.Load(); }