View Issue Details

IDProjectCategoryView StatusLast Update
0004756Spring engineGeneralpublic2017-04-30 19:52
Reporteraeonios Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionreopened 
Product Version98.0.1+git 
Summary0004756: Spring.SetMouseCursor is broken
DescriptionI 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).
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

aeonios

2015-04-24 19:50

reporter   ~0014384

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.

jK

2015-04-25 00:52

developer   ~0014392

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()

aeonios

2015-04-25 05:45

reporter   ~0014396

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

jK

2015-04-25 19:21

developer   ~0014397

try a later callin in the queue DrawWorld or DrawScreen or something

aeonios

2015-04-25 19:40

reporter   ~0014398

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.

Kloot

2017-04-30 19:52

developer   ~0017543

instead of "cursorrepair" (the filename minus ".txt"), use "Repair" (the command name), etc.

Issue History

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