Beispiel #1
0
        public string OnGUI_drawSearchPulldown(Rect searchbarRect)
        {
            float itemHeight = searchbarRect.height * 1.2f;

            GUIContent[] content = new GUIContent[]
            {
                new GUIContent("   Type"),
                new GUIContent("   Description"),
                new GUIContent("   Rarity"),
                new GUIContent("   Count"),
                new GUIContent("   Level"),
                new GUIContent("   Set"),
                new GUIContent("   Flavor"),
                new GUIContent("   Cost"),
                new GUIContent("   Attack"),
                new GUIContent("   Countdown"),
                new GUIContent("   Health")
            };
            string[] array = new string[]
            {
                "t:",
                "d:",
                "r:",
                "#:",
                "l:",
                "s:",
                "fl:",
                "c:",
                "ap:",
                "cd:",
                "hp:"
            };
            int num = DeckBuilder2.OnGUI_drawButtonList(this.pulldownSkin, searchbarRect, true, itemHeight, content, array, out this._searchDropdownBoundingRect);

            return((num < 0) ? null : array[num]);
        }