]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/image.qc
Sort menu classes
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / image.qc
1 #ifndef IMAGE_H
2 #define IMAGE_H
3 CLASS(XonoticImage, Image)
4         METHOD(XonoticImage, configureXonoticImage, void(entity, string, float))
5 ENDCLASS(XonoticImage)
6 entity makeXonoticImage(string theImage, float theAspect);
7 #endif
8
9 #ifdef IMPLEMENTATION
10 entity makeXonoticImage(string theImage, float theAspect)
11 {
12         entity me;
13         me = NEW(XonoticImage);
14         me.configureXonoticImage(me, theImage, theAspect);
15         return me;
16 }
17 void XonoticImage_configureXonoticImage(entity me, string theImage, float theAspect)
18 {
19         me.configureImage(me, theImage);
20         me.forcedAspect = theAspect;
21 }
22 #endif