It doesn't look like mouse_button_filter works..
i tried setting it to an array (just crashes) or setting different buttons (indexes) to true or false, but it has no effect... - neither gets the click-animation disabled, nor does the click-event get prevented..
mouse_button_filter doesn't work?
mouse_button_filter doesn't work?
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Re: mouse_button_filter doesn't work?
This sounds like you simply don't know how the feature works. I'm going to move this to modding help.
If you want to get ahold of me I'm almost always on Discord.
Re: mouse_button_filter doesn't work?
Code: Select all
my_button.mouse_button_filter = {"left-and-right", "middle", "button-4"}
Re: mouse_button_filter doesn't work?
Ah okay.. i guess i misunderstood the Description in the documentation where you wrote
The code by eduran does work.dictionary string → boolean [Read-Write]
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Re: mouse_button_filter doesn't work?
That's a documentation problem, thanks for pointing it out. Fixed for the next version. This is what it should link to: https://lua-api.factorio.com/latest/Con ... uttonFlagsownlyme wrote: Wed Jun 05, 2019 3:52 pm Ah okay.. i guess i misunderstood the Description in the documentation where you wrotedictionary string → boolean [Read-Write]
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: mouse_button_filter doesn't work?
Different read/write formats are kinda rare. Maybe the "To write to this..." deserves to be bold ;)?Bilka wrote: Wed Jun 05, 2019 4:06 pmThat's a documentation problem, thanks for pointing it out. Fixed for the next version. This is what it should link to: https://lua-api.factorio.com/latest/Con ... uttonFlagsownlyme wrote: Wed Jun 05, 2019 3:52 pm Ah okay.. i guess i misunderstood the Description in the documentation where you wrotedictionary string → boolean [Read-Write]
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: mouse_button_filter doesn't work?
dictionary string → boolean sounds to me like there are boolean values, indexed by strings...
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: mouse_button_filter doesn't work?
When you *read* it.ownlyme wrote: Wed Jun 05, 2019 5:21 pm dictionary string → boolean sounds to me like there are boolean values, indexed by strings...
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.