コード例 #1
0
 public static TilePhysicsElement createElement(TilePhysicsManager managerT)
 {
     manager = managerT;
     element = new TilePhysicsElement(manager);
     SmallDialog_NewTile_Physics dialog = new SmallDialog_NewTile_Physics("新建物理单元");
     dialog.ShowDialog();
     return element;
 }
コード例 #2
0
        public static TilePhysicsElement createElement(TilePhysicsManager managerT)
        {
            manager = managerT;
            element = new TilePhysicsElement(manager);
            SmallDialog_NewTile_Physics dialog = new SmallDialog_NewTile_Physics("新建物理单元");

            dialog.ShowDialog();
            return(element);
        }
コード例 #3
0
 //设置地图单元
 public static void configElement(TilePhysicsElement elementT)
 {
     if (elementT == null)
     {
         Console.WriteLine("error in configElement");
         return;
     }
     manager = elementT.tilePhysicsManager;
     element = elementT;
     SmallDialog_NewTile_Physics dialog = new SmallDialog_NewTile_Physics("设置物理单元属性");
     dialog.numericUpDown_FlagInf.Value = element.getFlagInf();
     dialog.panel_MapColor.BackColor = GraphicsUtil.getColor(element.getColor());
     dialog.ShowDialog();
 }
コード例 #4
0
        //设置地图单元
        public static void configElement(TilePhysicsElement elementT)
        {
            if (elementT == null)
            {
                Console.WriteLine("error in configElement");
                return;
            }
            manager = elementT.tilePhysicsManager;
            element = elementT;
            SmallDialog_NewTile_Physics dialog = new SmallDialog_NewTile_Physics("设置物理单元属性");

            dialog.numericUpDown_FlagInf.Value = element.getFlagInf();
            dialog.panel_MapColor.BackColor    = GraphicsUtil.getColor(element.getColor());
            dialog.ShowDialog();
        }