public void ScrollUp() { enumLength = Enum.GetValues( typeof( TextMessageMenuState ) ).Length; int index = (int)textMessageMenuState; index = (index + enumLength - 1) % enumLength; textMessageMenuState = (TextMessageMenuState)index; string name = Enum.GetName (typeof(TextMessageMenuState), index); cs.SetScreenText("\n\nGo to "+name+"?"); }
public static void SetState(TextMessageMenuState newState) { textMessageMenuState = newState; }