LuaPlayer::drag_target
LuaPlayer::drag_target
In my mod (Wire Shortcut X) I want to be able the read whether the player has a drag target (i.e. is dragging a wire/cable from an entity). Personally I don't care what it is, just whether or not it exists. But it should probably return the LuaEntity. I also don't need to be able to write it, since you can create the drag_target with LuaPlayer.drag_wire and clear it with LuaPlayer.clear_cursor. I just need to know if it exists
My mods
Content: Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Remote Configuration | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Content: Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Remote Configuration | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Re: LuaPlayer::drag_target
Added for the next release.
If you want to get ahold of me I'm almost always on Discord.