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?
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
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]
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
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 ... uttonFlags
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: 5206
- 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 ... uttonFlags
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...
mods.factorio.com/user/ownlyme
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
My requests: uiAbove||Grenade arc||Blueprint allies||Creeps forget command/ don't get removed||Player Modifiers||textbox::selection||Better Heat IF||Singleplayer RCON||tank bug w/ min_range >= projectile_creation_distance
- eradicator
- Smart Inserter
- Posts: 5206
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: mouse_button_filter doesn't work?
When you *read* it.
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.