Exemple #1
0
    private void TabPartySpell()
    {
        List <TestSpell> partySpells = m_Database.PartySpells;

        if (partySpells.Count == 0)
        {
            return;
        }
        GUILayout.Label("Wizard", new GUILayoutOption[0]);
        m_WizardIndex          = (ETarget)GUILayout.SelectionGrid((Int32)m_WizardIndex, m_PartySelection, m_PartySelection.Length, (GUILayoutOption[])null);
        m_PartySpellScrollView = GUILayout.BeginScrollView(m_PartySpellScrollView, new GUILayoutOption[]
        {
            GUILayout.MaxHeight(700f)
        });
        foreach (TestSpell testSpell in partySpells)
        {
            if (GUILayout.Button(testSpell.Name, m_leftAlignedBtnStyle, new GUILayoutOption[0]))
            {
                m_Main.PartyCastSpell(m_WizardIndex, testSpell);
            }
        }
        GUILayout.EndScrollView();
    }