Event request: on_player_cursor_ghost_changed

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
shanemadden
Fast Inserter
Fast Inserter
Posts: 128
Joined: Thu Feb 08, 2018 8:25 am
Contact:

Event request: on_player_cursor_ghost_changed

Post by shanemadden »

on_player_cursor_stack_changed only fires when the player's cursor_stack changes, not when the cursor_ghost changes. Can we get an event for changes to the cursor_ghost as well, maybe on_player_cursor_ghost_changed?

For mods with special handling when the player's holding their item on the cursor, it'd be great to be able to apply the same behavior to the ghost cursor.

Thanks!
dewiniaid
Long Handed Inserter
Long Handed Inserter
Posts: 96
Joined: Tue Mar 07, 2017 8:50 pm
Contact:

Re: Event request: on_player_cursor_ghost_changed

Post by dewiniaid »

Second this.
User avatar
kizrak
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Thu Jul 19, 2018 1:27 am
Contact:

Re: Event request: on_player_cursor_ghost_changed

Post by kizrak »

I would really love to have this too! 🧡
User avatar
kizrak
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Thu Jul 19, 2018 1:27 am
Contact:

Re: Event request: on_player_cursor_ghost_changed

Post by kizrak »

I'm updating one of my mods for SA 2.0 and I was wondering if this maybe got implemented?

Thanks! 🧡

UPDATE:
So it maybe seems like the `on_player_cursor_stack_changed` event also triggers when a the ghost on the cursor changes. Could use better documentation, but works!
Post Reply

Return to “Modding interface requests”