A modified by Redrain's version of the Duilib