mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 22:47:59 +01:00
Better hotkey mode handling
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
/mob/living/Login()
|
||||
..()
|
||||
//Mind updates
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/mob/living/silicon/robot/Login()
|
||||
..()
|
||||
if(client)
|
||||
client.hotkeytype = "Cyborg"
|
||||
regenerate_icons()
|
||||
show_laws(0)
|
||||
if(mind) ticker.mode.remove_cultist(mind)
|
||||
@@ -7,15 +9,3 @@
|
||||
if(mind) ticker.mode.remove_thrall(mind,0)
|
||||
if(mind) ticker.mode.remove_shadowling(mind)
|
||||
return
|
||||
|
||||
/mob/living/silicon/robot/update_hotkey_mode()
|
||||
if(client)
|
||||
client.hotkeytype = "Cyborg"
|
||||
client.hotkeyon = 1
|
||||
winset(src, null, "mainwindow.macro=borghotkeymode hotkey_toggle.is-checked=true mapwindow.map.focus=true input.background-color=#F0F0F0")
|
||||
|
||||
/mob/living/silicon/robot/update_normal_mode()
|
||||
if(client)
|
||||
client.hotkeytype = "Cyborg"
|
||||
client.hotkeyon = 0
|
||||
winset(src, null, "mainwindow.macro=borgmacro hotkey_toggle.is-checked=false input.focus=true input.background-color=#D3B5B5")
|
||||
Reference in New Issue
Block a user