@open-slot-ui/core 0.13.1 → 0.13.2
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2808,8 +2808,9 @@ function composeMenu(menu, opts = {}) {
|
|
|
2808
2808
|
out.push({ kind: "image", id: "menu-banner", src: menu.banner.src, width: menu.banner.width, height: menu.banner.height });
|
|
2809
2809
|
}
|
|
2810
2810
|
out.push({ kind: "heading", id: "menu-sec-settings", text: titles.settings });
|
|
2811
|
-
out.push(
|
|
2812
|
-
out.push({ kind: "slider", id: "
|
|
2811
|
+
if (menu?.settings?.length) out.push(...menu.settings);
|
|
2812
|
+
out.push({ kind: "slider", id: "music", label: "Music", hint: "Background music volume." });
|
|
2813
|
+
out.push({ kind: "slider", id: "sfx", label: "Effects", hint: "Sound effect volume." });
|
|
2813
2814
|
const locales = opts.locales ?? [];
|
|
2814
2815
|
if (locales.length >= 2) {
|
|
2815
2816
|
out.push({
|
|
@@ -2819,7 +2820,6 @@ function composeMenu(menu, opts = {}) {
|
|
|
2819
2820
|
options: locales.map((code) => ({ value: code, label: LOCALE_LABELS[code] ?? code.toUpperCase() }))
|
|
2820
2821
|
});
|
|
2821
2822
|
}
|
|
2822
|
-
if (menu?.settings?.length) out.push(...menu.settings);
|
|
2823
2823
|
if (menu?.paytable?.length) {
|
|
2824
2824
|
out.push({ kind: "heading", id: "menu-sec-paytable", text: titles.paytable });
|
|
2825
2825
|
out.push(...menu.paytable);
|