So, as I plan to wrap up the DREAM and release the summer versions on all platforms and take a break for a while Id like to include this awesome cursor made by VMBlast.
But how can I do so?
I want it to be a part of a DFMOD, Ive tryed everything but no luck.
What should the name of a cursor file be exactly?
What should I do?
Help!!!
Cursor
- King of Worms
- Posts: 4752
- Joined: Mon Oct 17, 2016 11:18 pm
- Location: Scourg Barrow (CZ)
- Contact:
Cursor
DREAM Nexus https://www.nexusmods.com/users/73250038?tab=user+files
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
- Interkarma
- Posts: 7236
- Joined: Sun Mar 22, 2015 1:51 am
Re: Cursor
I use a hardware cursor in DFU so that it's decoupled from resolution and frame-rate. Cursor is currently baked into build and not exposed to mod system.
I'm not sure if cursor texture can be changed at runtime, but Cursor.SetCursor() looks about right. I wonder if this is something TheLacus would be interested at looking into further?
I'm not sure if cursor texture can be changed at runtime, but Cursor.SetCursor() looks about right. I wonder if this is something TheLacus would be interested at looking into further?
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Cursor
I can do it but there are two limitations:
- It requires a specific texture type to be set in editor, so it can't be imported from loose files.
- Default cursor is used inside the main menu because mods are not loaded at that point yet.
- It requires a specific texture type to be set in editor, so it can't be imported from loose files.
- Default cursor is used inside the main menu because mods are not loaded at that point yet.
- King of Worms
- Posts: 4752
- Joined: Mon Oct 17, 2016 11:18 pm
- Location: Scourg Barrow (CZ)
- Contact:
Re: Cursor
Hi, specific texture type settings are not a problem and I plan to use it in a DFMOD anyway.
Default cursor in the main menu is something we need to live with than, not a huge deal tho.
Would be great if this could be done, thank you for considering it Lacus!
DREAM Nexus https://www.nexusmods.com/users/73250038?tab=user+files
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
Re: Cursor
An update on this:
- Read/Write flag must be enabled.
- A log warning is produced when cursor is set but the operation is actually succesful. Might be due to this bug, fixed in a later version.
- Given that this is only a specific texture to be loaded passively from an assetbundle, i can actually apply it from SetupGameWizard without waiting for the actual game scene. I don't think there are any particular contraindications.
I'm going to submit a PR.
- Read/Write flag must be enabled.
- A log warning is produced when cursor is set but the operation is actually succesful. Might be due to this bug, fixed in a later version.
- Given that this is only a specific texture to be loaded passively from an assetbundle, i can actually apply it from SetupGameWizard without waiting for the actual game scene. I don't think there are any particular contraindications.
I'm going to submit a PR.
- King of Worms
- Posts: 4752
- Joined: Mon Oct 17, 2016 11:18 pm
- Location: Scourg Barrow (CZ)
- Contact:
Re: Cursor
Awesome thanks a lot, finally the blue 320*200 cursor will be gone, fingers crossed .)
DREAM Nexus https://www.nexusmods.com/users/73250038?tab=user+files
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz