First draft of the talk wheel concept.

This commit is contained in:
phil235
2016-09-12 19:17:40 +02:00
parent 2a58dd54a9
commit 65bd7d1f4d
3 changed files with 43 additions and 0 deletions
+4
View File
@@ -95,6 +95,10 @@
using.icon = ui_style
static_inventory += using
using = new/obj/screen/talk_wheel
using.icon = ui_style
static_inventory += using
using = new /obj/screen/inventory/area_creator
using.icon = ui_style
static_inventory += using
+39
View File
@@ -46,6 +46,45 @@
M.swap_hand()
return 1
/obj/screen/talk_wheel
name = "talk wheel"
layer = HUD_LAYER
screen_loc = "CENTER-7,CENTER-7"
var/obj/screen/talk/talk_boxes
var/toggled = 0
/obj/screen/talk_wheel/New()
..()
talk_boxes = new ()
talk_boxes.name = "talk option"
talk_boxes.icon_state = "block"
talk_boxes.screen_loc = "11:4,2:-12"
talk_boxes.layer = HUD_LAYER
/obj/screen/talk_wheel/Click()
if(world.time <= usr.next_move)
return
if(usr.incapacitated())
return
if(ishuman(usr))
var/mob/living/carbon/human/H = usr
if(toggled)
H.client.screen -= talk_boxes
else
H.client.screen |= talk_boxes
toggled = !toggled
/obj/screen/talk
name = "talk option"
icon_state = "block"
screen_loc = "7:0,7:0"
layer = HUD_LAYER
/obj/screen/talk/Click()
if(ishuman(usr))
var/mob/living/carbon/human/H = usr
H.say("Hello world")
/obj/screen/inventory/craft
name = "crafting menu"
icon = 'icons/mob/screen_midnight.dmi'
Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB