Right off the bat, I know there is a lot of issues that could arise from this request but thought I would atleast ask and start a discussion.
I made a mod called Placeables that generates many sprite-buttons that when clicked puts the shown item from the inventory into the players hand.
The problem is that the on_gui_click event fires when the player *releases* the mouse button. I have gotten so fast at using my mod that by the time I actually release the mouse button my mouse is halfway across the screen, so a lot of times the event doesn't even fire. (example image below)
I originally thought it was a bug in my mod because the 'click' sound effect would still play, as that happens on mouse_down.
After testing many of the vanilla buttons in Factorio, it seems like half the buttons that could be said to be 'sprite-buttons' activate on mouse_down: items in hotbar, items in inventory, logistics requests, crafting tabs.
The other half of the buttons activate on mouse_up: elements on top-right of menus(like close), the icons on the right of the toolbar, buttons on the right side (trains, tips, achievements, etc)
It seems that all the ones that Factorio fires on mouse_down are buttons that are involved with using items, and the mouse_up ones are involved with menus and such. It would just be nice if modders could choose when mouse_down is needed, and match the GUI experience of Factorio.
Request: A way for sprite-button to fire event on mouse_down
Place to ask discuss and request the modding support of Factorio. Don't request mods here.
-
- Inserter
- Posts: 24
- Joined: Sun Jun 04, 2017 1:38 am
- Contact:
Return to “Modding interface requests”
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Implemented in 2.0
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Fentus Challenge & Tool Mods
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions