Skip to content

Commit 3b008e8

Browse files
committed
Send vote status
1 parent f10d62e commit 3b008e8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

library/ddnetpp.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,14 @@ function ddnetpp.send_vote_clear_options(client_id) end
517517
---@param description string
518518
function ddnetpp.send_vote_option_add(client_id, description) end
519519

520+
---Sets the properties for the vote bar rendered by the client.
521+
---Needs an active running vote to have an effect.
522+
---@param client_id ClientId # Can be -1 for all clients
523+
---@param total integer # Total amount of players that can vote
524+
---@param yes integer # Amount of yes votes
525+
---@param no integer # Amount of no votes
526+
function ddnetpp.send_vote_status(client_id, total, yes, no) end
527+
520528
---Returns the player instance or nil if no player with that id is connected.
521529
---The client id is the same client id that is shown in the ddnet and teeworlds clients.
522530
---

0 commit comments

Comments
 (0)