public Control CreateControl(Manager manager, Control parent, PropertyInfo field, object existingData) { _imageSelector = new ImageSelector(manager, _imagePaths); _imageSelector.SetSelected(_defaultIndex); var rawControl = _imageSelector.Panel; rawControl.Name = field.Name; rawControl.Parent = parent; return rawControl; }
public Control CreateControl(Manager manager, Control parent, PropertyInfo field, object existingData) { _imageSelector = new ImageSelector(manager, _imagePaths); _imageSelector.SetSelected(_defaultIndex); var rawControl = _imageSelector.Panel; rawControl.Name = field.Name; rawControl.Parent = parent; return(rawControl); }
public void PopulateGameInfo(TabPage tabPage) { /*tabPage.Text = "Game Info"; * * var gameType = GuiHelpers.AddComboBox(ControlManager.Manager, tabPage, "Select Game Type", "gameType", new string[] { "Passport Stamps", "Age Counter" }, 50, 200, 30, 130); * * var ageTextBox = GuiHelpers.AddInputRow(ControlManager.Manager, tabPage, "Age Limit", "AgeLimit", 100, 200, 30, -1); * * gameType.ItemIndexChanged += (sender, args) => ChangeGameType(ageTextBox, gameType.ItemIndex); * * string[] temp = { "Default", "Custom" }; * var worldSelection = GuiHelpers.AddComboBox(ControlManager.Manager, tabPage, "Select World", "SelectWorld", temp, 150, 200, 30, 130);*/ var Padding = 20; var imageSelector = new ImageSelector(ControlManager.Manager, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10") { Width = Convert.ToInt16(tabPage.Width / 1.5f), Height = tabPage.Height / 2 - Padding, Parent = tabPage, Left = 200, Top = 200, AutoScroll = true }; imageSelector.Initialise(); }
public void PopulateGameInfo(TabPage tabPage) { /*tabPage.Text = "Game Info"; var gameType = GuiHelpers.AddComboBox(ControlManager.Manager, tabPage, "Select Game Type", "gameType", new string[] { "Passport Stamps", "Age Counter" }, 50, 200, 30, 130); var ageTextBox = GuiHelpers.AddInputRow(ControlManager.Manager, tabPage, "Age Limit", "AgeLimit", 100, 200, 30, -1); gameType.ItemIndexChanged += (sender, args) => ChangeGameType(ageTextBox, gameType.ItemIndex); string[] temp = { "Default", "Custom" }; var worldSelection = GuiHelpers.AddComboBox(ControlManager.Manager, tabPage, "Select World", "SelectWorld", temp, 150, 200, 30, 130);*/ var Padding = 20; var imageSelector = new ImageSelector(ControlManager.Manager, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10") { Width = Convert.ToInt16(tabPage.Width / 1.5f), Height = tabPage.Height / 2 - Padding, Parent = tabPage, Left = 200, Top = 200, AutoScroll = true }; imageSelector.Initialise(); }