View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004756 | Spring engine | General | public | 2015-04-24 19:46 | 2017-04-30 19:52 |
| Reporter | aeonios | Assigned To | Kloot | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | reopened | ||
| Product Version | 98.0.1+git | ||||
| Summary | 0004756: Spring.SetMouseCursor is broken | ||||
| Description | I set up some simple code to change the mouse cursor for a custom (unsynced, non-cmd-related) area select tool. I set it to cursorrepair which I know exists in the game I'm working with, but instead it just switches to cursornormal for a moment before reverting to whatever cursor was active before (ie cursormove or cursornormal typically). | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
Actually come to think of it the way that it works doesn't even make sense, since there's no obvious way to tell it to go back to using the default cursor for whatever is selected. |
|
|
seems you misunderstand something here Obv. cursor gets reset/changed with every video frame and obv. you have to reset your wanted cursor after that, i.e. in :Update() |
|
|
In that case, it's only giving me cursornormal instead of cursorrepair, which should be valid. :| function widget:Update(dt) if removeToolIsActive then spSetMouseCursor("cursorrepair") end end |
|
|
try a later callin in the queue DrawWorld or DrawScreen or something |
|
|
Moving the call didn't change anything. It does seem to be changing the cursor, since it replaces cursormove with cursornormal when units are selected, but no matter what argument I give it it always produces cursornormal. |
|
|
instead of "cursorrepair" (the filename minus ".txt"), use "Repair" (the command name), etc. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2015-04-24 19:46 | aeonios | New Issue | |
| 2015-04-24 19:50 | aeonios | Note Added: 0014384 | |
| 2015-04-25 00:52 | jK | Note Added: 0014392 | |
| 2015-04-25 00:52 | jK | Status | new => resolved |
| 2015-04-25 00:52 | jK | Resolution | open => no change required |
| 2015-04-25 00:52 | jK | Assigned To | => jK |
| 2015-04-25 05:45 | aeonios | Note Added: 0014396 | |
| 2015-04-25 05:45 | aeonios | Status | resolved => feedback |
| 2015-04-25 05:45 | aeonios | Resolution | no change required => reopened |
| 2015-04-25 19:21 | jK | Note Added: 0014397 | |
| 2015-04-25 19:40 | aeonios | Note Added: 0014398 | |
| 2015-04-25 19:40 | aeonios | Status | feedback => assigned |
| 2017-04-30 19:52 | Kloot | Assigned To | jK => Kloot |
| 2017-04-30 19:52 | Kloot | Status | assigned => closed |
| 2017-04-30 19:52 | Kloot | Note Added: 0017543 |