HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard Issues - Size and Sync

02-20-2004, 03:49 AM#1
Telamon
Hey, I'm making a leaderboard to track kills in my footwars map. I need help with two things.

1. The leaderboard is too wide. It's so wide by default that it offends my sense of an aesthetic GUI. The leaderboard should not take up 1/6 the screen! There seems to be no way to change the width, however. I looked into using a multiboard, and was almost done with the conversion before I noticed that the multiboard doesn't have a sort function. If I want to sort the list so that the player with the highest kills ends up on top, do I have to do it myself? What's the best way to do this? Even insertion sort is going to be a lot of trigger calls.

2. Also, I would like to supply a "command line" option in my map to toggle the leaderboard on/off. A player could type in something like "board" to turn it on or off. Is there any way that I can accomplish this? I'm using the basic world editor (I'm not interested in the hassle of compiling my own JASS scripts - I consider it an artistic challenge to work within the constraints of the provided tool). The obvious thing to do is to create the board only for the LocalPlayer, but I've read that this causes desync.



I personally find leaderboards in maps to be irritating, so if I can't figure these things out, I'll probably make a text-based leaderboard that is printed by typing a specific command.
02-20-2004, 04:59 AM#2
Extrarius
You could use a multiboard instead - they can easily be minimized/restored by the player at any time with a simple click, and you can set the width of any column in it however wide you want. The GUI now includes functions to use them