Modding Help Redrawing a custom cursor

Discussion in 'Mods' started by Vanguard3000, Jul 24, 2020.

  1. Vanguard3000

    Vanguard3000 Orbital Explorer

    Hi, all!

    I've set up a mod that will contextually change the cursor depending on a villager's potential reaction to a gift. I have the code that detects things properly, and have made a sprite sheet of custom cursors, but calling spritebatch.Draw() to draw the cursor does nothing, despite debug messages telling me the texture is loaded and it's in the right spot. I suspect it's drawing on the wrong layer, i.e. under the background, but playing with the layerDepth doesn't seem to fix things.

    Any suggestions would be helpful. Thanks in advance.
     
    • Vanguard3000

      Vanguard3000 Orbital Explorer

      So I found the issue: I was trying to make spritebatch calls in my logic events, and hadn't noticed there were events specifically for rendering.

      In any case, my Context-Sensitive Gift Cursor is live on NexusMods!
       

      Share This Page