View Issue Details

IDProjectCategoryView StatusLast Update
0006067The Dark ModGUIpublic08.08.2022 17:36
ReporterGeep Assigned To 
PrioritynormalSeveritynormalReproducibilityalways
Status newResolutionopen 
Product VersionTDM 2.10 
Summary0006067: Gamma Standard Picture not showing
DescriptionIn the Settings/Video menu, mousing over the Gamma or Brightness controls should bring up a somewhat-sticky "Gamma Standards Picture" to the left. This is not happening in 2.10

Cause: In mainmenu_settings_video.gui, the addition of a tooltip macro in two places disables a preceding onMouseEnter handler. General discussion of this type of problem is in just-posted page https://wiki.thedarkmod.com/index.php?title=GUI_Scripting:Tooltip_Macro.
Steps To ReproduceAs stated above.
Additional InformationFix is as shown below. For each sliderDef, this involved merging the functionality of the 2 onMouseEnter handlers, and adding explicit onMouseExit

        sliderDef Gamma
        {
            rect SETTINGS_X_OFFSET-1, 92, 71, 8
            forecolor 0.8, 1, 1, 1
            matcolor 1, 1, 1, 1
            low 0.5
            high 2.0
            step 0.1
            thumbShader "guis/assets/mainmenu/buttons_settingsmenu/slider_bar1"
            cvar "r_postprocess_gamma"

            onMouseEnter {
                if ("GammaStandardPicture::visible" == 0) {
                    resetTime "AnimGammaUp" 0
                }
                showToolTip("#str_menu_gamma_tooltip");
            }
            onMouseExit {
                hideToolTip();
            }
            //toolTip("#str_menu_gamma_tooltip")
        }
...
        sliderDef Brightness
        {
            rect SETTINGS_X_OFFSET-1, 109, 71, 8
            forecolor 0.8, 1, 1, 1
            matcolor 1, 1, 1, 1
            low 0.5
            high 2.0
            step 0.1
            thumbShader "guis/assets/mainmenu/buttons_settingsmenu/slider_bar1"
            cvar "r_postprocess_brightness"

            onMouseEnter {
                if ("GammaStandardPicture::visible" == 0) {
                    resetTime "AnimGammaUp" 0
                }
                showToolTip("#str_menu_brightness_tooltip");
            }
            onMouseExit {
                hideToolTip();
            }
            //toolTip("#str_menu_brightness_tooltip")
        }
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
08.08.2022 17:36 Geep New Issue