Open
Description
This is a permanent issue where we will list areas of the framework that need better documentation. Feel free to tackle these tasks if you have time.
XMLDoc improvements
TooltipContainer
- The reuse of tooltips.
- The reuse of custom tooltips, on a per-type basis, and how to avoid re-use.
- How content is passed from Drawable to a custom tooltip (
TooltipContent
/SetContent()
).
Drawable
-
DrawSize
does not account for scale of either theDrawable
itself or any of its parents. -
DrawScale
does not account for scale of parents. - End event handler methods (e.g.
OnKeyUp
,OnFocusLost
, etc...) need rewording to better indicate which requires handling begin event. ButtonDownInputQueue includes sibling drawables to the one handling it #3625 (comment)
Wiki documentation
We hope to add more auxiliary documentation on the wiki covering common patterns in the framework. If you wish to contribute to this (and don't have access) please feel free to post an article in this thread and we will transfer it across.
Drawables
Layout
- How coordinates systems work (and relative sizing)
- How to use
DrawSizePreservingFillContainer
to make custom coordinate spaces (and aspect ratio enforcement) for hierarchies - How anchor / origin work (can be roughly transferred from my blog post source)
Event handling
- When drawables receive end events must be mentioned correctly. ButtonDownInputQueue includes sibling drawables to the one handling it #3625 (comment)
Fonts
- How to generate binary font files using the bmfont config file (https://github.com/ppy/osu-framework/blob/master/osu.Framework/Resources/Fonts/bmfont.bmfc)
- How to add font resources to the game
Debugging
- How to display and use the global statistics tool to track and hunt down performance issues.