Ejemplo n.º 1
0
 public GridScreen(Rectangle bounds, KeyMap map)
 {
     Bounds = bounds;
     Root = new RootPanel(InnerRect);
     ActivePanel = Root;
     Map = map;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// パネルを分割して子パネルをディクショナリに追加
 /// </summary>
 /// <param name="g"></param>
 /// <param name="map"></param>
 public void CreateChildren(Graphics g, KeyMap map)
 {
     DicChildren = new Dictionary<string, GridPanel>();
     for (var x = 0; x < map.Division.X; x++)
     {
         for (var y = 0; y < map.Division.Y; y++)
         {
             var key = map.GetKey(x, y);
             var panel = new GridPanel(this, g, map.Division, x, y, key);
             DicChildren.Add(key, panel);
         }
     }
 }