view_data

Container for client viewsize
Vars | |
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 |
supress_changes | If the view is currently being suppressed 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 suppressed for some reason |
zoom | This client's current zoom level, if it's not being suppressed 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 |
Procs | |
add | adds the number inputted to the zoom and applies it |
add_size | adds the size, which can also be a string, to the default and applies it |
add_to_height | adds the inputted height to the view |
add_to_width | adds the inputted width to the view |
apply | applies all current outstanding changes to the client |
assert_format | Resets the format type |
get_client_view_size | returns the client view size in string format |
is_zooming | Returns a boolean if the client has any form of zoom |
reset_to_default | Resets the zoom to the default string |
safe_apply_formatting | Updates formatting while considering zoom |
set_default | sets the default view size froma string |
set_height | sets the height of the view |
set_view_radius_to | INCREASES the view radius by this. |
set_width | sets the width of the view |
set_width_and_height | sets width and height as numbers |
supress | supresses any further view changes until it is unsupressed |
unsupress | unsupresses to allow further view changes |
update_pixel_format | applies the current clients preferred pixel size setting |
update_zoom_mode | applies the preferred clients scaling method |
zoom_in | Zooms the client back in with an animate pretty simple |
zoom_out | zooms out the client with a given radius and offset as well as a direction |
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
supress_changes

If the view is currently being suppressed 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 suppressed for some reason
zoom

This client's current zoom level, if it's not being suppressed 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
Proc Details
add
adds the number inputted to the zoom and applies it
add_size
adds the size, which can also be a string, to the default and applies it
add_to_height
adds the inputted height to the view
add_to_width
adds the inputted width to the view
apply
applies all current outstanding changes to the client
assert_format
Resets the format type
get_client_view_size
returns the client view size in string format
is_zooming
Returns a boolean if the client has any form of zoom
reset_to_default
Resets the zoom to the default string
safe_apply_formatting
Updates formatting while considering zoom
set_default
sets the default view size froma string
set_height
sets the height of the view
set_view_radius_to
INCREASES the view radius by this.
set_width
sets the width of the view
set_width_and_height
sets width and height as numbers
supress
supresses any further view changes until it is unsupressed
unsupress
unsupresses to allow further view changes
update_pixel_format
applies the current clients preferred pixel size setting
update_zoom_mode
applies the preferred clients scaling method
zoom_in
Zooms the client back in with an animate pretty simple
zoom_out
zooms out the client with a given radius and offset as well as a direction