Advertisement
Guest User

scoreboard.cfg

a guest
Mar 31st, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.31 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Scoreboard //
  3. ///////////////////////////////////////////////////////////////////////////////
  4. newui "scoreboard" [
  5. if $mainmenu [hideui "scoreboard"]
  6. uiallowinput 0
  7. refreshscoreboard
  8. uicolor (? $sbtransparent $c_menu_a $c_menu) 0 0 [
  9. uivlist 0 [
  10. UI_sbheader
  11. uifill 0 0.005
  12. if (> $getmode 2) UI_playertableteam UI_playertablesolo
  13. UI_spectatorlist
  14. ]
  15. ]
  16. ] [if $mainmenu [hideui "scoreboard"]]
  17.  
  18. ///////////////////////////////////////////////////////////////////////////////
  19. UI_sbwsolo = 0.68
  20. UI_sbwteam = 1.18
  21. UI_sbheader = [
  22. uifill 0 0.005
  23. uifill (? (> $getmode 2) $UI_sbwteam $UI_sbwsolo) 0.05 [
  24. uifill (-f (? (> $getmode 2) $UI_sbwteam $UI_sbwsolo) (? (= $showip 1) 0.18 0)) 0 [
  25. uialign -1
  26. uiclip (-f (? (> $getmode 2) $UI_sbwteam $UI_sbwsolo) (? (= $showip 1) 0.18 0)) 0 [
  27. uialign -1
  28. uispace 0.01 0 [
  29. uivlist 0 [
  30. if $scoreboardservinfo [
  31. uitext $scoreboardservinfo 0.65
  32. ] [
  33. uitext "^f4Tesseract" 0.65
  34. ]
  35. uihlist 0.015 [
  36. uifill
  37. uihlist 0.003 [
  38. uitext "^fs[" 0.52
  39. uitext (concatword (at ["^f0" "^f0" "^f2" "^f3"] $getmastermode) (getmastermodename $getmastermode)) 0.52
  40. uitext "^fS]" 0.52
  41. ]
  42. UItriangle 0x606060 0.01 0.01 270
  43. uitext (getmodeprettyname $getmode) 0.52
  44. UItriangle 0x606060 0.01 0.01 270
  45. uitext $scoreboardmap 0.52
  46. if (m_timed $getmode) [
  47. UItriangle 0x606060 0.01 0.01 270
  48. uitext (concatword (? (|| $intermission $paused) "^f3" "^f8") $scoreboardtime) 0.52
  49. ]
  50. ]
  51. uialign* -1
  52. ]
  53. ]
  54. ]
  55. ]
  56. if $scoreboardmultiplayer [
  57. if $showip [
  58. uifill 0.18 0 [
  59. uialign 1
  60. UIbar 0 1; uialign- -1
  61. uiclip 0.18 0 [
  62. uialign 1
  63. uispace 0.01 0 [
  64. uivlist 0.004 [
  65. uicolortext $connectedip 0xA0A0A0 0.52
  66. uicolortext $connectedport 0xA0A0A0 0.52
  67. uialign* 1
  68. ]
  69. ]
  70. uialign- 1
  71. ]
  72. ]
  73. ]
  74. ]
  75. ]
  76. ]
  77. //-------------------------------------------------------------------------------------------------
  78. UI_cw_s = 0.054
  79. UI_cw_k = 0.054
  80. UI_cw_d = 0.066
  81. UI_cw_pj = 0.038
  82. UI_cw_p = 0.054
  83. UI_cw_cn = 0.038
  84. UI_cw_n = [-f (? (> $getmode 2) (*f $UI_sbwteam 0.5) $UI_sbwsolo) (? (> $getmode 2) (? $showscore $UI_cw_s)) (? $showkills $UI_cw_k) (? $showdeaths $UI_cw_d) (? $scoreboardmultiplayer (? $showpj $UI_cw_pj)) (? $scoreboardmultiplayer (? $showping $UI_cw_p)) (? $scoreboardmultiplayer (? $showclientnum $UI_cw_cn)) 0.03]
  85. // ^ blarg
  86.  
  87. UI_playertablesolo = [
  88. uifill 0 0 [
  89. uitable 0 0 [
  90. uitableheader [
  91. uifill 0.015
  92. uifill (UI_cw_n) 0.022
  93. if $showkills [uifill $UI_cw_k 0.022 [uicolortext "K" 0xBBCC8B 0.45 ; uialign- 1 1]]
  94. if $showdeaths [uifill $UI_cw_d 0.022 [uicolortext "D" 0xE56767 0.45 ; uialign- 1 1]]
  95. if $scoreboardmultiplayer [
  96. if $showping [uifill $UI_cw_p 0.022 [uicolortext "P" 0x77A1D9 0.45 ; uialign- 1 1]]
  97. if $showpj [uifill $UI_cw_pj 0.022 [uicolortext "PJ" 0x77A1D9 0.45 ; uialign- 1 1]]
  98. if $showclientnum [uifill $UI_cw_cn 0.022 [uicolortext "#" 0xA0A0A0 0.45 ; uialign- 1 1]]
  99. ]
  100. uifill 0.015
  101. ] [uicolor 0x88161616 0 0 [uiclamp 1 1 1 1]]
  102. UI_sbtc = 0
  103. loopscoreboard cn 0 [
  104. UI_sbtc = (! $UI_sbtc)
  105. uitablerow [
  106. uifill 0.015
  107. uifill (UI_cw_n) 0.026 [uicolortext (getclientcolorname $cn) (scoreboardstatus $cn) 0.57 ; uialign- -1]
  108. if $showkills [uifill $UI_cw_k 0.026 [uicolortext (getclientfrags $cn) 0xBBCC8B 0.52 ; uialign- 1]]
  109. if $showdeaths [uifill $UI_cw_d 0.026 [uicolortext (getclientdeaths $cn) 0xE56767 0.52 ; uialign- 1]]
  110. if $scoreboardmultiplayer [
  111. if $showping [uifill $UI_cw_p 0.026 [uicolortext (? (isai $cn) "^f4-" (scoreboardping $cn)) 0x77A1D9 0.52 ; uialign- 1]]
  112. if $showpj [uifill $UI_cw_pj 0.026 [uicolortext (? (isai $cn) "^f4-" (scoreboardpj $cn)) 0x77A1D9 0.52 ; uialign- 1]]
  113. if $showclientnum [uifill $UI_cw_cn 0.026 [uicolortext (? (isai $cn) "^f4-" $cn) 0xA0A0A0 0.52 ; uialign- 1]]
  114. ]
  115. uifill 0.015
  116. ] [
  117. uicolor (? $UI_sbtc 0x99323232 0x99262626) 0 0 [uiclamp 1 1 1 1]
  118. pushif highlight (scoreboardhighlight $cn) [uioutline 0xA0A0A0 (-f $UI_sbwsolo 0.002) 0.024]
  119. ]
  120. ]
  121. ]
  122. ]
  123. ]
  124. UI_playertableteam = [
  125. uifill 0 0 [
  126. uihlist 0 [
  127. uitable 0 0 [
  128. uialign 0 -1
  129. uitableheader [
  130. uifill 0.015
  131. uifill (UI_cw_n) 0.042 [uicolortext (getteamscore 1) 0x4060D0 1 ; uialign- -1] // scoreboard - non-intuitive bullshit
  132. if $showscore [uifill $UI_cw_s 0.042 [uicolortext "Flags" 0x62B370 0.45 ; uialign- -1 1]]
  133. if $showkills [uifill $UI_cw_k 0.042 [uicolortext "Kills" 0xBBCC8B 0.45 ; uialign- -1 1]]
  134. if $showdeaths [uifill $UI_cw_d 0.042 [uicolortext "Deaths" 0xE56767 0.45 ; uialign- -1 1]]
  135. if $scoreboardmultiplayer [
  136. if $showpj [uifill $UI_cw_pj 0.042 [uicolortext "PJ" 0x77A1D9 0.45 ; uialign- -1 1]]
  137. if $showping [uifill $UI_cw_p 0.042 [uicolortext "Ping" 0x77A1D9 0.45 ; uialign- -1 1]]
  138. if $showclientnum [uifill $UI_cw_cn 0.042 [uicolortext "CN" 0xA0A0A0 0.45 ; uialign- -1 1]]
  139. ]
  140. uifill 0.015
  141. ] [uicolor 0x99202860 0 0 [uiclamp 1 1 1 1]]
  142. UI_sbtc = 0
  143. loopscoreboard cn 1 [
  144. UI_sbtc = (! $UI_sbtc)
  145. uitablerow [
  146. uifill 0.015
  147. uifill (UI_cw_n) 0.026 [uicolortext (getclientcolorname $cn) (scoreboardstatus $cn) 0.57 ; uialign- -1] // name - non-intuitive bullshit
  148. if $showscore [uifill $UI_cw_s 0.026 [uicolortext (getclientflags $cn) 0x62B370 0.52 ; uialign- -1]]
  149. if $showkills [uifill $UI_cw_k 0.026 [uicolortext (getclientfrags $cn) 0xBBCC8B 0.52 ; uialign- -1]]
  150. if $showdeaths [uifill $UI_cw_d 0.026 [uicolortext (getclientdeaths $cn) 0xE56767 0.52 ; uialign- -1]]
  151. if $scoreboardmultiplayer [
  152. if $showpj [uifill $UI_cw_pj 0.026 [uicolortext (? (isai $cn) "^f4-" (scoreboardpj $cn)) 0x77A1D9 0.52 ; uialign- -1]]
  153. if $showping [uifill $UI_cw_p 0.026 [uicolortext (? (isai $cn) "^f4-" (scoreboardping $cn)) 0x77A1D9 0.52 ; uialign- -1]]
  154. if $showclientnum [uifill $UI_cw_cn 0.026 [uicolortext (? (isai $cn) "^f4-" $cn) 0xA0A0A0 0.52 ; uialign- -1]]
  155. ]
  156. uifill 0.015
  157. ] [
  158. uicolor (? $UI_sbtc 0x99333b40 0x99262b33) 0 0 [uiclamp 1 1 1 1]
  159. pushif highlight (scoreboardhighlight $cn) [uioutline 0xA0A0A0 (-f (*f $UI_sbwteam 0.5) 0.002) 0.024]
  160. ]
  161. ]
  162. ]
  163. uitable 0 0 [
  164. uialign 0 -1
  165. uitableheader [
  166. uifill 0.015
  167. uifill (UI_cw_n) 0.042 [uicolortext (getteamscore 2) 0xD04040 1 ; uialign- -1]
  168. if $showscore [uifill $UI_cw_s 0.042 [uicolortext "Flags" 0x62B370 0.45 ; uialign- -1 1]]
  169. if $showkills [uifill $UI_cw_k 0.042 [uicolortext "Kills" 0xBBCC8B 0.45 ; uialign- -1 1]]
  170. if $showdeaths [uifill $UI_cw_d 0.042 [uicolortext "Deaths" 0xE56767 0.45 ; uialign- -1 1]]
  171. if $scoreboardmultiplayer [
  172. if $showpj [uifill $UI_cw_pj 0.042 [uicolortext "PJ" 0x77A1D9 0.45 ; uialign- -1 1]]
  173. if $showping [uifill $UI_cw_p 0.042 [uicolortext "Ping" 0x77A1D9 0.45 ; uialign- -1 1]]
  174. if $showclientnum [uifill $UI_cw_cn 0.042 [uicolortext "CN" 0xA0A0A0 0.45 ; uialign- -1 1]]
  175. ]
  176. uifill 0.015
  177. ] [uicolor 0x99602020 0 0 [uiclamp 1 1 1 1]]
  178. UI_sbtc = 0
  179. loopscoreboard cn 2 [
  180. UI_sbtc = (! $UI_sbtc)
  181. uitablerow [
  182. uifill 0.015
  183. uifill (UI_cw_n) 0.026 [uicolortext (getclientcolorname $cn) (scoreboardstatus $cn) 0.57 ; uialign- -1]
  184. if $showscore [uifill $UI_cw_s 0.026 [uicolortext (getclientflags $cn) 0x62B370 0.52 ; uialign- -1]]
  185. if $showkills [uifill $UI_cw_k 0.026 [uicolortext (getclientfrags $cn) 0xBBCC8B 0.52 ; uialign- -1]]
  186. if $showdeaths [uifill $UI_cw_d 0.026 [uicolortext (getclientdeaths $cn) 0xE56767 0.52 ; uialign- -1]]
  187. if $scoreboardmultiplayer [
  188. if $showpj [uifill $UI_cw_pj 0.026 [uicolortext (? (isai $cn) "^f4-" (scoreboardpj $cn)) 0x77A1D9 0.52 ; uialign- -1]]
  189. if $showping [uifill $UI_cw_p 0.026 [uicolortext (? (isai $cn) "^f4-" (scoreboardping $cn)) 0x77A1D9 0.52 ; uialign- -1]]
  190. if $showclientnum [uifill $UI_cw_cn 0.026 [uicolortext (? (isai $cn) "^f4-" $cn) 0xA0A0A0 0.52 ; uialign- -1]]
  191. ]
  192. uifill 0.015
  193. ] [
  194. uicolor (? $UI_sbtc 0x99403333 0x99332626) 0 0 [uiclamp 1 1 1 1]
  195. pushif highlight (scoreboardhighlight $cn) [uioutline 0xA0A0A0 (-f (*f $UI_sbwteam 0.5) 0.002) 0.024]
  196. ]
  197. ]
  198. ]
  199. ]
  200. ]
  201. ]
  202. //-------------------------------------------------------------------------------------------------
  203. UI_spectatorlist = [
  204. uicolor 0x88161616 0 0.022 [
  205. uiclamp 1 1 1 1
  206. if $showspectators [
  207. uigrid (? (> $getmode 2) 3 2) 0 0 [
  208. loopscoreboard cn -1 [
  209. uispace 0.01 0.01 [
  210. pushif sbhigh (scoreboardhighlight $cn) [
  211. uioutline 0xA0A0A0 ; uiclamp- 1 1 1 1
  212. ]
  213. uihlist 0.01 [
  214. uicolortext (getclientcolorname $cn) (scoreboardstatus $cn) 0.57
  215. if $scoreboardmultiplayer [if $showclientnum [uitext $cn 0.57]]
  216. ]
  217. ]
  218. ]
  219. ]
  220. ]
  221. ]
  222. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement