예제 #1
0
    private void TabMonsterSpell()
    {
        TestMonster activeMonsterData = m_Main.ActiveMonsterData;

        if (activeMonsterData == null || activeMonsterData.AvailableSpells == null || activeMonsterData.AvailableSpells.Length == 0)
        {
            return;
        }
        GUILayout.Label("Target", new GUILayoutOption[0]);
        m_TargetIndex      = (ETarget)GUILayout.SelectionGrid((Int32)m_TargetIndex, m_PartySelection, m_PartySelection.Length, (GUILayoutOption[])null);
        m_MonsterSpellView = GUILayout.BeginScrollView(m_MonsterSpellView, new GUILayoutOption[]
        {
            GUILayout.MaxHeight(200f)
        });
        foreach (TestSpell testSpell in activeMonsterData.AvailableSpells)
        {
            if (GUILayout.Button(testSpell.Name, new GUILayoutOption[0]))
            {
                m_Main.MonsterCastSpell(m_TargetIndex, testSpell);
            }
        }
        GUILayout.EndScrollView();
    }