[TextRenderer]: Added 'Low Ammo' with keybind. (#4)

This commit is contained in:
JerryALT
2024-03-23 23:43:03 +03:00
parent 3a50517730
commit 76cf13689b
5 changed files with 67 additions and 0 deletions

View File

@ -198,6 +198,21 @@
visible 1
decoration
}
itemDef
{
name "lowammowarning"
rect -10 15 150 30 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
textfont UI_FONT_DEFAULT
textscale TEXTSIZE_SMALL
textalign (ITEM_ALIGN_CENTER | ITEM_ALIGN_MIDDLE)
textstyle ITEM_TEXTSTYLE_SHADOWED
forecolor 1 1 1 1
//background "white"
ownerdraw CG_PLAYER_WEAPON_LOW_AMMO_WARNING
visible when ( dvarInt( g_gameskill ) == 0 || dvarInt( g_gameskill ) == 1 /*&& dvarBool ( gpad_in_use ) == 1*/ );
decoration
}
}
#define COMPASS_OFFSET 0 -10