Shift + Right click to reset UI variable

More
2 years 4 months ago - 2 years 4 months ago #1 by TreyM
Not sure how simple this is to do, but could something be implemented via a combo input (such as shift + right click or anything else tbh) to reset a UI variable to shader default?

If it's inefficient to read the shader after compilation, perhaps the default values could be stored in the user saved ini alongside the modified values. I'm not sure since I'm not really any kind of programmer.
Last edit: 2 years 4 months ago by TreyM.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #2 by crosire
Replied by crosire on topic Shift + Right click to reset UI variable
This isn't easy to do and would require some ugly hacks I'd much rather avoid. ReShade doesn't preserve defaults. They are gone as soon as you change the value.
The following user(s) said Thank You: TreyM

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #3 by TreyM
Replied by TreyM on topic Shift + Right click to reset UI variable
:( That's too bad. I have an HSL shader setup here that cries every time I have to reset the values.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago - 2 years 4 months ago #4 by Durante_
Replied by Durante_ on topic Shift + Right click to reset UI variable
@TreyM Where did you get this HSL shader? Could you share it, please? It seems amazing!
Last edit: 2 years 4 months ago by Durante_.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #5 by TreyM
Replied by TreyM on topic Shift + Right click to reset UI variable
It was written by my friend kingeric1992. I'll see about getting him to release it.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago - 2 years 4 months ago #6 by Fu-Bama
Replied by Fu-Bama on topic Shift + Right click to reset UI variable

TreyM wrote: :( That's too bad. I have an HSL shader setup here that cries every time I have to reset the values.

Warning: Spoiler!

Maybe you could put default value info in ui_label name? Like "Red (default #BF4040)"
Just an idea
Last edit: 2 years 4 months ago by Fu-Bama.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #7 by TreyM
Replied by TreyM on topic Shift + Right click to reset UI variable
That's already been done. it's not ideal, and that isn't the point. It's still a massive pain to reset every single value.

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago #8 by TreyM
Replied by TreyM on topic Shift + Right click to reset UI variable

Durante_ wrote: @TreyM Where did you get this HSL shader? Could you share it, please? It seems amazing!


The shader has now been released here: Advanced HSL Shifting

Please Log in or Create an account to join the conversation.

More
2 years 1 month ago - 2 years 1 month ago #9 by seri14
Replied by seri14 on topic Shift + Right click to reset UI variable
As an alternative, it can solve by 2 changes.
  1. Clarify that ReShade does not save completely disabled effect settings

    (checked MagicDOF)
    Techniques=MagicDOF
    [DOF.fx]
    ...
    <<EOF
    (unchecked MagicDOF)
    Techniques=
    <<EOF
  2. at load preset, ignore the disabled effect settings
disable technique. press the reload button.

more information: Changed technique settings to be initializable for each effect
Last edit: 2 years 1 month ago by seri14.

Please Log in or Create an account to join the conversation.

More
1 year 10 months ago #10 by crosire
Replied by crosire on topic Shift + Right click to reset UI variable
Link for pull request which adds support for this (for tracking purpose): github.com/crosire/reshade/pull/64
The following user(s) said Thank You: OtisInf

Please Log in or Create an account to join the conversation.