mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Zoom for Screenshots and More (#21146)
* Added the option to set your view zoom in the OOC tab. Use this for screenshots or cheating at melee fights. <img width="131" height="152" alt="image" src="https://github.com/user-attachments/assets/ddc5df8d-843d-4c12-af17-add78dfb310f" /> <img width="1919" height="983" alt="image" src="https://github.com/user-attachments/assets/b308321c-a1c7-4457-a38f-e9f582fe88d4" />
This commit is contained in:
@@ -1023,3 +1023,12 @@ GLOBAL_LIST_INIT(localhost_addresses, list(
|
||||
/// This grabs the DPI of the user per their skin
|
||||
/client/proc/acquire_dpi()
|
||||
window_scaling = text2num(winget(src, null, "dpi"))
|
||||
|
||||
/client/verb/set_icon_size()
|
||||
set name = "Set View Zoom"
|
||||
set desc = "Lets you zoom in."
|
||||
set category = "OOC"
|
||||
|
||||
var/list/zoom_options = list("Default" = 0, "Low" = 3, "Medium" = 6, "High" = 10, "Extreme" = 15)
|
||||
var/selected_zoom = tgui_input_list(usr, "Please select a zoom level for your view.", "Set View Zoom", zoom_options, zoom_options[1])
|
||||
winset(src, "mapwindow.map", "zoom=[zoom_options[selected_zoom]]")
|
||||
|
||||
Reference in New Issue
Block a user