Esempio n. 1
0
        private void buttonAddRow_Click(object sender, EventArgs e)
        {
            SlotColumn newSlot = new SlotColumn(this, "New Mod", haslxx, _CurrentFighter.modelParts.ToArray());

            slotColumns.Add(newSlot);
            ++slotCount;
        }
Esempio n. 2
0
 void SetSymbol(SlotColumn col, SlotRow row, E_SlotMachineSymbol symbol)
 {
     if ((int)symbol < (int)E_SlotMachineSymbol.First)
     {
         symbol = (E_SlotMachineSymbol)((int)symbol + (int)E_SlotMachineSymbol.Last);
     }
     if ((int)symbol > (int)E_SlotMachineSymbol.Last)
     {
         symbol = (E_SlotMachineSymbol)((int)symbol - (int)E_SlotMachineSymbol.Last);
     }
     m_Slots[(int)col][(int)row].SetSymbol(symbol);
 }
Esempio n. 3
0
        public void Initialize()
        {
            flowLayoutPanelNames.HorizontalScroll.Enabled = true;
            flowLayoutPanelNames.HorizontalScroll.Maximum = 10000;
            flowLayoutPanelNames.HorizontalScroll.Visible = false;

            haslxx = _CurrentFighter.lowPolySlots != Fighter.LowPolySlots.None;
            int haslxxNum       = haslxx ? 1 : 0;
            int modelPartsCount = _CurrentFighter.modelParts.Count;

            slotCount = (int)Math.Ceiling((float)ModelNutDirectories.Length / (float)(modelPartsCount + haslxxNum));

            ComboBoxList_ModelNutDirectories  = GetComboBoxStrings(ModelNutDirectories, true);
            ComboBoxList_Files_chr_00         = GetComboBoxStrings(Files_chr_00, false);
            ComboBoxList_Files_chr_11         = GetComboBoxStrings(Files_chr_11, false);
            ComboBoxList_Files_chr_13         = GetComboBoxStrings(Files_chr_13, false);
            ComboBoxList_Files_stock_90       = GetComboBoxStrings(Files_stock_90, false);
            ComboBoxList_Files_chrn_11        = GetComboBoxStrings(Files_chrn_11, false);
            ComboBoxList_Files_Sound_Nus3bank = GetComboBoxStrings(Files_Sound_Nus3bank, false);
            ComboBoxList_Files_Voice_Nus3bank = GetComboBoxStrings(Files_Voice_Nus3bank, false);

            //Add rows and fill in starting data
            for (int i = 0; i < slotCount; ++i)
            {
                SlotColumn newSlot = new SlotColumn(this, "New Mod", haslxx, _CurrentFighter.modelParts.ToArray());
                slotColumns.Add(newSlot);
                newSlot.comboBox_body.SelectedIndex = 1 + i < ComboBoxList_ModelNutDirectories.Length ? 1 + i : 0;
                for (int k = 1; k < modelPartsCount; ++k)
                {
                    newSlot.comboBox_parts[k - 1].SelectedIndex = (i + 1 + ((k + (k < 1 ? 0 : haslxxNum)) * slotCount) < ComboBoxList_ModelNutDirectories.Length) ? i + 1 + ((k + (k < 1 ? 0 : haslxxNum)) * slotCount) : 0;
                }
                if (haslxx)
                {
                    newSlot.comboBox_body_lxx.SelectedIndex = (i + 1 + slotCount < ComboBoxList_ModelNutDirectories.Length) ? i + 1 + slotCount : 0;
                }

                newSlot.comboBox_chr_00.SelectedIndex   = (i + 1 < ComboBoxList_Files_chr_00.Length) ? i + 1 : 0;
                newSlot.comboBox_chr_11.SelectedIndex   = (i + 1 < ComboBoxList_Files_chr_11.Length) ? i + 1 : 0;
                newSlot.comboBox_chr_13.SelectedIndex   = (i + 1 < ComboBoxList_Files_chr_13.Length) ? i + 1 : 0;
                newSlot.comboBox_stock_90.SelectedIndex = (i + 1 < ComboBoxList_Files_stock_90.Length) ? i + 1 : 0;
                newSlot.comboBox_chrn_11.SelectedIndex  = (i + 1 < ComboBoxList_Files_chrn_11.Length) ? i + 1 : 0;
                newSlot.comboBox_sound.SelectedIndex    = (i + 1 < ComboBoxList_Files_Sound_Nus3bank.Length) ? i + 1 : 0;
                newSlot.comboBox_voice.SelectedIndex    = (i + 1 < ComboBoxList_Files_Voice_Nus3bank.Length) ? i + 1 : 0;
            }
            HelpBox.Show(6);
        }