Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.78 KB | None | 0 0
  1. Create Leaderboard
  2.     Events
  3.         Timer - Elapsed time is 2.0 Game Time seconds
  4.     Local Variables
  5.         Loop = 1 <Integer>
  6.     Conditions
  7.     Actions
  8.         Dialog - Display button 3 of size (50, 30) with text " X" at Top Right of screen with offset (15, 15)  (run Show/Hide Leaderboard when button is clicked)
  9.         Dialog - Set (Screen button 3) tooltip to "Hide Leaderboard" for (All players)
  10.         Dialog - Display button 4 of size (50, 30) with text " O" at Top Right of screen with offset (15, 15)  (run Show/Hide Leaderboard when button is clicked)
  11.         Dialog - Set (Screen button 4) tooltip to "Show Leaderboard" for (All players)
  12.         Dialog - Hide (Screen button 4) for (All players)
  13.         Leaderboard - Create a leaderboard with 11 columns and 15 rows, with the name "Planet Defense v1.0", and using (100%, 100%, 100%) color.
  14.         Variable - Set Planet Defense Leaderboard[1] = (Last created leaderboard)
  15.         Leaderboard - Disable Show Title state for Planet Defense Leaderboard[1] for (All players)
  16.         Leaderboard - Disable Show Header state for Planet Defense Leaderboard[1] for (All players)
  17.         Leaderboard - Change Planet Defense Leaderboard[1] to have 1 groups
  18.         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row 1 to "Players"
  19.         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 6 and row 1 to "Gold"
  20.         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 10 and row 1 to "Lumber"
  21.         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row 13 to "Titans: 1"
  22.         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row 14 to "Minions: 0"
  23.         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row 15 to "EXP: 125%"
  24.         Leaderboard - Move row 12 into group 1 in Planet Defense Leaderboard[1]
  25.         Leaderboard - Move row 13 into group 1 in Planet Defense Leaderboard[1]
  26.         Leaderboard - Move row 14 into group 1 in Planet Defense Leaderboard[1]
  27.         Leaderboard - Move row 15 into group 1 in Planet Defense Leaderboard[1]
  28.         General - For each integer Loop from 1 to 10 with increment 1, do (Actions)
  29.             Actions
  30.                 General - If (Conditions) then do (Actions) else do (Actions)
  31.                     If
  32.                         And
  33.                             Conditions
  34.                                 (Controller of player Loop) == User
  35.                                 (Status of player Loop) == Playing
  36.                     Then
  37.                         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row (Loop + 1) to (Text (Name of player Loop) with color (Color((Current player Loop color))))
  38.                         Leaderboard - Set Planet Defense Leaderboard[1] item icon at column 2 and row (Loop + 1) to Assets\Textures\ui_ingame_help_techtree_questionmark.dds, placing it on the Left side of the text
  39.                         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 6 and row (Loop + 1) to "0"
  40.                         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 10 and row (Loop + 1) to "0 "
  41.                     Else
  42.                         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row (Loop + 1) to (Text "   Empty   " with color (Color((Player 10) Light Grey)))
  43.                         Leaderboard - Set Planet Defense Leaderboard[1] item icon at column 2 and row (Loop + 1) to Assets\Textures\btn-command-cancel.dds, placing it on the Left side of the text
  44.                         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 6 and row (Loop + 1) to "-"
  45.                         Leaderboard - Set Planet Defense Leaderboard[1] item text at column 10 and row (Loop + 1) to "-"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement