2 CLASS(NexuizImage) EXTENDS(Image)
3 METHOD(NexuizImage, configureNexuizImage, void(entity, string, float))
5 entity makeNexuizImage(string theImage, float theAspect);
9 entity makeNexuizImage(string theImage, float theAspect)
12 me = spawnNexuizImage();
13 me.configureNexuizImage(me, theImage, theAspect);
16 void configureNexuizImageNexuizImage(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;