public BackupManager(MultiBoard multiBoard, InputHandler input, HaCreatorStateManager hcsm, System.Windows.Controls.TabControl tabs) { this.input = input; this.multiBoard = multiBoard; this.hcsm = hcsm; this.tabs = tabs; }
public BackupManager(MultiBoard multiBoard, InputHandler input, HaCreatorStateManager hcsm, HaCreator.ThirdParty.TabPages.PageCollection tabs) { this.input = input; this.multiBoard = multiBoard; this.hcsm = hcsm; this.tabs = tabs; }
public BackgroundPanel(HaCreatorStateManager hcsm) { this.hcsm = hcsm; InitializeComponent(); List<string> sortedBgSets = new List<string>(); foreach (KeyValuePair<string, WzImage> bS in Program.InfoManager.BackgroundSets) sortedBgSets.Add(bS.Key); sortedBgSets.Sort(); foreach (string bS in sortedBgSets) bgSetListBox.Items.Add(bS); }
public TilePanel(HaCreatorStateManager hcsm) { this.hcsm = hcsm; hcsm.SetTilePanel(this); InitializeComponent(); List<string> sortedTileSets = new List<string>(); foreach (KeyValuePair<string, WzImage> tS in Program.InfoManager.TileSets) sortedTileSets.Add(tS.Key); sortedTileSets.Sort(); foreach (string tS in sortedTileSets) tileSetList.Items.Add(tS); }
public ObjPanel(HaCreatorStateManager hcsm) { this.hcsm = hcsm; hcsm.SetObjPanel(this); InitializeComponent(); List<string> sortedObjSets = new List<string>(); foreach (KeyValuePair<string, WzImage> oS in Program.InfoManager.ObjectSets) sortedObjSets.Add(oS.Key); sortedObjSets.Sort(); foreach (string oS in sortedObjSets) objSetListBox.Items.Add(oS); }
public CommonPanel(HaCreatorStateManager hcsm) { this.hcsm = hcsm; InitializeComponent(); ImageViewer[] commonItems = new ImageViewer[] { miscItemsContainer.Add(CreateColoredBitmap(WzInfoTools.XNAToDrawingColor(UserSettings.FootholdColor)), "Foothold", true), miscItemsContainer.Add(CreateColoredBitmap(WzInfoTools.XNAToDrawingColor(UserSettings.RopeColor)), "Rope", true), miscItemsContainer.Add(CreateColoredBitmap(WzInfoTools.XNAToDrawingColor(UserSettings.ChairColor)), "Chair", true), miscItemsContainer.Add(CreateColoredBitmap(WzInfoTools.XNAToDrawingColor(UserSettings.ToolTipColor)), "Tooltip", true), miscItemsContainer.Add(CreateColoredBitmap(WzInfoTools.XNAToDrawingColor(UserSettings.MiscColor)), "Clock", true) }; foreach (ImageViewer item in commonItems) { item.MouseDown += new MouseEventHandler(commonItem_Click); item.MouseUp += new MouseEventHandler(ImageViewer.item_MouseUp); } }
public LifePanel(HaCreatorStateManager hcsm) { this.hcsm = hcsm; InitializeComponent(); foreach (KeyValuePair<string, ReactorInfo> entry in Program.InfoManager.Reactors) { reactors.Add(entry.Value.ID); } foreach (KeyValuePair<string, string> entry in Program.InfoManager.NPCs) { npcs.Add(entry.Key + " - " + entry.Value); } foreach (KeyValuePair<string, string> entry in Program.InfoManager.Mobs) { mobs.Add(entry.Key + " - " + entry.Value); } ReloadLifeList(); }
private void InitializeComponentCustom() { // helper classes handler = new InputHandler(multiBoard); hcsm = new HaCreatorStateManager(multiBoard, ribbon, tabs, handler); hcsm.CloseRequested += hcsm_CloseRequested; hcsm.FirstMapLoaded += hcsm_FirstMapLoaded; }