Skip to content

Commit

Permalink
feat(scoreboard): add group icons
Browse files Browse the repository at this point in the history
  • Loading branch information
antond15 committed Dec 22, 2024
1 parent a5d76da commit 6a39825
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pages/scoreboard/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,15 @@ type DUMMY =
label: string; // Name of the group row shown in scoreboard
groups: string[]; // Array of groups to include in this row's total count
includeOffDuty?: boolean; // Include off-duty players in total count (overrides the global setting)
icon?: string; // Icon shown before the name, must be a valid Iconify name
}
```
## statusIndicators
Individual status indicators shown in the section.
For more information on how to use custom icons, see the guide [here](./issues#status-indicator-icon-is-not-showing).
For more information on how to use custom icons, see the guide [here](./issues#icons-are-not-showing).
To learn how to change the state of these indicators manually, see the guide [here](./guides/status-indicators/manual).
More information about automatically enabling indicators using groups can be found [here](./guides/status-indicators/group-trigger).
Expand Down
4 changes: 2 additions & 2 deletions pages/scoreboard/issues.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ You've downloaded the scoreboard source code instead of the *prebuilt* release.
This resource uses Svelte for the frontend, which requires a build step.
In case you don't know how to do this, just download the latest prebuilt version from the [releases page](https://github.com/antond15/ac_scoreboard/releases/latest).

## Status indicator icon is not showing
The icon must be a valid **Iconify** icon. You can find the list on [Icônes.js](https://icones.js.org/).
## Icons are not showing
Every icon must be a valid **Iconify** icon. You can find the list on [Icônes.js](https://icones.js.org/).
Simply find your desired icon and copy it's name as shown in the example below.
![Icon on Icones.js](/images/examples/ac_scoreboard/icones-icon.png)

Expand Down

0 comments on commit 6a39825

Please sign in to comment.