Better hotkey mode handling

This commit is contained in:
Markolie
2015-09-30 01:34:51 +02:00
parent 85009d81d8
commit 3c0931ba7d
2 changed files with 2 additions and 13 deletions
-1
View File
@@ -1,4 +1,3 @@
/mob/living/Login()
..()
//Mind updates
+2 -12
View File
@@ -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")