Yogstation 13 - Modules - TypesVar Details

/datum/viewData

Container for client viewsize

Vars

chiefThe client that owns this view packet
defaultThis client's current "default" view, in the format "WidthxHeight" We add/remove from this when we want to change their window size
heightHeight offset to apply to the default view string, see above
is_suppressedIf the view is currently being supressed by some other "monitor" For when you want to own the client's eye without fucking with their viewport Doesn't make sense for a binocoler to effect your view in a camera console
widthWidth offset to apply to the default view string if we're not supressed for some reason
zoomThis client's current zoom level, if it's not being supressed If it's 0, we autoscale to the size of the window. Otherwise it's treated as the ratio between the pixels on the map and output pixels. Only looks proper nice in increments of whole numbers (iirc) Stored here so other parts of the code have a non blocking way of getting a user's functional zoom

Var Details

chief

The client that owns this view packet

default

This client's current "default" view, in the format "WidthxHeight" We add/remove from this when we want to change their window size

height

Height offset to apply to the default view string, see above

is_suppressed

If the view is currently being supressed by some other "monitor" For when you want to own the client's eye without fucking with their viewport Doesn't make sense for a binocoler to effect your view in a camera console

width

Width offset to apply to the default view string if we're not supressed for some reason

zoom

This client's current zoom level, if it's not being supressed If it's 0, we autoscale to the size of the window. Otherwise it's treated as the ratio between the pixels on the map and output pixels. Only looks proper nice in increments of whole numbers (iirc) Stored here so other parts of the code have a non blocking way of getting a user's functional zoom