2 CLASS(XonoticImage) EXTENDS(Image)
3 METHOD(XonoticImage, configureXonoticImage, void(entity, string, float))
5 entity makeXonoticImage(string theImage, float theAspect);
9 entity makeXonoticImage(string theImage, float theAspect)
12 me = spawnXonoticImage();
13 me.configureXonoticImage(me, theImage, theAspect);
16 void configureXonoticImageXonoticImage(entity me, string theImage, float theAspect)
18 me.configureImage(me, theImage);
19 if(theAspect < 0) // use image aspect
22 sz = draw_PictureSize(theImage);
23 me.forcedAspect = sz_x / sz_y;
26 me.forcedAspect = theAspect;