Improved Autocomplete #1172

Merged
merged 2 commits into from May 11, 2016

Projects

None yet

4 participants

@markusmarkusz
Contributor

The command has been added autocomplete.
When you type the command, no longer comes as a complete "yes" but "ttt_radio yes".
(Sorry for that english. I've translated this description with google translator. I hope you understand what i want. :P)

@markusmarkusz markusmarkusz Improved Autocomplete
The command has been added autocomplete.
When you type the command, no longer comes as a complete "yes" but "ttt_radio yes".
(Sorry for that english. I've translated this description with google translator.)
9ca916a
@robotboy655 robotboy655 added the TTT label May 10, 2016
@fruitwasp fruitwasp commented on an outdated diff May 10, 2016
garrysmod/gamemodes/terrortown/gamemode/cl_voice.lua
@@ -360,7 +360,8 @@ end
local function RadioComplete(cmd, arg)
local c = {}
for k, cmd in pairs(RADIO.Commands) do
- table.insert(c, cmd.cmd)
+ rcmd = "ttt_radio " .. cmd.cmd
@fruitwasp
fruitwasp May 10, 2016 edited

you might want to localise that variable: local rcmd

@markusmarkusz
Contributor

I'll add it later.
I forgot it. :c

@markusmarkusz
Contributor

Fixed.

@svdm svdm merged commit 28e5249 into garrynewman:master May 11, 2016
@markusmarkusz markusmarkusz deleted the unknown repository branch May 17, 2016
@markusmarkusz markusmarkusz restored the unknown repository branch May 17, 2016
@markusmarkusz markusmarkusz deleted the unknown repository branch Jul 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment