Fix icons and radio
This commit is contained in:
		@@ -133,6 +133,9 @@
 | 
			
		||||
  "Math.randomRange|param|max": "the upper inclusive bound, eg: 10",
 | 
			
		||||
  "Math.randomRange|param|min": "the lower inclusive bound, eg: 0",
 | 
			
		||||
  "Math.round": "Returns a supplied numeric expression rounded to the nearest number.",
 | 
			
		||||
  "Math.roundWithPrecision": "Rounds ``x`` to a number with the given number of ``digits``",
 | 
			
		||||
  "Math.roundWithPrecision|param|digits": "the number of resulting digits",
 | 
			
		||||
  "Math.roundWithPrecision|param|x": "the number to round",
 | 
			
		||||
  "Math.round|param|x": "The value to be rounded to the nearest number.",
 | 
			
		||||
  "Math.sign": "Returns the sign of the x, indicating whether x is positive, negative or zero.",
 | 
			
		||||
  "Math.sign|param|x": "The numeric expression to test",
 | 
			
		||||
 
 | 
			
		||||
@@ -181,7 +181,7 @@ namespace basic {
 | 
			
		||||
    //% help=basic/show-icon
 | 
			
		||||
    //% icon.fieldEditor="imagedropdown"
 | 
			
		||||
    //% icon.fieldOptions.columns="5"
 | 
			
		||||
    //% icon.fieldOptions.width="400"
 | 
			
		||||
    //% icon.fieldOptions.width="380"
 | 
			
		||||
    export function showIcon(icon: IconNames, interval = 600) {
 | 
			
		||||
        let res = images.iconImage(icon)
 | 
			
		||||
        res.showImage(0, interval)
 | 
			
		||||
 
 | 
			
		||||
@@ -67,7 +67,7 @@ namespace pxsim {
 | 
			
		||||
 | 
			
		||||
        broadcast(msg: number, groupId: number) {
 | 
			
		||||
            Runtime.postMessage(<SimulatorEventBusMessage>{
 | 
			
		||||
                type: "eventbus",
 | 
			
		||||
                type: "event",
 | 
			
		||||
                id: DAL.MES_BROADCAST_GENERAL_ID,
 | 
			
		||||
                eventid: msg,
 | 
			
		||||
                power: this.power,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user