// SET ACTIVE TABID //Bug: currently using the TAB key to change fields doesnt work - will be fixed ASAP public void fncSetActiveTabID(string strFunction) { if (IsLabel != true) { if (GetComponent <GUIText>().text == strDefaultText) { GetComponent <GUIText>().text = ""; } GenericGUIMethods genericGUIMethods = (GenericGUIMethods)TopLevelParent.GetComponent(typeof(GenericGUIMethods)); switch (strFunction) { case "This": genericGUIMethods.TextFieldTabActive = TabID; break; /*case "Next": //TO BE FIXED * if(TabID < genericGUIMethods.TextFieldTabCount){ * genericGUIMethods.TextFieldTabActive++; * }else{ * genericGUIMethods.TextFieldTabActive=1; * } * break;*/ } } }
// GET ACTIVE TABID int fncGetActiveTabID() { GenericGUIMethods genericGUIMethods = (GenericGUIMethods)TopLevelParent.GetComponent(typeof(GenericGUIMethods)); return(genericGUIMethods.TextFieldTabActive); }