Skip to content

Commit

Permalink
game.cfg: replace strings with aliases for project-imprimis#18
Browse files Browse the repository at this point in the history
  • Loading branch information
b-sharman committed Feb 9, 2021
1 parent 8c5e198 commit c7ca7bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/game.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Game specific config stuff goes here

exec "config/lang_en.cfg" //language strings

// Scoreboard Options
defvarp showscore 0 1 1
defvarp showkills 0 1 1
Expand All @@ -18,8 +20,8 @@ nextspecmode = [
defvarp zoomtoggle 0 0 1
dozoom = [if $zoomtoggle [zoom (? $zoom -1 1)] [zoom 1 ; onrelease [zoom -1]]]

sayteamcommand = [inputcommand $arg1 [sayteam $commandbuf] "[team]"]
saychatcommand = [inputcommand $arg1 [say $commandbuf] "[chat]"]
sayteamcommand = [inputcommand $arg1 [sayteam $commandbuf] (concatword "[" $uistr_game_0 "]")]
saychatcommand = [inputcommand $arg1 [say $commandbuf] (concatword "[" $uistr_game_1 "]")]

mapcomplete = [complete $arg1 media/map ogz]
mapcomplete map
Expand All @@ -34,4 +36,3 @@ loop i (listlen $modenames) [

demo = [stopdemo; if (mode -1) [map $arg1]]
complete demo . dmo

6 changes: 6 additions & 0 deletions config/lang_en.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
////////////////////////////////////////////////////////////////////////////////////////
// game.cfg //
////////////////////////////////////////////////////////////////////////////////////////
uistr_game_0 = "team"
uistr_game_1 = "chat"

////////////////////////////////////////////////////////////////////////////////////////
// options.cfg //
////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit c7ca7bc

Please sign in to comment.