mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Used some defines. No idea if this is what they are for but they have the same values #yolo
This commit is contained in:
@@ -192,16 +192,16 @@
|
|||||||
var/row = round((number-1)/AB_MAX_COLUMNS)
|
var/row = round((number-1)/AB_MAX_COLUMNS)
|
||||||
var/col = ((number - 1)%(AB_MAX_COLUMNS)) + 1
|
var/col = ((number - 1)%(AB_MAX_COLUMNS)) + 1
|
||||||
var/coord_col = "+[col-1]"
|
var/coord_col = "+[col-1]"
|
||||||
var/coord_col_offset = 4+2*col
|
var/coord_col_offset = AB_WEST_OFFSET+2*col
|
||||||
var/coord_row = "[-1 - row]"
|
var/coord_row = "[-1 - row]"
|
||||||
var/coord_row_offset = 26
|
var/coord_row_offset = AB_NORTH_OFFSET
|
||||||
return "WEST[coord_col]:[coord_col_offset],NORTH[coord_row]:[coord_row_offset]"
|
return "WEST[coord_col]:[coord_col_offset],NORTH[coord_row]:[coord_row_offset]"
|
||||||
|
|
||||||
/datum/hud/proc/SetButtonCoords(var/obj/screen/button,var/number)
|
/datum/hud/proc/SetButtonCoords(var/obj/screen/button,var/number)
|
||||||
var/row = round((number-1)/AB_MAX_COLUMNS)
|
var/row = round((number-1)/AB_MAX_COLUMNS)
|
||||||
var/col = ((number - 1)%(AB_MAX_COLUMNS)) + 1
|
var/col = ((number - 1)%(AB_MAX_COLUMNS)) + 1
|
||||||
var/x_offset = 32*(col-1) + 4 + 2*col
|
var/x_offset = 32*(col-1) + AB_WEST_OFFSET + 2*col
|
||||||
var/y_offset = -32*(row+1) + 26
|
var/y_offset = -32*(row+1) + AB_NORTH_OFFSET
|
||||||
|
|
||||||
var/matrix/M = matrix()
|
var/matrix/M = matrix()
|
||||||
M.Translate(x_offset,y_offset)
|
M.Translate(x_offset,y_offset)
|
||||||
@@ -216,3 +216,7 @@
|
|||||||
|
|
||||||
/datum/action/item_action/hands_free
|
/datum/action/item_action/hands_free
|
||||||
check_flags = AB_CHECK_ALIVE|AB_CHECK_INSIDE
|
check_flags = AB_CHECK_ALIVE|AB_CHECK_INSIDE
|
||||||
|
|
||||||
|
#undef AB_WEST_OFFSET
|
||||||
|
#undef AB_NORTH_OFFSET
|
||||||
|
#undef AB_MAX_COLUMNS
|
||||||
Reference in New Issue
Block a user