Jump to content
Tdogthedog

Working Kash Shop - Mouse Scroll

Recommended Posts

Patches are guaranteed to work on a vanilla Intersect with the version numbers below. All Kash Shop patches are guaranteed to work together unless otherwise stated. 

 

Get it here!

 

Built for: Intersect 0.6.1.259 and Intersect 0.6.2.421

 

Updated once a week to work with the Intersect STABLE branch (Stable branch at the time of creating this patch is 0.6.1.259)

Support guaranteed up until the first version of Intersect STABLE 0.6.3 (Guarantee might extend based on the popularity of the patch.)

 

Of course we offer support if you have problems installing the patch! Just reply to this topic!

 

Disclaimer: The patch might work on later versions of Intersect, but be careful with updating when you are using Kash Shop patches. The patch is only guaranteed to work on the version the patch was built for.

 

Patch description: Enable the mouse scroll wheel input to allow scrollable UI controls to be scrolled using the mouse wheel. (Chatbox, lists, etc)

 

NOTE: AS ALWAYS, MAKE A BACKUP BEFORE ADDING ANY PATCHES

Share this post


Link to post
Share on other sites

When you open the list of friends, and use the mouse scroll, the game simply closes.
To Reproduce
Open the list of characters, have at least 1 friend in it, use the mouse scroll.

 

Quote

2020-06-29 22:39:23.050 [Error] 
  Message: Referência de objeto não definida para uma instância de um objeto.
    Stack:    em Intersect.Client.Framework.Gwen.Input.InputHandler.OnMouseScroll(Base canvas, Int32 deltaX, Int32 deltaY) na E:\Celtos Online\Intersect-Engine\Intersect.Client.Framework\Gwen\Input\InputHandler.cs:linha 411
   em Intersect.Client.Framework.Gwen.Control.Canvas.Input_MouseScroll(Int32 deltaX, Int32 deltaY) na E:\Celtos Online\Intersect-Engine\Intersect.Client.Framework\Gwen\Control\Canvas.cs:linha 306
   em Intersect.Client.Framework.Gwen.Input.IntersectInput.ProcessMessage(Object message) na E:\Celtos Online\Intersect-Engine\Intersect.Client.Framework\Gwen\Input\IntersectInput.cs:linha 138
   em Intersect.Client.MonoGame.Input.MonoInput.CheckMouseScrollWheel(Int32 scrlVValue, Int32 scrlHValue)
   em Intersect.Client.MonoGame.Input.MonoInput.Update()
   em Intersect.Client.Core.Main.Update()
   em Intersect.Client.MonoGame.IntersectGame.Update(GameTime gameTime)
   em Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
   em Microsoft.Xna.Framework.Game.Tick()
   em Microsoft.Xna.Framework.SdlGamePlatform.RunLoop()
   em Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)


--------------------------------------------------------------------------------
 

 

Share this post


Link to post
Share on other sites
17 hours ago, Celtos said:

When you open the list of friends, and use the mouse scroll, the game simply closes.
To Reproduce
Open the list of characters, have at least 1 friend in it, use the mouse scroll.

 

 

add

            if (HoveredControl == null)
                return false;

to Intersect.Client.Framework\Gwen\Input\InputHandler.cs line 411

 

devenv_PbdcyCO7tS.png

 

Scrolling in friendslist is behaving a bit quirky after this, but at least it won't crash anymore

Share this post


Link to post
Share on other sites

Resuming to Fix

 

Quote

        public static bool OnMouseScroll(Base canvas, int deltaX, int deltaY)
        {

            if (canvas == null)
            {
                return false;
            }
            if (HoveredControl?.GetCanvas() != canvas) {
                return false;
            }
            if (!canvas.IsVisible)
            {
                return false;
            }

            if (deltaY != 0)
            {
                HoveredControl.InputMouseWheeled(deltaY);
            }
            if (deltaX != 0)
            {
                HoveredControl.InputMouseHWheeled(deltaX);
            }
            return true;
        }

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...