mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-22 16:21:31 +00:00
Also makes the mode selection interface far less tedious/painful Adds unsimulated turf overriding, and admin logging Temporary commit for storing the sdql buildmode Adds extra documentation also requires a path to be selected for "advanced" and "fill" modes, now Spaces out mode switch buttons nicer removes need for debug rights to do a fill with mob paths Adds a bunch of extra fancy paths Fox Changes pt 1 Backports /tg/station changes Fixes a double-tap issue with dclick handling of certain mobs Also no longer shows the "selection canceled" if you haven't selected a region for the buildmode that supports region selection Updates buildmode stuff
31 lines
662 B
Plaintext
31 lines
662 B
Plaintext
/datum/click_intercept
|
|
var/client/holder = null
|
|
var/list/obj/screen/buttons = list()
|
|
|
|
/datum/click_intercept/New(client/C)
|
|
create_buttons()
|
|
enter(C)
|
|
return ..()
|
|
|
|
/datum/click_intercept/Destroy()
|
|
holder.screen -= buttons
|
|
holder.click_intercept = null
|
|
holder.show_popup_menus = TRUE
|
|
holder = null
|
|
QDEL_LIST(buttons)
|
|
return ..()
|
|
|
|
/datum/click_intercept/proc/enter(client/C)
|
|
holder = C
|
|
holder.click_intercept = src
|
|
holder.show_popup_menus = FALSE
|
|
holder.screen += buttons
|
|
|
|
/datum/click_intercept/proc/quit()
|
|
qdel(src)
|
|
|
|
/datum/click_intercept/proc/create_buttons()
|
|
return
|
|
|
|
/datum/click_intercept/proc/InterceptClickOn(user,params,atom/object)
|
|
return |