Hello guys! I have no coding knowledge whatsoever, just bits and scraps that i picked up somewhere.
Here's default piece of code
[code]uniform float ZoomLevel <
ui_type = "drag";
ui_min = 1.0;
ui_max = 10.0;
ui_step = 0.01;
ui_tooltip = "How much the magnifier will scale things.";
> = 2.5;
[/code]
I tried to make it so when im Holding down button ZoomLevel is changing to 1.8, and when im releasing button it changing to 1.0
after searching forum is came up with this
uniform float ZoomLevel <
ui_type = "drag";
ui_min = 1.0;
ui_max = 10.0;
ui_step = 0.01;
ui_tooltip = "How much the magnifier will scale things.";
> = 2.5;
uniform bool key_zoom< source = "mousebutton"; keycode = 107; toggle = false; >;
(key_zoom)
return ZoomLevel = 1.8;
(!key_zoom)
return ZoomLevel = 1.0;
of course it didnt worked lol. Can somebody hold my hand there please and explain what i should do to make it work?
here's the shader
raw.githubusercontent.com/mhgar/ReShade-.../master/Magnifier.fx