diff --git a/libs/infrared-sensor/ir.ts b/libs/infrared-sensor/ir.ts
index 35a281fd..28cd746b 100644
--- a/libs/infrared-sensor/ir.ts
+++ b/libs/infrared-sensor/ir.ts
@@ -233,7 +233,7 @@ namespace sensors {
*/
//% blockNamespace=sensors
//% blockId=irSetRemoteChannel block="set %sensor|remote channel to %channel"
- //% weight=65
+ //% weight=99
//% group="Remote Infrared Beacon"
setRemoteChannel(channel: InfraredRemoteChannel) {
this.setMode(InfraredSensorMode.RemoteControl)
diff --git a/sim/visuals/assets/RemoteSvg.ts b/sim/visuals/assets/RemoteSvg.ts
index bbd85312..5e61c12a 100644
--- a/sim/visuals/assets/RemoteSvg.ts
+++ b/sim/visuals/assets/RemoteSvg.ts
@@ -1,21 +1,100 @@
namespace pxsim.visuals {
export const REMOVE_SVG = `
-
+ `;
}
\ No newline at end of file
diff --git a/sim/visuals/assets/remote.svg b/sim/visuals/assets/remote.svg
index 6fa2e99b..7d43511f 100644
--- a/sim/visuals/assets/remote.svg
+++ b/sim/visuals/assets/remote.svg
@@ -1,16 +1,96 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sim/visuals/controls/remoteBeaconButtons.ts b/sim/visuals/controls/remoteBeaconButtons.ts
index 89cd48c9..9248160a 100644
--- a/sim/visuals/controls/remoteBeaconButtons.ts
+++ b/sim/visuals/controls/remoteBeaconButtons.ts
@@ -15,14 +15,14 @@ namespace pxsim.visuals {
getInnerView() {
this.group = svg.elt("g") as SVGGElement;
- this.group.setAttribute("transform", `scale(0.25, 0.25)`)
+ this.group.setAttribute("transform", `scale(0.9, 0.9)`)
const xml = pxsim.visuals.normalizeXml(this.id, pxsim.visuals.REMOVE_SVG);
const content = svg.parseString(xml);
this.group.appendChild(content);
const btns: Map = {
- "center": InfraredRemoteButton.CenterBeacon,
+ "centerbeacon": InfraredRemoteButton.CenterBeacon,
"topleft": InfraredRemoteButton.TopLeft,
"topright": InfraredRemoteButton.TopRight,
"bottomleft": InfraredRemoteButton.BottomLeft,
@@ -47,11 +47,11 @@ namespace pxsim.visuals {
}
getInnerWidth() {
- return 98.3;
+ return 80;
}
getInnerHeight() {
- return 110.8;
+ return 123.773;
}
}
}
\ No newline at end of file