Skip to content

Commit

Permalink
Make match skip vote more noticeable (#1239)
Browse files Browse the repository at this point in the history
* Move button positions

* Make vote_skip more noticeable

* Update to new sound
  • Loading branch information
a-blob authored Nov 14, 2023
1 parent f3c4eb1 commit 7330c1e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mods/ctf/ctf_modebase/skip_vote.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ local flags_hold = 0
ctf_modebase.skip_vote = {}

local function add_vote_hud(player)
hud:add(player, "skip_vote:background", {
hud_elem_type = "image",
position = {x = 1, y = 0.5},
offset = {x = -100, y = 0},
text = "background.png",
scale = {x = 1, y = 1}
})
hud:add(player, "skip_vote:vote", {
hud_elem_type = "text",
position = {x = 1, y = 0.5},
Expand All @@ -34,6 +41,10 @@ function ctf_modebase.skip_vote.start_vote()

for _, player in ipairs(minetest.get_connected_players()) do
add_vote_hud(player)
minetest.sound_play("ctf_modebase_notification", {
gain = 1.0,
pitch = 1.0,
}, true)
voters_count = voters_count + 1
end

Expand Down
Binary file not shown.
Binary file added mods/ctf/ctf_modebase/textures/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7330c1e

Please sign in to comment.