When they do that, and restart the game, the game begins using a custom hardware mouse cursor image, but if the user goes back into preferences and disables the checkbox: "Custom Hardware Mouse Cursor Image", and then restarts the game, the game will once again use the default windows hardware mouse cursor.
How would you write the code for this?
Note: I can't use MouseDisplayable in conjuction with config.mouse and default_mouse, because it causes lag in some cases. I'd rather stick with hardware mouse cursor only, not overlaying an image over the mouse cursor.
It would work something like this in theory:
Code: Select all
if persistent.UseCustomHardwareMouseCursorImage:
define config.mouse = { }
define config.mouse['default'] = [ ( "gui/c_mous_curs.webp", 0, 0) ]
# notify user to restart ren'py game for changes to take effect
# restart ren'py game
else:
# do nothing, just use default hardware mouse cursor
# notify user to restart ren'py game for changes to take effect