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:
Geeves
2025-08-25 10:29:59 +00:00
committed by GitHub
parent 58dfd19e07
commit bc58f34f16
2 changed files with 15 additions and 0 deletions
+9
View File
@@ -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]]")