Moved non-entity specific code from gs-entbase/client/ to client/
This commit is contained in:
parent
c46a49261c
commit
b27f060589
14 changed files with 75 additions and 18 deletions
|
@ -57,7 +57,16 @@ defs.h
|
|||
|
||||
../../shared/valve/player.cpp
|
||||
../../shared/pmove.c
|
||||
|
||||
../sky.c
|
||||
../fade.cpp
|
||||
../sprite.cpp
|
||||
../titles.cpp
|
||||
../text.cpp
|
||||
../sentences.cpp
|
||||
|
||||
../../gs-entbase/client.src
|
||||
|
||||
../../shared/decals.c
|
||||
../../shared/effects.c
|
||||
../../shared/spraylogo.cpp
|
||||
|
|
|
@ -17,6 +17,13 @@
|
|||
../defs.h
|
||||
../../vgui/include.src
|
||||
../util.c
|
||||
../sky.c
|
||||
../fade.cpp
|
||||
../sprite.cpp
|
||||
../titles.cpp
|
||||
../text.cpp
|
||||
../sentences.cpp
|
||||
|
||||
../../gs-entbase/client.src
|
||||
../sound.c
|
||||
../text.c
|
||||
|
|
|
@ -21,6 +21,13 @@
|
|||
../util.c
|
||||
init.c
|
||||
|
||||
../sky.c
|
||||
../fade.cpp
|
||||
../sprite.cpp
|
||||
../titles.cpp
|
||||
../text.cpp
|
||||
../sentences.cpp
|
||||
|
||||
../../gs-entbase/client.src
|
||||
|
||||
decore.cpp
|
||||
|
|
|
@ -19,6 +19,13 @@
|
|||
|
||||
../util.c
|
||||
|
||||
../sky.c
|
||||
../fade.cpp
|
||||
../sprite.cpp
|
||||
../titles.cpp
|
||||
../text.cpp
|
||||
../sentences.cpp
|
||||
|
||||
../../gs-entbase/client.src
|
||||
|
||||
../sound.c
|
||||
|
|
|
@ -22,6 +22,13 @@ vgui_chooseteam.cpp
|
|||
../util.c
|
||||
init.c
|
||||
|
||||
../sky.c
|
||||
../fade.cpp
|
||||
../sprite.cpp
|
||||
../titles.cpp
|
||||
../text.cpp
|
||||
../sentences.cpp
|
||||
|
||||
../../gs-entbase/client.src
|
||||
|
||||
../sound.c
|
||||
|
|
|
@ -20,6 +20,13 @@ particles.h
|
|||
../util.c
|
||||
init.c
|
||||
|
||||
../sky.c
|
||||
../fade.cpp
|
||||
../sprite.cpp
|
||||
../titles.cpp
|
||||
../text.cpp
|
||||
../sentences.cpp
|
||||
|
||||
../../gs-entbase/client.src
|
||||
|
||||
../sound.c
|
||||
|
|
|
@ -25,19 +25,38 @@ void Voice_DrawHUD(void) {
|
|||
vector pos = video_mins + [video_res[0] - 160, video_res[1] - 136];
|
||||
|
||||
for (int i = -1; i > -32; i--) {
|
||||
if (getplayerkeyfloat(i, INFOKEY_P_VOIPSPEAKING) == 1) {
|
||||
drawfill(pos, [144,24], [0,0,0], 0.5f);
|
||||
drawfill(pos, [144, 1], UI_MAINCOLOR, 1.0f);
|
||||
drawfill([pos[0], pos[1] + 23], [144, 1], UI_MAINCOLOR, 1.0f);
|
||||
drawfill(pos, [1, 24], UI_MAINCOLOR, 1.0f);
|
||||
drawfill([pos[0] + 143, pos[1]], [1, 24], UI_MAINCOLOR, 1.0f);
|
||||
|
||||
drawfont = FONT_CON;
|
||||
drawstring([pos[0] + 28, pos[1] + 8], getplayerkeyvalue(i, "name"), [12,12], [1,1,1], 1.0f, DRAWFLAG_NORMAL);
|
||||
|
||||
drawpic(pos + [2,0], "gfx/vgui/icntlk_sv.tga", [24,24], UI_MAINCOLOR, 1, DRAWFLAG_NORMAL);
|
||||
pos[1] -= 32;
|
||||
if (getplayerkeyfloat(i, INFOKEY_P_VOIPSPEAKING) != 1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* borders */
|
||||
drawfill(pos, [144,24], [0,0,0], 0.5f);
|
||||
drawfill(pos, [144, 1], UI_MAINCOLOR, 1.0f);
|
||||
drawfill([pos[0], pos[1] + 23], [144, 1], UI_MAINCOLOR, 1.0f);
|
||||
drawfill(pos, [1, 24], UI_MAINCOLOR, 1.0f);
|
||||
drawfill([pos[0] + 143, pos[1]], [1, 24], UI_MAINCOLOR, 1.0f);
|
||||
|
||||
/* icon */
|
||||
drawpic(
|
||||
pos + [2,0],
|
||||
"gfx/vgui/icntlk_sv.tga",
|
||||
[24,24],
|
||||
UI_MAINCOLOR,
|
||||
1.0f,
|
||||
DRAWFLAG_NORMAL
|
||||
);
|
||||
|
||||
/* speaker name */
|
||||
drawfont = FONT_CON;
|
||||
drawstring(
|
||||
[pos[0] + 28, pos[1] + 8],
|
||||
getplayerkeyvalue(i, "name"),
|
||||
[12,12],
|
||||
[1,1,1],
|
||||
1.0f,
|
||||
DRAWFLAG_NORMAL
|
||||
);
|
||||
pos[1] -= 32;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
#includelist
|
||||
materials.h
|
||||
client/sky.c
|
||||
client/baseentity.cpp
|
||||
client/fade.cpp
|
||||
client/sprite.cpp
|
||||
client/titles.cpp
|
||||
client/text.cpp
|
||||
client/sentences.cpp
|
||||
client/env_cubemap.cpp
|
||||
client/env_glow.cpp
|
||||
client/env_sound.cpp
|
||||
|
|
Loading…
Reference in a new issue