Skip to content

Commit

Permalink
Update spec.hud
Browse files Browse the repository at this point in the history
  • Loading branch information
adem4ik committed Apr 20, 2017
1 parent 81a45f8 commit 99000c4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
32 changes: 32 additions & 0 deletions inc/spec/chat.hud
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
setFontFamily con_fontSystem
if %SOFTKEYBOARD
setFontSize %VIDHEIGHT / 35
endif
ifnot %SOFTKEYBOARD
setFontSize %VIDHEIGHT / 50
endif

setAlign 1 1
setSize #WIDTH - 20 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, 130
setCursor 10 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, 56
ifnot %CHAT_MODE && %SOFTKEYBOARD
moveCursor 0, 305
if %CHASING != #NOTSET
moveCursor 0, -30
endif
endif

if %CHAT_MODE > 0
setColor 0 0 0 1
endif
if %CHAT_MODE == 0
setColor 0 0 0 0
endif

drawChat 7 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, 6, "gfx/2d/chat1"

if %CHAT_MODE > 0
setSize 32 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, 32
moveCursor #WIDTH - 60 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, 90
drawPicByName "gfx/2d/bubblechat"
endif
8 changes: 4 additions & 4 deletions inc/spec/obituaries.hud
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
if %RACE == 0
// draws the kill log in the lower left corner of the screen
setAlign #LEFT, #BOTTOM
setCursor 10 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, #HEIGHT - 40
setCursor 10 * 1.333 * %VIDHEIGHT / %VIDWIDTH, #HEIGHT - 43
// character-space vs resolution
setSize 400 * 1.3333333333 * %VIDHEIGHT / %VIDWIDTH, 30
setSize 400 * 1.333 * %VIDHEIGHT / %VIDWIDTH, 60
setFontFamily con_fontSystem
setFontStyle Bold
setFontSize %VIDHEIGHT / 48
drawObituaries #LEFT, 24
setFontSize %VIDHEIGHT / 50
drawObituaries #LEFT 18
setFontStyle "Normal" //resets font style to default
endif

2 changes: 1 addition & 1 deletion spec.hud
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ include weaponcross
endif //if %MATCH_STATE < #MATCH_STATE_POSTMATCH

include awards
include chat
include spec/chat

if %SCOREBOARD == 1
setCursor 0 0
Expand Down

0 comments on commit 99000c4

Please sign in to comment.