diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-01 16:40:51 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-01 16:40:51 -0500 |
| commit | 975f8aef67eb49cc09bdda76f26130dfd7e0e6cd (patch) | |
| tree | c67c26d3874d11330a918e0cea3c91dec4312b57 | |
| parent | d5464ef9956be52c030210208be755fe8d5a039a (diff) | |
| download | wintersurvival2-975f8aef67eb49cc09bdda76f26130dfd7e0e6cd.tar.gz wintersurvival2-975f8aef67eb49cc09bdda76f26130dfd7e0e6cd.tar.bz2 wintersurvival2-975f8aef67eb49cc09bdda76f26130dfd7e0e6cd.zip | |
Modifications to the scoreboard
| -rw-r--r-- | gamemode/hud/draw_scoreboard.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gamemode/hud/draw_scoreboard.lua b/gamemode/hud/draw_scoreboard.lua index 6ad71cb..3cb5825 100644 --- a/gamemode/hud/draw_scoreboard.lua +++ b/gamemode/hud/draw_scoreboard.lua @@ -46,11 +46,15 @@ function GM:ScoreboardShow() if(v:IsMuted()) then
mutebutton.Text = "Mute"
mutebutton.OnClick = function()
+ self.Text = "Unmute"
+ print("Muteing " .. v:Nick())
v:SetMuted(true)
end
else
mutebutton.Text = "Unmute"
mutebutton.OnClick = function()
+ self.Text = "Mute"
+ print("Unmuteing " .. v:Nick())
v:SetMuted(false)
end
end
|
