void DisplaySection(string sectionLabel, Rect sectionRect, bool DisplayLabel) { if (DisplayLabel) { GUI.Label(new Rect(sectionRect.x, sectionRect.y, 150, 20), sectionLabel); sectionRect.y += 20; } //Showing attribute/value pairs foreach (KeyValuePair <string, string> attr in GUIParams.dict[sectionLabel]) { string s = CompoundControls.LabelTextField(sectionRect, attr.Key, attr.Value, tinyText); GUIParams.add_string(sectionLabel, attr.Key, s); sectionRect.y += 20; } }
void AddTFAttributes(ref simParams s, string sectionLabel) { s.add_string(sectionLabel, "INITIAL_COUNT", ""); s.add_string(sectionLabel, "ON_RATE", ""); s.add_string(sectionLabel, "MOTIF_THRESH", ""); }