コード例 #1
0
        private void drawFooter()
        {
            // Add all
            EditorGUILayout.BeginHorizontal();
            minPercent = EditorGUILayout.FloatField("Min %", minPercent);
            maxPercent = EditorGUILayout.FloatField("Max %", maxPercent);
            EditorGUILayout.EndHorizontal();

            if (GUILayout.Button("Add All Text"))
            {
                indexAllText();
            }

            // Add One specific
            //BDKSettings_TextSize textSize;
            textSize = EditorGUILayout.ObjectField(textSize, typeof(BDKSettings_TextSize), true) as BDKSettings_TextSize;
            if (textSize != null)
            {
                addTextResizing(textSize);
            }

            // Wipe out issues
            GUILayout.Label("Wipe Items added Clean");

            if (GUILayout.Button("Delete Added Text Size"))
            {
                delteAllTextResizing();
            }
        }
コード例 #2
0
        // add Specific
        private void addTextResizing(BDKSettings_TextSize textSize)
        {
            if (textSize == null)
            {
                return;
            }

            textManager.addText(textSize);
        }
コード例 #3
0
        public void addText(BDKSettings_TextSize textSize)
        {
            if (textSize == null)
            {
                return;
            }

            if (!textList.Contains(textSize))
            {
                textList.Add(textSize);
            }
        }