/** * <summary>Performs what should happen when the element is clicked on.</summary> * <param name = "_menu">The element's parent Menu</param> * <param name = "_slot">The index number of ths slot that was clicked</param> * <param name = "_mouseState">The state of the mouse button</param> */ public override void ProcessClick(AC.Menu _menu, int _slot, MouseState _mouseState) { if (KickStarter.stateHandler.gameState != GameState.DialogOptions) { return; } base.ProcessClick(_menu, _slot, _mouseState); if (linkedConversation != null && (linkedConversation == overrideConversation || (overrideConversation == null && KickStarter.playerInput.activeConversation))) { if (fixedOption) { linkedConversation.RunOption(optionToShow - 1); } else { linkedConversation.RunOption(_slot + offset); } } }