X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fslider_picmip.qc;h=226f4559c3425c9ac748a3bb32559b8b61c54042;hb=f532317ada52b5363cb0b74bfbdd38f5015e290c;hp=f663f7dd6d3be0f91f7a5cbffb87e9b3ec1af526;hpb=9eb82dd6fc682e3ddecd471835f9047816236342;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/slider_picmip.qc b/qcsrc/menu/xonotic/slider_picmip.qc index f663f7dd6..226f4559c 100644 --- a/qcsrc/menu/xonotic/slider_picmip.qc +++ b/qcsrc/menu/xonotic/slider_picmip.qc @@ -1,16 +1,5 @@ -#ifndef SLIDER_PICMIP_H -#define SLIDER_PICMIP_H -#include "textslider.qc" -CLASS(XonoticPicmipSlider, XonoticTextSlider) - METHOD(XonoticPicmipSlider, configureXonoticPicmipSlider, void(entity)) - METHOD(XonoticPicmipSlider, draw, void(entity)) - METHOD(XonoticPicmipSlider, autofix, void(entity)) - ATTRIB(XonoticPicmipSlider, have_s3tc, float, 0) -ENDCLASS(XonoticPicmipSlider) -entity makeXonoticPicmipSlider(); // note: you still need to call addValue and configureXonoticTextSliderValues! -#endif +#include "slider_picmip.qh" -#ifdef IMPLEMENTATION entity makeXonoticPicmipSlider() { entity me; @@ -20,7 +9,8 @@ entity makeXonoticPicmipSlider() } void XonoticPicmipSlider_configureXonoticPicmipSlider(entity me) { - me.configureXonoticTextSlider(me, "gl_picmip"); + me.configureXonoticTextSlider(me, "gl_picmip", + _("Change the sharpness of the textures. Lowering it will effectively reduce texture memory usage, but make the textures appear very blurry. (default: good)")); me.autofix(me); me.have_s3tc = GL_Have_TextureCompression(); } @@ -52,4 +42,3 @@ void XonoticPicmipSlider_draw(entity me) me.autofix(me); SUPER(XonoticPicmipSlider).draw(me); } -#endif