You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -107,9 +133,43 @@ public void resetCooldownsExample(Player viewer) {
107
133
108
134
`.icon(SimpleResourceLocationIcon)` is how you display a custom texture icon. Read the [icons utilities page](/apollo/developers/utilities/icons) to learn more about icons.
`.style(CooldownStyle)` is how you customize the visual appearance of the cooldown circle and text. See the `CooldownStyle` section below for more.
140
+
```java
141
+
.style(CooldownStyle.builder()
142
+
.circleStartColor(ApolloColors.RED)
143
+
.circleEndColor(ApolloColors.GREEN)
144
+
.circleEdgeColor(ApolloColors.DARK_GRAY)
145
+
.textColor(ApolloColors.LIGHT_PURPLE)
146
+
.build())
147
+
```
148
+
149
+
### `CooldownStyle` Options
150
+
151
+
`.circleStartColor(java.awt.Color)` is the color displayed at the start of the cooldown circle animation. See the [colors page](/apollo/developers/utilities/colors) for more.
152
+
```java
153
+
.circleStartColor(ApolloColors.RED)
154
+
```
155
+
156
+
`.circleEndColor(java.awt.Color)` is the color displayed at the end of the cooldown circle animation. See the [colors page](/apollo/developers/utilities/colors) for more.
157
+
```java
158
+
.circleEndColor(ApolloColors.GREEN)
159
+
```
160
+
161
+
`.circleEdgeColor(java.awt.Color)` is the color of the circle's edge/border. See the [colors page](/apollo/developers/utilities/colors) for more.
162
+
```java
163
+
.circleEdgeColor(ApolloColors.DARK_GRAY)
164
+
```
165
+
166
+
`.textColor(java.awt.Color)` is the color of the cooldown timer text rendered in the center of the circle. See the [colors page](/apollo/developers/utilities/colors) for more.
167
+
```java
168
+
.textColor(ApolloColors.LIGHT_PURPLE)
169
+
```
170
+
171
+
All `CooldownStyle` fields are optional; any field left unset will fall back to the client's default value.
172
+
113
173
</Tab>
114
174
115
175
<Tab>
@@ -128,14 +188,34 @@ public void displayCooldownItemExample(Player viewer) {
0 commit comments