mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Moves everything on a 15+ layer to a plane. So now you get screen catcher (-99, was already on a plane), lighting (15), effects that ignore lighting (16), fullscreen UI effects (18), screen objects used to build the UI (19), actual equipment in the UI slots (20), and everything else (0). Also created a file to contain plane and layer defines for hopeful eventual use. Hopefully this doesn't change anything now but does enable some nifty new features in the future.
176 lines
4.7 KiB
Plaintext
176 lines
4.7 KiB
Plaintext
|
|
/obj/screen/blob
|
|
icon = 'icons/mob/blob.dmi'
|
|
|
|
/obj/screen/blob/MouseEntered(location,control,params)
|
|
openToolTip(usr,src,params,title = name,content = desc, theme = "blob")
|
|
|
|
/obj/screen/blob/MouseExited()
|
|
closeToolTip(usr)
|
|
|
|
/obj/screen/blob/BlobHelp
|
|
icon_state = "ui_help"
|
|
name = "Blob Help"
|
|
desc = "Help on playing blob!"
|
|
|
|
/obj/screen/blob/BlobHelp/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
B.blob_help()
|
|
|
|
/obj/screen/blob/JumpToNode
|
|
icon_state = "ui_tonode"
|
|
name = "Jump to Node"
|
|
desc = "Moves your camera to a selected blob node."
|
|
|
|
/obj/screen/blob/JumpToNode/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
B.jump_to_node()
|
|
|
|
/obj/screen/blob/JumpToCore
|
|
icon_state = "ui_tocore"
|
|
name = "Jump to Core"
|
|
desc = "Moves your camera to your blob core."
|
|
|
|
/obj/screen/blob/JumpToCore/MouseEntered(location,control,params)
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
if(!B.placed)
|
|
openToolTip(usr,src,params,title = "Place Blob Core",content = "Attempt to place your blob core at this location.", theme = "blob")
|
|
else
|
|
..()
|
|
|
|
/obj/screen/blob/JumpToCore/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
if(!B.placed)
|
|
B.place_blob_core()
|
|
B.transport_core()
|
|
|
|
/obj/screen/blob/Blobbernaut
|
|
icon_state = "ui_blobbernaut"
|
|
name = "Produce Blobbernaut (30)"
|
|
desc = "Produces a strong, smart blobbernaut from a factory blob for 30 points.<br>The factory blob used will become fragile and briefly unable to produce spores."
|
|
|
|
/obj/screen/blob/Blobbernaut/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
B.create_blobbernaut()
|
|
|
|
/obj/screen/blob/ResourceBlob
|
|
icon_state = "ui_resource"
|
|
name = "Produce Resource Blob (40)"
|
|
desc = "Produces a resource blob for 40 points.<br>Resource blobs will give you points every few seconds."
|
|
|
|
/obj/screen/blob/ResourceBlob/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
B.create_resource()
|
|
|
|
/obj/screen/blob/NodeBlob
|
|
icon_state = "ui_node"
|
|
name = "Produce Node Blob (60)"
|
|
desc = "Produces a node blob for 60 points.<br>Node blobs will expand and activate nearby resource and factory blobs."
|
|
|
|
/obj/screen/blob/NodeBlob/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
B.create_node()
|
|
|
|
/obj/screen/blob/FactoryBlob
|
|
icon_state = "ui_factory"
|
|
name = "Produce Factory Blob (60)"
|
|
desc = "Produces a factory blob for 60 points.<br>Factory blobs will produce spores every few seconds."
|
|
|
|
/obj/screen/blob/FactoryBlob/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
B.create_factory()
|
|
|
|
/obj/screen/blob/ReadaptChemical
|
|
icon_state = "ui_chemswap"
|
|
name = "Readapt Chemical (40)"
|
|
desc = "Randomly rerolls your chemical for 40 points."
|
|
|
|
/obj/screen/blob/ReadaptChemical/MouseEntered(location,control,params)
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
if(B.free_chem_rerolls)
|
|
openToolTip(usr,src,params,title = "Readapt Chemical (FREE)",content = "Randomly rerolls your chemical for free.", theme = "blob")
|
|
else
|
|
..()
|
|
|
|
/obj/screen/blob/ReadaptChemical/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
B.chemical_reroll()
|
|
|
|
/obj/screen/blob/RelocateCore
|
|
icon_state = "ui_swap"
|
|
name = "Relocate Core (80)"
|
|
desc = "Swaps a node and your core for 80 points."
|
|
|
|
/obj/screen/blob/RelocateCore/Click()
|
|
if(isovermind(usr))
|
|
var/mob/camera/blob/B = usr
|
|
B.relocate_core()
|
|
|
|
/datum/hud/blob_overmind/New(mob/owner)
|
|
..()
|
|
var/obj/screen/using
|
|
|
|
blobpwrdisplay = new /obj/screen()
|
|
blobpwrdisplay.name = "blob power"
|
|
blobpwrdisplay.icon_state = "block"
|
|
blobpwrdisplay.screen_loc = ui_health
|
|
blobpwrdisplay.mouse_opacity = 0
|
|
blobpwrdisplay.plane = PLANE_UI_BASE
|
|
infodisplay += blobpwrdisplay
|
|
|
|
healths = new /obj/screen/healths/blob()
|
|
infodisplay += healths
|
|
|
|
using = new /obj/screen/blob/BlobHelp()
|
|
using.screen_loc = "WEST:6,NORTH:-3"
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/blob/JumpToNode()
|
|
using.screen_loc = ui_inventory
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/blob/JumpToCore()
|
|
using.screen_loc = ui_zonesel
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/blob/Blobbernaut()
|
|
using.screen_loc = ui_belt
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/blob/ResourceBlob()
|
|
using.screen_loc = ui_back
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/blob/NodeBlob()
|
|
using.screen_loc = ui_lhand
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/blob/FactoryBlob()
|
|
using.screen_loc = ui_rhand
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/blob/ReadaptChemical()
|
|
using.screen_loc = ui_storage1
|
|
static_inventory += using
|
|
|
|
using = new /obj/screen/blob/RelocateCore()
|
|
using.screen_loc = ui_storage2
|
|
static_inventory += using
|
|
|
|
|
|
/mob/camera/blob/create_mob_hud()
|
|
if(client && !hud_used)
|
|
hud_used = new /datum/hud/blob_overmind(src)
|
|
|
|
|