Returns a UI icon config for the specified genre.
Returns a UI icon config for the specified genre.
1 table genreData
the genre data.
2 number backdropW
the icon backdrop width.
3 number backdropH
the icon backdrop height. Usually this should be the same as the width value.
4 number iconSize
the icon size.
1 table
the UI config ready to be used when adding text to descboxes.
local dbox = gui.create("GenericDescbox", self) dbox:setPos(0, _S(4)) dbox:setShowRectSprites(false) dbox:overwriteDepth(5) dbox:setFadeInSpeed(0) dbox:addText(projectObject:getProjectTypeText(), "bh22", nil, 2, capWidth, genres:getGenreUIIconConfig(genres:getData(projectObject:getGenre()), 20, 20, 18))