ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,513
Reaction score
3,021
First Language
Dutch
Primarily Uses
RMMV
PluginName: SDJB_MouseHover
Author: ShadowDragon

TERMS OF USE:
Credit ShadowDragon
Do not redistribute the plugin but link back instead. (either forum or itch.io)
forum: https://forums.rpgmakerweb.com/index.php?members/shadowdragon.130321/
itch.io: https://shadowdragon-jb.itch.io

DO NOT CHANGE THE HEADER OR TERMS OF USAGE.
Free to use in any project with proper credits.

Version: 0.0.1

Description:
The plugin is plug & play and let you use your mouse of window commands,
so far I tested it, it works on all defaults windows (custom windows might work too).

as there isn't a simple plugin doing that, this plugin just use it for that purpose.

SDJB_MouseOver.gif

History:
12-02-2023 - First Release

Download from itch.io.
 

Rex Tenebris

Veteran
Veteran
Joined
Mar 9, 2013
Messages
404
Reaction score
107
First Language
Spanish
Primarily Uses
RMMZ
Can you develope or add on the same plugin an option for instant touch? It would be meant for phones, you can use Spacedesk for example to connect your smartphone to PC, so you don't need to deploy the game for the testing.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,513
Reaction score
3,021
First Language
Dutch
Primarily Uses
RMMV
I dont get your question or what Spacedesk has to do with it.
I dont know that software or has any use for it.

instant touch is something I dont use, if you mean "auto click" when mouse
over the command?

which isn't really helpfull when using item to use instantly as well.

I need more info for what kind of use because digging into it, as I made
it very simple as it isn't MV default like MZ is.

if you want to use it in MZ, I cannot help you as I dont own MZ.
 

Rex Tenebris

Veteran
Veteran
Joined
Mar 9, 2013
Messages
404
Reaction score
107
First Language
Spanish
Primarily Uses
RMMZ
I dont get your question or what Spacedesk has to do with it.
I dont know that software or has any use for it.

instant touch is something I dont use, if you mean "auto click" when mouse
over the command?

which isn't really helpfull when using item to use instantly as well.

I need more info for what kind of use because digging into it, as I made
it very simple as it isn't MV default like MZ is.

if you want to use it in MZ, I cannot help you as I dont own MZ.

Basically what I'm requesting is to make that in mobile devices you don't need to "hover".

In mobile devices what you do is touch directly the screen, there's no mouse, so when you touch a command, you have to double-tap the command because the first tap hovers the command, and the second tap executes the command. So, to allow "instant-input", a script function must be done to disable the hover effect and allow instant execution of commands with a single tap, so in this way, the command is executed instantly either if you touch the screen by tapping the command, or with a single click of a mouse cursor.

Spacedesk is a program to share the screen of your computer to any device including mobile phones, is 100% free and is really helpful to test the game on smartphones without having to deploy it, because you control the computer from the mobile by touch input.

Link for PC: https://www.spacedesk.net/
Link for Android: https://play.google.com/store/apps/details?id=ph.spacedesk.beta&hl=es&gl=US
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,513
Reaction score
3,021
First Language
Dutch
Primarily Uses
RMMV
single click to open stuff, I dont know if there is anything on the web like that,
as it might be same behaviour like MZ that might have that touch input.

while there is no touchinput is added, I can look into it, as touchinput is default
on MV, it just need to trigger directly over the commands when clicking on it.

so I assume over the item as well for direct use?

I see what I can do about it.

@Rex Tenebris I cannot really check mobile devices though, but you can
test it out if you open the plugin and add a line there:
JavaScript:
    Window_Selectable.prototype.MoveMouseCursor = function() {
        if (this.isOpenAndActive() && TouchInput.isMoved() && this.MouseInsideWindow()) {
            this.onTouch(false);
        }
        if (Utils.isMobileDevice()) this.onTouch(true); //<== add this line here
    };

I cannot tell if it will work or but when true on PC, it does activate directly,
so I hope this can solve your issue if you add that one.

otherwise I need to dig into it how they exactly move, or someone that has
experience using mobile devices, or able to test on them.

as it is a bit hard to target mobile devices when I cannot really test it there.
so I hope it does work for you, otherwise I cannot really help you further.
 
Last edited:

raffle

Veteran
Veteran
Joined
Oct 25, 2020
Messages
114
Reaction score
53
First Language
English
Primarily Uses
RMMV
Thank you for the work :kaojoy:

I tried using your plugin today but it crashes on startup with this error using MV:
8bfVOCP.png

I also tried putting at the top and bottom of the plugin list, but same result.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
7,513
Reaction score
3,021
First Language
Dutch
Primarily Uses
RMMV
@raffle I cannot replicate the issue though, or why it throws that error.
as I need to change my plugin setup a tiny bit differently, it doesn't had
any parameters for now, and there might come 1 or 2 for it.

as it also have the mini code above for mobile part (what I cannot test),
you shouldn't have any issues, so I made some tiny adjustment to it,
so re-download it, and hopefully it works out, otherwise I need a bit more
info how it happen.

as it is an utility plugin, you can put it at the bottom (which I have in my test project),
and it works, if the issue persist, what version of MV do you use? maybe NW.JS version?
 

raffle

Veteran
Veteran
Joined
Oct 25, 2020
Messages
114
Reaction score
53
First Language
English
Primarily Uses
RMMV
@ShadowDragon That seems to have fixed the issue, no longer have any crashes and it works perfectly :kaojoy:Thank you so much!! This plugin makes navigation feel much smoother
 

Latest Threads

Latest Posts

Latest Profile Posts

oneOfUs.jpg
Streaming more Poppet Quest game even in about 12 minutes.
Some dog owners really impress me. I'm pushing 2-3 metric tons of garbage containers that destroy everything they hit. What do you think is going to happen to your tiny dog when I run it over? And why are you crossing my path to argue with me? Have you never been hit by 200kgs of garbage?

Lesson for you folks. Never mess with an angry garbage container. Or its driver.
I didn't dispose of a file properly and now my whole game won't start: I get a script error in the Scene Manager stage of game launch. What to do? Transfer it all to a new project? That's going to be tedious. Fortunately I am only nine workdays into it.

Forum statistics

Threads
131,679
Messages
1,222,170
Members
173,427
Latest member
gkgk
Top