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(); } }
// add Specific private void addTextResizing(BDKSettings_TextSize textSize) { if (textSize == null) { return; } textManager.addText(textSize); }
public void addText(BDKSettings_TextSize textSize) { if (textSize == null) { return; } if (!textList.Contains(textSize)) { textList.Add(textSize); } }