Ejemplo n.º 1
0
 public void Start(CharacterClassCollection ccc, EnemyAIInfo AII)
 {
     CCC      = ccc;
     this.AII = AII;
     ReloadAbilities();
     Show();
 }
Ejemplo n.º 2
0
        public void Start(BaseCharacter selectedBC)
        {
            if (selectedBC.CCCidentifier == 0)
            {
                var CCC = new CharacterClassCollection();
                CCC.ReloadFromDatabase(MapBuilder.gcDB);
                CCC.parent = selectedBC;
                MapBuilder.gcDB.AddCCC(CCC);
                selectedBC.CCC           = CCC;
                selectedBC.CCCidentifier = CCC.identifier;
            }

            this.selectedBC        = selectedBC;
            Text                   = "Editing character: " + selectedBC.shapeName + ", ID: " + selectedBC.shapeID;
            listBox1.SelectedIndex = -1;
            listBox2.SelectedIndex = -1;
            textBox1.Text          = "";
            button1.Enabled        = false;
            button2.Enabled        = false;
            checkBox1.Checked      = false;
            listBox1.Items.Clear();
            listBox1.Items.AddRange(MapBuilder.gcDB.gameClasses.ToArray());
            listBox2.Items.Clear();
            listBox2.Items.AddRange(selectedBC.CCC.charClassList.ToArray());
            Show();
        }
Ejemplo n.º 3
0
 internal ClassLineupInfo(BaseCharacter bc)
 {
     if (!bInitialize)
     {
         Initialize();
     }
     this.bc = bc;
     CCC     = bc.CCC;
     cpl     = new ClassPanelLayout(leftPanelRenderLoc, CCC, CCC.allClassesExceptEquipped());
 }
Ejemplo n.º 4
0
        internal ClassPanelLayout(Rectangle pos, CharacterClassCollection ccc, List <BaseClass> lbc)
        {
            renderPos = pos;
            this.CCC  = ccc;
            if (!bInitialize)
            {
                Initialize(pos);
            }

            for (int i = 0; i < lbc.Count; i++)
            {
                panels.Add(new ClassPanel(i, pos.Location, CCC.charClassList[i], this));
            }

            if (panels.Count > 2)
            {
                maxScroll = panels[panels.Count - 2].heightIndicator();
            }
            else
            {
                maxScroll = 0;
            }
        }