private void HandleNPCMenu(StaticContextEvent @event) { if (@event.Root.ActiveClickableMenu != null && showNPC) { @event.Root.ActiveClickableMenu = null; showNPC = false; } else { locs.root = @event.Root; // create our menu //set it as ActiveMenu per Proxy @event.Root.ActiveClickableMenu = @event.Proxy <ClickableMenuAccessor, ClickableMenu>(locs); //set our draw to true showNPC = true; } }
private void HandleWaitMenu(StaticContextEvent @event) { if (@event.Root.CurrentLocation == null) { return; } if (@event.Root.ActiveClickableMenu != null && drawingWaitMenu) { waitMenu.Close(); } else { waitMenu.Root = @event.Root; // create our menu //set it as ActiveMenu per Proxy @event.Root.ActiveClickableMenu = @event.Proxy <ClickableMenuAccessor, ClickableMenu>(waitMenu); //set our draw to true drawingWaitMenu = true; } }