Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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);
            }
        }
Ejemplo n.º 8
0
        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();
        }
Ejemplo n.º 9
0
 private void InitializeComponentCustom()
 {
     // helper classes
     handler = new InputHandler(multiBoard);
     hcsm = new HaCreatorStateManager(multiBoard, ribbon, tabs, handler);
     hcsm.CloseRequested += hcsm_CloseRequested;
     hcsm.FirstMapLoaded += hcsm_FirstMapLoaded;
 }