public bool InterceptConfirmation() { if (optionComponentConfirm != null) { optionComponentConfirm.Close(); optionChosenIndex = optionIndexConfirm; optionIndexConfirm = -1; optionIndexCancel = -1; optionComponentConfirm = null; optionComponentCancel = null; return(true); } return(InterceptActionPress()); }
public bool InterceptCancellation() { if (optionComponentCancel != null) { optionComponentCancel.Close(); optionChosenIndex = optionIndexCancel; optionIndexConfirm = -1; optionIndexCancel = -1; optionComponentConfirm = null; optionComponentCancel = null; return(true); } return(false); }
private void CloseQuestion() { QuestionRole boxQuestionRole = QuestionRole.None; TextBoxUI boxComponent = null; /*halmeida - start closure of the enunciate and all remaining options.*/ if (boxQuestionRoles != null) { for (int i = 0; i < boxQuestionRoles.Length; i++) { boxQuestionRole = boxQuestionRoles[i]; if (boxQuestionRole != QuestionRole.None) { /*halmeida - relying on the coherence of all box related arrays.*/ boxComponent = boxComponents[i]; if (boxComponent != null) { boxComponent.Close(); } } } } }