From bc58f34f168c404e90ec339c94b1a75a974f71b3 Mon Sep 17 00:00:00 2001
From: Geeves <22774890+Geevies@users.noreply.github.com>
Date: Mon, 25 Aug 2025 12:29:59 +0200
Subject: [PATCH] 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.
---
code/modules/client/client_procs.dm | 9 +++++++++
html/changelogs/geeves-zoom_for_screenies.yml | 6 ++++++
2 files changed, 15 insertions(+)
create mode 100644 html/changelogs/geeves-zoom_for_screenies.yml
diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm
index 2e7b1866c36..eb62fc97a16 100644
--- a/code/modules/client/client_procs.dm
+++ b/code/modules/client/client_procs.dm
@@ -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]]")
diff --git a/html/changelogs/geeves-zoom_for_screenies.yml b/html/changelogs/geeves-zoom_for_screenies.yml
new file mode 100644
index 00000000000..51afa5cfcd5
--- /dev/null
+++ b/html/changelogs/geeves-zoom_for_screenies.yml
@@ -0,0 +1,6 @@
+author: Geeves
+
+delete-after: True
+
+changes:
+ - rscadd: "Added the option to set your view zoom in the OOC tab. Use this for screenshots or cheating at melee fights."