1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 02:07:34 +08:00
osu-lazer/osu.Game/Overlays/Mods
Bartłomiej Dach 9e5b6b97ff
Fix AdjustedAttributesTooltip being broken by design
Fixes issue described in the following comment:
https://github.com/ppy/osu/pull/25759#issuecomment-1855954637

That is just not how the tooltip system is supposed to be used.

To name the individual sins:

- Caching and returning a tooltip instance like the classes that used
  tooltips is incorrect. The lifetime of tooltip instances is managed by
  the tooltip container. `GetCustomTooltip()` is called by it
  exclusively. It should return a fresh instance every time.

- Not putting actual data in `IHasCustomTooltip.TooltipContent` is
  wrong.

- Having `Tooltip.SetContent()` be a no-op is *grossly and flagrantly*
  wrong.

I'm not even sure which particular combination of the above
transgressions caused the issue as it presented itself, but at this time
I frankly do not care.
2023-12-14 16:15:56 +01:00
..
Input Rename IsValid to Visible 2023-06-02 11:33:38 +03:00
AddPresetButton.cs Inverse and xmldoc ShearedToggleButton sample allowance bool 2023-08-18 17:05:25 +09:00
AddPresetPopover.cs Add protections against handling system mods in mod presets 2023-11-06 08:05:42 +01:00
AdjustedAttributesTooltip.cs Fix AdjustedAttributesTooltip being broken by design 2023-12-14 16:15:56 +01:00
BeatmapAttributesDisplay.cs Fix AdjustedAttributesTooltip being broken by design 2023-12-14 16:15:56 +01:00
DeleteModPresetDialog.cs make ResetConfirmDialog properly utilise its parent's logic 2023-03-05 20:57:26 +01:00
DeselectAllModsButton.cs Automated pass 2023-06-24 01:00:03 +09:00
EditPresetPopover.cs Add protections against handling system mods in mod presets 2023-11-06 08:05:42 +01:00
IncompatibilityDisplayingModPanel.cs Automated pass 2023-06-24 01:00:03 +09:00
IncompatibilityDisplayingTooltip.cs Automated pass 2023-06-24 01:00:03 +09:00
ModButtonTooltip.cs Partial everything 2022-11-27 00:00:27 +09:00
ModColumn.cs Remove obvious comment 2023-06-18 14:04:00 +02:00
ModFooterInformationDisplay.cs Merge branch 'master' into mod-select-difficulty-multiplier-animation 2023-09-14 16:23:30 +02:00
ModPanel.cs Remove duplicated xmldoc and move into relevant region 2023-06-18 13:59:36 +02:00
ModPresetColumn.cs Collapse mod presets column slightly when not in use 2023-09-13 17:05:42 +09:00
ModPresetPanel.cs Add protections against handling system mods in mod presets 2023-11-06 08:05:42 +01:00
ModPresetRow.cs split ModPresetRow 2023-03-11 11:25:52 +09:00
ModPresetTooltip.cs Use AsOrdered() when presenting mod presets too 2023-09-28 18:42:05 +02:00
ModSearchContainer.cs Fix SearchTerm set causing infinite loop 2023-05-31 19:36:42 +03:00
ModSelectColumn.cs Collapse mod presets column slightly when not in use 2023-09-13 17:05:42 +09:00
ModSelectOverlay.cs Automatically focus search text box on open depending on setting 2023-12-14 09:52:55 +01:00
ModSelectPanel.cs Merge branch 'master' into add-mod-search-option 2023-06-18 15:06:21 +02:00
ModSettingsArea.cs Replace local sort with new utility method 2023-09-28 18:35:15 +02:00
ModState.cs Fix some code layout and NRT some classes 2023-06-19 01:03:43 +09:00
ScoreMultiplierDisplay.cs Improve flash effect 2023-09-14 13:57:56 +09:00
SelectAllModsButton.cs Fix test failures 2023-11-02 21:24:58 +01:00
ShearedOverlayContainer.cs Apply osu! side changes in line with FocusedOverlayContainer.PopIn abstract change 2023-06-18 20:57:32 +09:00
UserModSelectOverlay.cs Partial everything 2022-11-27 00:00:27 +09:00
VerticalAttributeDisplay.cs Merge branch 'master' into arod_rate_adjust 2023-11-12 15:49:07 +09:00