public void SetInstructions(string text) { instructions.text = text; instructions.x = SHGUI.current.resolutionX - 5; instructions.GoFromRight(); //instructions.ForcedFadeIn (.7f); }
private void UpdateInstructions(string newtext) { if (instructions.text != newtext) { instructions.PunchIn(0f); } instructions.text = newtext; instructions.x = instructionsAnchorX; instructions.y = lines + 1; instructions.GoFromRight(); }
private void UpdateInstructions() { if (subElement == null) { return; } string lastInstructions = subElement.text; if (showInstructions && !textElement.IsFinished()) { if (textElement.manualUpdate) { if (textElement.IsAlmostFinished()) { subElement.text = LocalizationManager.Instance.GetLocalized("ENTER_TO_SEND_INPUT"); } else { subElement.text = LocalizationManager.Instance.GetLocalized("TYPE_TO_HACK_INPUT"); } } else { //if (!leftright) subElement.text = "WAIT"; } subElement.x = width - 2; subElement.y = height - 1; subElement.GoFromRight(); if (lastInstructions != subElement.text) { subElement.PunchIn(.6f); } } else { //this could backfire and null maybe? subElement.Kill(); } if (textElement.IsFinished()) { subElement.Kill(); } }
private void SetChatQuitInstructions(string newtext) { if (chatQuitInstructions == null) { return; } chatQuitInstructions.color = 'z'; if (chatQuitInstructions.text != newtext) { chatQuitInstructions.PunchIn(0f); } chatQuitInstructions.text = newtext; chatQuitInstructions.x = SHGUI.current.resolutionX - 5; chatQuitInstructions.GoFromRight(); }