mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
First draft of the talk wheel concept.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user