From e63e3a35132aed48ed1f65c96a3c4caa548b5e91 Mon Sep 17 00:00:00 2001 From: Sparronator9999 <86388887+Sparronator9999@users.noreply.github.com> Date: Tue, 17 Dec 2024 19:14:18 +1100 Subject: [PATCH] Tooltip adjustments + bug fixes - Add (almost) all missing tooltips - Change some existing tooltips and messages - Remove an unused message - (attempt to) Fix slightly misaligned fan curve sliders --- YAMDCC.ConfigEditor/MainWindow.cs | 32 +++++++-- YAMDCC.ConfigEditor/Strings.resx | 113 ++++++++++++++++++++---------- 2 files changed, 101 insertions(+), 44 deletions(-) diff --git a/YAMDCC.ConfigEditor/MainWindow.cs b/YAMDCC.ConfigEditor/MainWindow.cs index 179a04f..abbe51f 100644 --- a/YAMDCC.ConfigEditor/MainWindow.cs +++ b/YAMDCC.ConfigEditor/MainWindow.cs @@ -101,17 +101,20 @@ public MainWindow() Margin = new Padding(2), Tag = i, }; + ttMain.SetToolTip(numFanSpds[i], Strings.GetString("ttFanSpd")); numFanSpds[i].ValueChanged += numFanSpd_Changed; tblCurve.Controls.Add(numFanSpds[i], i + 1, 0); tbFanSpds[i] = new TrackBar() { Dock = DockStyle.Fill, + Margin = new Padding((int)(9 * scale), 0, (int)(9 * scale), 0), Orientation = Orientation.Vertical, Tag = i, TickFrequency = 5, TickStyle = TickStyle.Both, }; + ttMain.SetToolTip(tbFanSpds[i], Strings.GetString("ttFanSpdTB")); tbFanSpds[i].ValueChanged += tbFanSpd_Scroll; tblCurve.Controls.Add(tbFanSpds[i], i + 1, 1); @@ -124,6 +127,7 @@ public MainWindow() Margin = new Padding(2), Tag = i - 1, }; + ttMain.SetToolTip(numUpTs[i - 1], Strings.GetString("ttUpT")); numUpTs[i - 1].ValueChanged += numUpT_Changed; tblCurve.Controls.Add(numUpTs[i - 1], i + 1, 2); } @@ -149,6 +153,7 @@ public MainWindow() Margin = new Padding(2), Tag = i, }; + ttMain.SetToolTip(numDownTs[i], Strings.GetString("ttDownT")); numDownTs[i].ValueChanged += numDownT_Changed; tblCurve.Controls.Add(numDownTs[i], i + 1, 3); } @@ -207,9 +212,16 @@ private void MainWindow_Load(object sender, EventArgs e) LoadConf(Paths.CurrentConfig); - if (Config is not null && Config.KeyLightConf is not null) + if (Config is not null) { - SendServiceMessage(new ServiceCommand(Command.GetKeyLightBright, "")); + if (Config.KeyLightConf is null) + { + ttMain.SetToolTip(tbKeyLight, Strings.GetString("ttNotSupported")); + } + else + { + SendServiceMessage(new ServiceCommand(Command.GetKeyLightBright, "")); + } } if (File.Exists(Paths.ECToConfFail)) @@ -312,6 +324,7 @@ private void IPC_MessageReceived(object sender, PipeMessageEventArgs - The YAMDCC Service crashed while starting. + The YAMDCC service crashed while starting. Check the Event viewer and service log for crash details. @@ -178,9 +178,8 @@ Details (provide this when reporting bugs): The service failed to install. -Try running the YAMDCC configurator again, and if the -service installation fails again, open a bug report with -this error. + +Try running the YAMDCC config editor again, and if the service installation fails again, open a bug report with this error. The YAMDCC Service is not installed. @@ -190,83 +189,86 @@ Additionally, the executable for the YAMDCC Service (yamdccsvc.exe) was not foun Try re-installing/re-downloading YAMDCC to fix this. - The YAMDCC Service is not installed yet. + The YAMDCC service is not installed yet. Would you like to install it now? - The YAMDCC Service is currently not running. + The YAMDCC service is currently not running. Would you like to start it now? (Clicking "No" will quit the program.) Show information about this program, including -copyright and licensing information. +version, copyright and licensing information. Applies the currently loaded config to the system. - Llimits the charge percentage of the battery in this laptop to the specified percentage. + Set to anything other than "0" (i.e. 1-100) to limit the charge +level of your laptop's battery to the specified percentage. Set to "0" to disable this feature. - When enabled, prints information about the fan speed and RPM, -and the temperature of the component being cooled by the fan. + When enabled, information about the fan speed and RPM, and the temperature +of the component being cooled by the fan (e.g. CPU) to the status bar. Click to quit YAMDCC. The YAMDCC service will continue to run in the background. - The fan to adjust a fan curve for. -Depending on your laptop, there may be multiple fans listed here, -even if your laptop only has one physical fan installed. + The fan to adjust a fan profile for. +Depending on your laptop, there may be multiple "virtual" fans +listed here, even if your laptop only has one physical fan. - Sets all fans to full blast while checked. + Check to set all fans to full blast. - Swaps the Windows and Fn keys while checked. + Check to swap the Windows and Fn keys' functions. - Loads an XML config to edit or apply. + Click to load an XML config to edit or apply. This feature is not supported by your system. - Creates a new fan profile with the currently selected fan profile's settings. + Click to create a new fan profile with the currently selected profile's settings. - Changes the currently selected fan profile's description -A dialog will open, in which you can enter the fan profile's new description. + Click to change the currently selected fan profile's description. - Deletes the currently selected fan profile. + Click to delete the currently selected fan profile. - Changes the name of the currently selected fan profile. -A dialog will open, in which you can enter the fan profile's new name. + Click to change the currently selected fan profile's name. - The fan profile to adjust for the current fan. + The fan profile to apply to the currently selected fan. + +Profile description: +{0} - Revert the currently loaded config to when it was first loaded + Click to revert the currently loaded config to when it was first loaded using "Load Config", or saved using "Save Config", whichever came last. - Saves the currently loaded config to an XML file. + Click to save the currently loaded config to an XML file. - Go to the GitHub page for this project. + Click to go to this project's GitHub page. - Stops the YAMDCC service, and quits the YAMDCC configurator. + Click to stop the YAMDCC service. +This will also quit the YAMDCC config editor (this program). - Uninstalls the YAMDCC service and quits the YAMDCC configurator. -Only run if you want to uninstall YAMDCC or move its program files to another location. + Click to uninstall the YAMDCC service (and quit the YAMDCC config editor). +Only do this if you want to uninstall YAMDCC or move its program files to another location. Failed to uninstall the YAMDCC service! @@ -307,11 +309,6 @@ Please re-run this program as Administrator Please load a config to start - - This is a template config. -Template configs are currently a WIP and cannot be used yet. -Please load a different config. - WARN: Service has not responded for a while. Try restarting YAMDCC. @@ -323,8 +320,8 @@ You will need to reboot your computer so that the fan settings are reset to thei An error occurred while fetching your laptop's default fan curves. -This is probably a bug; please report this on YAMDCC's issue tracker, -including the log folder (located at {0}). +This is probably a bug; please report this to YAMDCC's issue tracker, including the log folder +(located at {0}). Your laptop's default fan curves have been saved to the currently applied config successfully. @@ -340,4 +337,46 @@ Cancel and continue loading YAMDCC? Copyright © Sparronator9999 (and contributors), 2023-2024. YAMDCC and its authors are not affiliated with Micro-Star International Co., Ltd. in any way, shape, or form. - + + This is the temperature that the component being cooled by +this fan must warm up to before the fan speeds up. + +Recommended values: +If your lowest fan speed is set to 0% (off), start at ~45-50°C, +otherwise start higher (~50-55°C). +Keep increasing to around 75-90°C for the highest up threshold. + + + This is the temperature that the component being cooled by +this fan must cool down to before the fan slows down. + +Recommended values: +Set every down threshold to ~3°C below the next up threshold +(i.e. the one diagonally up and to the right of this down threshold). +Increase the gap (e.g. to 5°C) if your fan often cycles on and off +or between two speeds while idling. + + + Placeholder (fan speed (trackbar)) + + + This is the fan speed that the fan will run at when the component's +temperature is between the up and down thresholds below. + +Recommended values: +To turn the fan off at idle, set the lowest fan speed to 0%. +Start at ~30-40% for the next speed up (depending on your laptop), +increasing to (or close to) 100% for the highest setting. + + + Drag to the right to increase your laptop's keyboard backlight +brightness, or drag left to decrease it (or turn it off). + + + Select the performance mode of your laptop here. +Note that this is different from Windows' power plans. + +Performance mode description: +{0} + + \ No newline at end of file