diff --git a/assets.ts b/assets.ts index c8113eca..b1d38783 100644 --- a/assets.ts +++ b/assets.ts @@ -4,9 +4,9 @@ namespace microcode { //% shim=TD_NOOP function extraSamples(reg: name2Image) { - reg["smiley_buttons"] = icondb.sampleSmileyButtons reg["clap_lights"] = icondb.sampleClapLights reg["firefly"] = icondb.sampleFirefly + reg["flashing_heart"] = icondb.sampleFlashingHeart // this.reg["dice"] = icondb.sampleDice // nice icon, don't delete, but not currently used reg["rock_paper_scissors"] = icondb.sampleRockPaperScissors reg["teleport_duck"] = icondb.sampleTeleportDuck @@ -64,7 +64,7 @@ namespace microcode { this.reg["note_off"] = icondb.note_off // sample icons - this.reg["flashing_heart"] = icondb.sampleFlashingHeart + this.reg["smiley_buttons"] = icondb.sampleSmileyButtons // sensors this.reg[TID_SENSOR_TIMER] = icondb.tile_timer diff --git a/home.ts b/home.ts index 826b6544..967655b2 100644 --- a/home.ts +++ b/home.ts @@ -27,7 +27,7 @@ namespace microcode { this.samplesBtn = new Button({ parent: null, style: ButtonStyles.Transparent, - icon: "rock_paper_scissors", + icon: "smiley_buttons", ariaId: "C1", x: 0, y: 30, diff --git a/samples.ts b/samples.ts index 1621f62a..73b45650 100644 --- a/samples.ts +++ b/samples.ts @@ -23,18 +23,16 @@ namespace microcode { //% shim=TD_NOOP function rawWebAppSamples(s: rawSampleList) { s.concat([ + { + label: "first program", + b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkYzIl0sIk0iOlsiTTE1KDAwMDAwMDEwMTAwMDAwMDEwMDAxMDExMTApIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjMiXSwiTSI6WyJNMTlnaWdnbGUiXX0se31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7fV19LCJ2ZXJzaW9uIjoidjIuNC43In0", + }, { label: "flashing heart", ariaId: "N2", b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzQiXSwiQSI6WyJBNSJdLCJNIjpbIk0xNSgwMTAxMDEwMTAxMTAwMDEwMTAxMDAwMTAwKSIsIk0xNSgwMDAwMDAxMDEwMDExMTAwMDEwMDAwMDAwKSJdfSx7IlMiOlsiUzQiXSwiQSI6WyJBMiJdLCJNIjpbIk0xOWdpZ2dsZSJdfSx7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX1dfSwidmVyc2lvbiI6InYyLjQuNyJ9", icon: "flashing_heart", }, - { - label: "smiley buttons", - ariaId: "N3", - b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkYzIl0sIk0iOlsiTTE1KDExMDExMTEwMTEwMDAwMDEwMDAxMDExMTApIiwiTTE1KDExMDExMDAwMDAxMDAwMTAxMTEwMDAwMDApIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjMiXSwiTSI6WyJNMTloYXBweSJdfSx7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkY0Il0sIk0iOlsiTTE1KDExMDExMTEwMTEwMDAwMDAxMTEwMTAwMDEpIiwiTTE1KDExMDExMTEwMTEwMDAwMDAwMDAwMTExMTEpIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjQiXSwiTSI6WyJNMTlzYWQiXX0se31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7fV19LCJ2ZXJzaW9uIjoidjIuNC43In0=", - icon: "smiley_buttons", - }, { label: "counter", ariaId: "N14", @@ -183,10 +181,11 @@ namespace microcode { icon: "new_program", }, { - label: "first program", - b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkYzIl0sIk0iOlsiTTE1KDAwMDAwMDEwMTAwMDAwMDEwMDAxMDExMTApIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjMiXSwiTSI6WyJNMTlnaWdnbGUiXX0se31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7fV19LCJ2ZXJzaW9uIjoidjIuNC43In0", - }, - ] + label: "smiley buttons", + ariaId: "N3", + b64: "eyJwcm9nZGVmIjp7IlAiOlt7IlIiOlt7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkYzIl0sIk0iOlsiTTE1KDExMDExMTEwMTEwMDAwMDEwMDAxMDExMTApIiwiTTE1KDExMDExMDAwMDAxMDAwMTAxMTEwMDAwMDApIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjMiXSwiTSI6WyJNMTloYXBweSJdfSx7IlMiOlsiUzIiXSwiQSI6WyJBNSJdLCJGIjpbIkY0Il0sIk0iOlsiTTE1KDExMDExMTEwMTEwMDAwMDAxMTEwMTAwMDEpIiwiTTE1KDExMDExMTEwMTEwMDAwMDAwMDAwMTExMTEpIl19LHsiUyI6WyJTMiJdLCJBIjpbIkEyIl0sIkYiOlsiRjQiXSwiTSI6WyJNMTlzYWQiXX0se31dfSx7IlIiOlt7fV19LHsiUiI6W3t9XX0seyJSIjpbe31dfSx7fV19LCJ2ZXJzaW9uIjoidjIuNC43In0=", + icon: "smiley_buttons", + }] return s }