private void Mainframe_Level_Editor_Resize(object sender, System.EventArgs e) { EditorTabControl.SetBounds(ConstantHolder.GAME_WIDTH + 60, 30, Width - ConstantHolder.GAME_WIDTH - 60, Height - 100); Instructions.SetBounds(pctSurface.Bounds.X, pctSurface.Height + pctSurface.Bounds.Y + 45, Instructions.Width, Instructions.Height); verticalScrollBar_Grid.SetBounds(ConstantHolder.GAME_WIDTH + pctSurface.Bounds.X, pctSurface.Bounds.Y, 30, ConstantHolder.GAME_HEIGHT); horizontalScrollBar_Grid.SetBounds(pctSurface.Bounds.X, ConstantHolder.GAME_HEIGHT + pctSurface.Bounds.Y, ConstantHolder.GAME_WIDTH, 30); }
public Mainframe_Level_Editor() { InitializeComponent(); pctSurface.Width = ConstantHolder.GAME_WIDTH; pctSurface.Height = ConstantHolder.GAME_HEIGHT; Width = pctSurface.Width + 400; Height = pctSurface.Height + 200; EditorTabControl.SetBounds(ConstantHolder.GAME_WIDTH + 60, 30, Width - ConstantHolder.GAME_WIDTH - 60, Height - 100); Instructions.SetBounds(pctSurface.Bounds.X, pctSurface.Height + pctSurface.Bounds.Y + 45, Instructions.Width, Instructions.Height); verticalScrollBar_Grid.SetBounds(ConstantHolder.GAME_WIDTH + pctSurface.Bounds.X, pctSurface.Bounds.Y, 30, ConstantHolder.GAME_HEIGHT); horizontalScrollBar_Grid.SetBounds(pctSurface.Bounds.X, ConstantHolder.GAME_HEIGHT + pctSurface.Bounds.Y, ConstantHolder.GAME_WIDTH, 30); classComboBox.DataSource = System.Enum.GetValues(typeof(ConstantHolder.HeroClasses)); abilityComboBox1.DataSource = System.Enum.GetValues(typeof(ConstantHolder.Abilities)); abilityComboBox2.DataSource = System.Enum.GetValues(typeof(ConstantHolder.Abilities)); abilityComboBox3.DataSource = System.Enum.GetValues(typeof(ConstantHolder.Abilities)); }