Page 1 of 1

Add a hotkey for blueprint string import

Posted: Fri Jul 03, 2020 9:58 pm
by raiguard
Since blueprint-related things have moved to the shortcut bar, that limits the amount of things you can have showing at once. I almost never actually use my shortcut bar, the only things I have showing are things that I want to know the toggled state of. I use hotkeys for almost everything there.

The one thing that I actually can't use hotkeys for is importing blueprint strings. I don't want this button to be showing at all times, so whenever I want to use it, I have to click the tiny button to open the shortcut bar settings, then click the tiny button to open the import dialog.

I would like to request a control to open this window, so I can do it much quicker and easier.

Re: Add a hotkey for blueprint string import

Posted: Mon Oct 12, 2020 5:56 pm
by raiguard
Bump?

Re: Add a hotkey for blueprint string import

Posted: Tue Oct 13, 2020 2:39 am
by ssilk
How often do you do you import strings per game, week, month, ...?

Re: Add a hotkey for blueprint string import

Posted: Tue Oct 13, 2020 6:12 am
by raiguard
Not ridiculously often, but it's really difficult to push two really tiny buttons every time I want to do it. Import string is literally the only vanilla shortcut that doesn't have a hotkey.

Re: Add a hotkey for blueprint string import

Posted: Tue Oct 13, 2020 2:40 pm
by ickputzdirwech
Blueprint book also doesn’t have a hotkey. Really annoying. Definitely a +1

Edit: I’ll add both of them to my mod when I got time this evening.

Re: Add a hotkey for blueprint string import

Posted: Tue Oct 13, 2020 5:18 pm
by raiguard
ickputzdirwech wrote:
Tue Oct 13, 2020 2:40 pm
Blueprint book also doesn’t have a hotkey. Really annoying. Definitely a +1

Edit: I’ll add both of them to my mod when I got time this evening.
Actually, blueprint books do have the ability to set a hotkey, it's just unset by default:
2020-10-13 11_18_35-Factorio 1.1.0.png
2020-10-13 11_18_35-Factorio 1.1.0.png (15.66 KiB) Viewed 2233 times

Re: Add a hotkey for blueprint string import

Posted: Wed Oct 14, 2020 9:19 am
by ickputzdirwech
Raiguard wrote:
Tue Oct 13, 2020 5:18 pm

Actually, blueprint books do have the ability to set a hotkey, it's just unset by default:
Damn, I always assumed there was none, since it didn’t say “(Not set)” in the tooltip. Turns out associated_control_input only shows the hotkey when it is set like “(Alt + B)”. Not very intuitive.

I also couldn’t figure out how to tell the game to open a specific gui. I never messed around with the gui before. Thought it would be easier. I tried looking at factory planner for a reference but I didn’t understand how they were doing it. I’ll keep working on it though.

Re: Add a hotkey for blueprint string import

Posted: Wed Oct 14, 2020 6:55 pm
by raiguard
ickputzdirwech wrote:
Wed Oct 14, 2020 9:19 am
Raiguard wrote:
Tue Oct 13, 2020 5:18 pm

Actually, blueprint books do have the ability to set a hotkey, it's just unset by default:
Damn, I always assumed there was none, since it didn’t say “(Not set)” in the tooltip. Turns out associated_control_input only shows the hotkey when it is set like “(Alt + B)”. Not very intuitive.

I also couldn’t figure out how to tell the game to open a specific gui. I never messed around with the gui before. Thought it would be easier. I tried looking at factory planner for a reference but I didn’t understand how they were doing it. I’ll keep working on it though.
Unfortunately import string doesn't have a GUI type and isn't ever marked as "opened" so we can't force it to open from the API. Factory Planner uses a custom dialog for subfactory strings. Unfortunately, if you want to make a mod to show import, you'll have to make the GUI yourself.

If this feature isn't in by the time I get to making my "blueprint tools" mod, I'll add it to that.

Re: Add a hotkey for blueprint string import

Posted: Thu Oct 15, 2020 9:37 am
by ickputzdirwech
That‘s a shame. At least it explained my struggle. Guess I’ll just scrap that idea and wait for it to be implemented by the devs or you. Looking forward to your Mod! :)