substance
New Member
- Reaction score
- 34
So I have a 'callvote system' that allows players to kick other players in a democratic fasion. Once a player initiates a vote I want to display that information to all the players. What I want to display is:
name of player being kicked
time left untill vote ends
how many votes for 'yes'
how many votes for 'no'
Getting that information isnt the problem, displaying it is. I figure I have 3 options in displaying the information:
Timer Dialog - I had one setup with the info in the title but there were a few problems. The title was being cut off due to it being too long and the timer itself was in the ugly '00:00:00' format. If there is a way to extend the timerdialog so i can show more information then i'd gladly go back to this method.
Multiboard - Since the timerdialog didnt work I tried a multiboard since I'm more experience with them and there is a lot mroe control in displaying the information exactly how I want it. However when I created the mutliboard it destroyed my other multiboard so I'm guessing you can only have one at a time?
Leaderboard - Well the other 2 methods failed so I thought I'd try a leaderboard. I've never used these before (not even in GUI) but It might work for what I need, however, I dont really know how to get one working. There's pretty much no JASS examples available so I just wing'd it and ended up with thisDoesnt work though.
So I guess what my question is, am I stuck using a leaderboard? and if so, how can I get this thing to display .
name of player being kicked
time left untill vote ends
how many votes for 'yes'
how many votes for 'no'
Getting that information isnt the problem, displaying it is. I figure I have 3 options in displaying the information:
Timer Dialog - I had one setup with the info in the title but there were a few problems. The title was being cut off due to it being too long and the timer itself was in the ugly '00:00:00' format. If there is a way to extend the timerdialog so i can show more information then i'd gladly go back to this method.
Multiboard - Since the timerdialog didnt work I tried a multiboard since I'm more experience with them and there is a lot mroe control in displaying the information exactly how I want it. However when I created the mutliboard it destroyed my other multiboard so I'm guessing you can only have one at a time?
Leaderboard - Well the other 2 methods failed so I thought I'd try a leaderboard. I've never used these before (not even in GUI) but It might work for what I need, however, I dont really know how to get one working. There's pretty much no JASS examples available so I just wing'd it and ended up with this
JASS:
set VotingLeaderBoard = CreateLeaderboard()
call LeaderboardSetStyle(VotingLeaderBoard,true,true,true,false)
call LeaderboardSetLabel(VotingLeaderBoard, "test")
loop
exitwhen i2 == 12
call PlayerSetLeaderboard(Player(i),VotingLeaderBoard)
set i2 = i2 + 1
endloop
call LeaderboardAddItem(VotingLeaderBoard,"lol",1,Player(0))
call LeaderboardDisplay(VotingLeaderBoard, true)
So I guess what my question is, am I stuck using a leaderboard? and if so, how can I get this thing to display .