From 59b7b3e4df9d6e9e730f1373b59ebeea9a100e7f Mon Sep 17 00:00:00 2001 From: RallyBlock Date: Tue, 10 Nov 2026 01:58:28 -0500 Subject: [PATCH] Zoom binds + shiftBrick; click norm Y --- client.cs | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/client.cs b/client.cs index a566d33..e1190d5 100644 --- a/client.cs +++ b/client.cs @@ -56,7 +56,7 @@ function RPGClient_NormScreenPos(%pos) %h = 1; } %x = getWord(%pos, 0) / %w; - %y = 1 - getWord(%pos, 1) / %h; + %y = getWord(%pos, 1) / %h; return RPGClient_ClampNorm(%x, %y); } @@ -467,6 +467,10 @@ function RPGClient_StockMoveMapBinds() moveMap.bind(keyboard, d, moveright); moveMap.bind(keyboard, left, invLeft); moveMap.bind(keyboard, right, invRight); + moveMap.bind(keyboard, equals, RPGClient_ZoomIn); + moveMap.bind(keyboard, minus, RPGClient_ZoomOut); + moveMap.bind(keyboard, "[", RPGClient_ZoomIn); + moveMap.bind(keyboard, "]", RPGClient_ZoomOut); } function RPGClient_RestoreMoveMap() @@ -696,7 +700,7 @@ function RPGClient_ZoomIn(%val) } if (%val) { - $RPGClient::Dist = getMax($RPGClient::DistMin, $RPGClient::Dist - 1.2); + $RPGClient::Dist = getMax($RPGClient::DistMin, $RPGClient::Dist - 2.5); RPGClient_ApplyCamera(1); } } @@ -713,7 +717,7 @@ function RPGClient_ZoomOut(%val) } if (%val) { - $RPGClient::Dist = getMin($RPGClient::DistMax, $RPGClient::Dist + 1.2); + $RPGClient::Dist = getMin($RPGClient::DistMax, $RPGClient::Dist + 2.5); RPGClient_ApplyCamera(1); } } @@ -1160,6 +1164,30 @@ package RPGClient_Input }; activatePackage(RPGClient_Input); +package RPGClient_ZoomKeys +{ + function shiftBrickUp(%val) + { + if (RPGClient_RpgKeys() && %val) + { + RPGClient_ZoomIn(1); + return; + } + Parent::shiftBrickUp(%val); + } + + function shiftBrickDown(%val) + { + if (RPGClient_RpgKeys() && %val) + { + RPGClient_ZoomOut(1); + return; + } + Parent::shiftBrickDown(%val); + } +}; +activatePackage(RPGClient_ZoomKeys); + package RPGClient_MapStack { function noHudGui::onWake(%this)