Build Mode Update! (#58715)

Improves the experience of using build mode for building events and stuff.
You can now choose any from the eight dirs, not just cardinals and northwest.
Decals are now supported by build mode! This means that they can have any dir you want instead of always being south.
Areas are now filled in by default, you can still paint them manually with altclick.
Switches new tab width from 5 to 4, which means that the buttons for modes/dirs will be more naturally distributed, 4 per line when we have 8 dirs and 12 modes
This commit is contained in:
Fikou
2021-04-26 16:30:05 -07:00
committed by GitHub
parent 0726296165
commit f4699372a6
6 changed files with 35 additions and 12 deletions
+3 -3
View File
@@ -14,7 +14,7 @@
/datum/buildmode_mode/basic/handle_click(client/c, params, obj/object)
var/list/modifiers = params2list(params)
var/left_click = LAZYACCESS(modifiers, LEFT_CLICK)
var/right_click = LAZYACCESS(modifiers, RIGHT_CLICK)
var/alt_click = LAZYACCESS(modifiers, ALT_CLICK)
@@ -45,9 +45,9 @@
new/obj/machinery/door/airlock(get_turf(object))
else if(istype(object,/turf) && ctrl_click && left_click)
var/obj/structure/window/reinforced/window
if(BM.build_dir == NORTHWEST)
if(BM.build_dir in GLOB.diagonals)
window = new /obj/structure/window/reinforced/fulltile(get_turf(object))
else
window = new /obj/structure/window/reinforced(get_turf(object))
window.setDir(BM.build_dir)
window.setDir(BM.build_dir)
log_admin("Build Mode: [key_name(c)] built a window at [AREACOORD(object)]")