mellowagain / shiro

High performance, high quality osu!Bancho C++ re-implementation
GNU Affero General Public License v3.0
40 stars 6 forks source link

Add support for osu! title image #60

Closed mellowagain closed 5 years ago

mellowagain commented 6 years ago

osu!Bancho displays a image according to a current event, such as the Summer Fanart voting (as seen below):

osu!

Adding support for this is easy by sending a out_title_update (id 76) packet to the newly logged in osu! client. The packet contains a string as payload.

If the payload string is null, the currently displayed menu image will be hidden.

If the payload string is in valid format (image url|image href, optionally null), osu! will display the image in the main menu as seen above.

mellowagain commented 5 years ago

The image needs to be from the origin location i.ppy.sh so that the client accepts it. It won't display if the source url for the image is not from that host.