Cities: Skylines

Cities: Skylines

214 vurderinger
More Shortcuts
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Mod
Filstørrelse:
Offentliggjort:
Opdateret:
33.280 KB
16. maj 2016 kl. 7:35
2. jan. 2017 kl. 11:48
4 ændringsbemærkninger ( vis )

Abonner for at downloade
More Shortcuts

Beskrivelse
Compatible with Cities Skylines 1.9.0-f5 (Green Cities)

This mod allows you set key bindings to any buttons of the game.

How to use
- Make sure to enable the mod in the content manager
- While holding the capture key (default Alt), hover the button you wish to add a shortcut. It should be highlighted in green.
- Keep holding the capture key and left click. A window should popup.
- Perform the desired key combination and hit OK.

How it works
When the key combination is pressed, a click event is send to all the buttons matching the shortcut's button name.

Shortcut options
- Use button's full path: If checked, the full path to the button is used rather than the name alone. This ensure the button is unique. Only this one will be triggered.
- Trigger only if visible: If checked, the button is only triggered if visible. Useful for buttons with the same name but only one visible at a time.

Mod options
- Disable capture key: If checked, you will not be able to add new shortcuts. The capture key will no longer highlight buttons.
- Capture key: Select the desired capture key combination.
- Shortcuts: Edit the shortcuts you created

Source Code
GitHub: https://github.com/SamsamTS/CS-MoreShortcuts

Thank you for:
★ rating this mod
✍ leaving your impressions below
☞ supporting me with a donation[www.samsamts.com]
33 kommentarer
codewitch 19. nov. 2023 kl. 17:39 
@Witchberry

Yeah it was a rabbithole trying to add that in CS1. Basically anywhere in code an add a binding, and there's very to little to know where that code was from programmatically until it is actually...fired. So unless you want to hit all your bindings every time you want this menu, or some static code analysis of your mods, this was many hours of time wasted on "holy hell this is a complete mess". They're not added to a central store of event trackers or a publish/subscribe model that is accessible to mods. Only somewhere in unity knows it's listening for a key. And we know it's listening for a key, sure, but..not which key. And not which mod. Not until the event is triggered. 🙃:steamfacepalm:
335250070 15. nov. 2022 kl. 19:07 
This mod is nice.
Why are the subscriber so less?
Sea Land Air 11. mar. 2022 kl. 18:30 
Just a quick tip - to remove vanilla key bindings, press backspace in the settings. It took me way longer than I'd like to admit to figure that out.
Witchberry 9. mar. 2022 kl. 22:51 
@asterisk11231 : that's not the point smh. I needed a mod that allows me to manage the shortcuts from all of the enabled mods, it's getting tiresome to manage them manually when you have so many active mods. Even the game itself doesn't warn us if said shortcut is already used by another. We can only check it either manually from the menu, or play a city to see which shortcut opens/activates how many mods. For example, the default shortcut for both Radio and Move It! are the same button.
codewitch 6. dec. 2021 kl. 19:19 
@Witchberry - you can generally bind an additional key if there is a button available. You cannot rebind a key or remove a binding, out of the box...tho the offending mod author should really make it configurable; not this mod.
Witchberry 30. nov. 2021 kl. 17:54 
hi, will this mod also allow us to manage the already existing hotkeys from mods? If it didn't, I really hope for it to be updated.
Shindosi 12. nov. 2020 kl. 18:26 
This is one of those mods that just work
It is most useful
Thank you
codewitch 27. maj 2020 kl. 12:09 
As for the network types - I can try it again but since the original reason was merely a workaround in which the original mod has a fix, there's no issue here.
codewitch 27. maj 2020 kl. 12:08 
1) I want to be able to configure the ability to go into, say, a Small Road, directly. I have this working but if it doesn't open a toolbar, sometimes it can "orphan" toolbars and their option panes. Sometimes I just have to close them in reverse order, so I don't agree with "Trigger Only If Visible" in this scenario. If it was required, then why is it an option to disable it?
2) I only was able to repro this in an edge case where I accidentally hit Overlayer 2's hotkey, F3, in the option menu for this mod when changing another hotkey (likely my TM:PE hotkey, F2?). This then caused the "remove hotkey" (which is also "UI Button") to be registered to F3. It appears these are both in "root", since Overlayer 2 is always shown, and the mod configuration screen must have a special property.The solution is not to accidentally hit that key there -- and if you do remove BOTH hotkeys and restart - I'm not sure it's repro-able anywhere else.
stmSantana 26. maj 2020 kl. 20:10 
@asterisk11231
The options in the "New Shortcut" window are important.
Always Enable "Trigger only if visible".

The "Use button's full path" option is a bit more complicated.
First select one of the networks (eg road) and assign the four keys to the four buttons. In that case, disable the option.
https://imgur.com/kyNEUQB
The shortcut keys now work for all network types (water pipes, paths, park area paths, train tracks).
All share the "Shift + 1" and "Shift + 4" keys.

Then it's time to assign the same key to the buttons other than the network.
You will be asked "override" when assigning the "Shift + 1" key to "fill". Select "NO". The "New shortcut" window is still open.
Press the "Shift + 1" key, then enable the "Use button's full path" option. "OK".
https://imgur.com/mDRLm0c

Then, make all the settings with the buttons you want to assign the "Shift + 1" key to.
Always don't override, Always enable "Use button's full path".
https://imgur.com/1uUBZwU

It works for me:47_thumb_up: