コード例 #1
0
        void monsterList_Click(object sender, int row, int col)
        {
            try
            {
                if (selectedRow == row)
                {
                    return;
                }

                if (row == 0)
                {
                    row = 1;
                }

                ((HudStaticText)monsterList[selectedRow][0]).Text = "";

                selectedRow = row;

                ((HudStaticText)monsterList[selectedRow][0]).Text = "*";

                combatTrackerGUIInfo.Clear();

                updateCombatTrackerGUIInfo();
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #2
0
        void monsterList_Click(object sender, int row, int col)
        {
            try
            {
                if (selectedRow == row)
                {
                    return;
                }

                if (row == 0)
                {
                    row = 1;
                }

                ((HudStaticText)monsterList[selectedRow][0]).Text = "";

                selectedRow = row;

                ((HudStaticText)monsterList[selectedRow][0]).Text = "*";

                combatTrackerGUIInfo.Clear();

                if (selectedRow == 0 || selectedRow == 1)
                {
                    loadInfoForName("All");
                }
                else
                {
                    loadInfoForName(((HudStaticText)monsterList[selectedRow][1]).Text);
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }