generalize tooltip rendering into a single function
turned into a issue from #2203
General Idea to make rendering a tooltip like element on the screen easier instead of it being hardcoded it should be generalized into a function that renders it
the function should be written in such a way, that it can render multiple tooltips at once. the idea of a background texture is optional on this, requires a generic draw function for 9 slice texture to avoid bloat
the function to render a tooltip takes 3 arguments component: *GuiComponent which is the component thats drawn over the tooltip background this is where the function should know the tooltip size from mousePos: Vec2f the position of the mouse, it should be the thing that determines where the tooltip is draw and a third argument that is the alignment of the tooltip, by default it should be drawn on the right side of the mouse the options are .right .left .center
to give more freedom to the person calling the function, the function should not account for any offsets or limiting the tooltip from drawing itself out of the window bounds
thats the idea priority: low as of writing this, expect related prs to be on low priority as its not important for now and other things should be focused on (like that 9 slice function if it still isnt made) this is more on the contributor friendly side tho quantum will not go easy on u :clearly: