mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
[MIRROR] Makes keybinding conflict messages use smaller spans (#3176)
* Make keybinding conflict spans less loud (#56707) Each time new keybindings are added, we receive a message at the beginning of each round telling us about keybindings we've set that conflict with what the new ones default to. This is desirable. However, it could take up less space while still drawing the eye. * Makes keybinding conflict messages use smaller spans Co-authored-by: cacogen <25089914+cacogen@users.noreply.github.com>
This commit is contained in:
@@ -126,12 +126,11 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
|
||||
addtimer(CALLBACK(src, .proc/announce_conflict, notadded), 5 SECONDS)
|
||||
|
||||
/datum/preferences/proc/announce_conflict(list/notadded)
|
||||
to_chat(parent, "<span class='userdanger'>KEYBINDING CONFLICT!!!\n\
|
||||
There are new keybindings that have defaults bound to keys you already set, They will default to Unbound. You can bind them in Setup Character or Game Preferences\n\
|
||||
<a href='?_src_=prefs;preference=tab;tab=3'>Or you can click here to go straight to the keybindings page</a></span>")
|
||||
to_chat(parent, "<span class='alertwarning'>KEYBINDING CONFLICT</span>\n\
|
||||
<span class='alertwarning'>There are new <a href='?_src_=prefs;preference=tab;tab=3'>keybindings</a> that default to keys you've already bound. These will be unbound.</span>")
|
||||
for(var/item in notadded)
|
||||
var/datum/keybinding/conflicted = item
|
||||
to_chat(parent, "<span class='userdanger'>[conflicted.category]: [conflicted.full_name] needs updating")
|
||||
to_chat(parent, "<span class='danger'>[conflicted.category]: [conflicted.full_name] needs updating</span>")
|
||||
LAZYADD(key_bindings["Unbound"], conflicted.name) // set it to unbound to prevent this from opening up again in the future
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user