@open-slot-ui/pixi 0.3.3 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1200,6 +1200,11 @@ var ValueDisplayView = class extends ControlView {
|
|
|
1200
1200
|
// re-translate the caption on language switch (guard a post-dispose emit)
|
|
1201
1201
|
this.ui.locale.subscribe(() => {
|
|
1202
1202
|
if (!this.destroyed) this.rebuild();
|
|
1203
|
+
}),
|
|
1204
|
+
// accent emphasis (e.g. a bet display showing the boosted effective stake):
|
|
1205
|
+
// rebuild the odometer with the accent fill at the same width
|
|
1206
|
+
this.vd.emphasized.subscribe(() => {
|
|
1207
|
+
if (!this.destroyed && this.counter) this.buildCounter(this.counter.digits, this.vd.minorUnits);
|
|
1203
1208
|
})
|
|
1204
1209
|
);
|
|
1205
1210
|
}
|
|
@@ -1248,7 +1253,9 @@ var ValueDisplayView = class extends ControlView {
|
|
|
1248
1253
|
style: {
|
|
1249
1254
|
fontFamily: theme.type.family,
|
|
1250
1255
|
fontSize: FONT_SIZE,
|
|
1251
|
-
|
|
1256
|
+
// Emphasis (ValueDisplay.setEmphasis) renders the value in the theme
|
|
1257
|
+
// accent — "this number is modified" (boosted effective stake, etc.).
|
|
1258
|
+
fill: this.vd.emphasized.get() ? theme.color.accent : 16777215,
|
|
1252
1259
|
fontWeight: "900",
|
|
1253
1260
|
stroke: { color: 0, width: 8, join: "round" },
|
|
1254
1261
|
dropShadow: { color: 0, alpha: 0.25, blur: 2, distance: 4, angle: Math.PI / 2 }
|