SCORINFO: Difference between revisions

470 bytes added ,  26 June 2023
Added some more relevant information.
(The "ScoreIcon" native column type has been renamed to "PlayerIcon".)
Tag: Source edit
(Added some more relevant information.)
Tag: Source edit
 
Line 3: Line 3:
{{Devfeature|3.2|alpha}} '''SCORINFO''' is a special lump that allows customization of the built-in scoreboard in Zandronum. This offers ways to change things like which fonts or colours are used, the sizing of elements (headers, columns, rows, gaps, etc.) on the scoreboard, what columns are to be displayed and how players are ordered by them, and more. Modders aren't the only people who can benefit from this lump. Regular players can also write their own SCORINFO lump and save into their skins folder, if they wish to design their own personal scoreboard.
{{Devfeature|3.2|alpha}} '''SCORINFO''' is a special lump that allows customization of the built-in scoreboard in Zandronum. This offers ways to change things like which fonts or colours are used, the sizing of elements (headers, columns, rows, gaps, etc.) on the scoreboard, what columns are to be displayed and how players are ordered by them, and more. Modders aren't the only people who can benefit from this lump. Regular players can also write their own SCORINFO lump and save into their skins folder, if they wish to design their own personal scoreboard.


=Scoreboard block=
= Scoreboard block =
The scoreboard block is used to change things that affect the entire scoreboard including its properties, what columns should appear and/or used to rank players, and starting margin sub-blocks. The block is set up like this:
<pre>
<pre>
Scoreboard
Scoreboard
Line 137: Line 138:


== Margin blocks ==
== Margin blocks ==
There are four types of margins:
Margins are sub-blocks that go inside a scoreboard block and are used to modify special sections on the scoreboard. There are four types of margins:
* '''MainHeader''': appears above the column headers and player rows.
* '''MainHeader''': appears above the column headers and player rows.
* '''TeamHeader''': appear above all players row of a single team.
* '''TeamHeader''': appear above all players row of a single team.
Line 189: Line 190:
! [[SCORINFO/IfCVar|IfCVar]]
! [[SCORINFO/IfCVar|IfCVar]]
| Executes a block depending on a CVar's value.
| Executes a block depending on a CVar's value.
|-
! Else
| Executes the following block if the condition of the previous "if" margin command (e.g. '''IfOnlineGame''') fails.
|}
|}