Leaderboard v0.1 (Alpha) (Initial Version)

Details

  • Filename
    rrowland_-_Leaderboard_v0.1.SC2Lib
  • Uploaded by
  • Uploaded
    May 17, 2010
  • Size
    41.91 KB
  • Downloads
    592
  • MD5
    07d3c6a7a36161259d3ce2953518e04e

Changelog

This is the initial version.

Current Functions:

Leaderboard Create (); // Initializes the leader board by creating the dialogs and setting player variables. This should be called on map initialization.
Leaderboard Record Kill (); // Takes the Killer and Killed (players) as parameters. Increases the kill count of the killer and increases death count of the killed. This should be called when a unit dies.
Leaderboard Eliminate (); // Sets the eliminated flag of a player on or off. When eliminated, a player's row on the board turns red and the player drops to the bottom. This should be called when a player leaves or is eliminated.
Leaderboard Minimize (); // Minimizes the leader board by hiding the full dialog and showing the minimized dialog. This should be called when a user clicks on the minimize button.
Leaderboard Maximize (); // Maximizes the leader board by showing the full dialog and hiding the minimized dialog. This should be called when a user clicks on the maximize button.

Current GET/SET Functions:

Leaderboard Min Button (); // GET - Returns a reference to the minimize button. This should be compared to "Used Dialog Item" when "Any Player clicks Any Dialog Item". On a match, you should call Leaderboard Minimize().
Leaderboard Max Button (); // GET - Returns a reference to the maximize button. This should be compared to "Used Dialog Item" when "Any Player clicks Any Dialog Item". On a match, you should call Leaderboard Maximize().
Leaderboard Kills (); // GET - Returns the amount of kills a specified player has. General use.
Leaderboard Deaths (); // GET - Returns the amount of deaths a specified player has. General use.

Currently unmodifiable behaviors:

  • Creates a minimizable 500x400 leader board
  • Adds all active players to the leader board
  • Tracks and display names/kills/deaths of players
  • Uses a recursive sort function to sort players by: kills descending, deaths descending
  • Turns rows of eliminated players red and sorts them to the bottom of the list