public static TilePhysicsElement createElement(TilePhysicsManager managerT) { manager = managerT; element = new TilePhysicsElement(manager); SmallDialog_NewTile_Physics dialog = new SmallDialog_NewTile_Physics("新建物理单元"); dialog.ShowDialog(); return element; }
public static TilePhysicsElement createElement(TilePhysicsManager managerT) { manager = managerT; element = new TilePhysicsElement(manager); SmallDialog_NewTile_Physics dialog = new SmallDialog_NewTile_Physics("新建物理单元"); dialog.ShowDialog(); return(element); }
//设置地图单元 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(); }