]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/image.c
Merge branch 'fruitiex/newpanelhud_stable'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / image.c
1 #ifdef INTERFACE
2 CLASS(XonoticImage) EXTENDS(Image)
3         METHOD(XonoticImage, configureXonoticImage, void(entity, string, float))
4 ENDCLASS(XonoticImage)
5 entity makeXonoticImage(string theImage, float theAspect);
6 #endif
7
8 #ifdef IMPLEMENTATION
9 entity makeXonoticImage(string theImage, float theAspect)
10 {
11         entity me;
12         me = spawnXonoticImage();
13         me.configureXonoticImage(me, theImage, theAspect);
14         return me;
15 }
16 void XonoticImage_configureXonoticImage(entity me, string theImage, float theAspect)
17 {
18         me.configureImage(me, theImage);
19         me.forcedAspect = theAspect;
20 }
21 #endif