pxt-arcade 1.13.27 → 1.13.29
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/built/sim.js +25 -0
- package/built/target.js +1 -1
- package/built/target.json +1 -1
- package/built/targetlight.json +1 -1
- package/package.json +3 -3
- package/targetconfig.json +2 -1
package/built/sim.js
CHANGED
|
@@ -779,6 +779,10 @@ var pxsim;
|
|
|
779
779
|
microcodeSkin();
|
|
780
780
|
break;
|
|
781
781
|
}
|
|
782
|
+
case "junior": {
|
|
783
|
+
juniorSkin();
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
782
786
|
default:
|
|
783
787
|
break;
|
|
784
788
|
}
|
|
@@ -821,6 +825,27 @@ var pxsim;
|
|
|
821
825
|
aLabel.setAttribute("y", "12");
|
|
822
826
|
}
|
|
823
827
|
}
|
|
828
|
+
function juniorSkin() {
|
|
829
|
+
setSimThemeColor("background-color", "#007eff");
|
|
830
|
+
setSimThemeColor("button-fill", "#D54322");
|
|
831
|
+
setSimThemeColor("button-stroke", "#B1E3DA");
|
|
832
|
+
setSimThemeColor("text-color", "#FFFFFF");
|
|
833
|
+
const wrapper = document.getElementById("wrap");
|
|
834
|
+
if (wrapper) {
|
|
835
|
+
wrapper.classList.add("junior", "portrait-only");
|
|
836
|
+
const gameButtonSvg = document.querySelector(".game-button-svg");
|
|
837
|
+
gameButtonSvg.removeAttribute("width");
|
|
838
|
+
gameButtonSvg.removeAttribute("height");
|
|
839
|
+
gameButtonSvg.setAttribute("viewBox", "0 0 100 28");
|
|
840
|
+
const aButton = document.querySelector(".button-a");
|
|
841
|
+
const aLabel = document.querySelector(".label-a");
|
|
842
|
+
aButton.setAttribute("cx", "50");
|
|
843
|
+
aButton.setAttribute("cy", "13");
|
|
844
|
+
aButton.setAttribute("r", "11.5");
|
|
845
|
+
aLabel.setAttribute("x", "50");
|
|
846
|
+
aLabel.setAttribute("y", "13");
|
|
847
|
+
}
|
|
848
|
+
}
|
|
824
849
|
function brownSkin() {
|
|
825
850
|
setSimThemeColor("background-color", "#8B4513");
|
|
826
851
|
setSimThemeColor("button-stroke", "#68320C");
|