Skip to content

Commit

Permalink
work on removing samples from hex file
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Sep 8, 2023
1 parent 4ccd18d commit 3b4e217
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ namespace microcode {
this.reg["note_off"] = icondb.note_off

// sample icons
/*
this.reg["flashing_heart"] = icondb.sampleFlashingHeart
this.reg["smiley_buttons"] = icondb.sampleSmileyButtons
this.reg["clap_lights"] = icondb.sampleClapLights
Expand All @@ -57,7 +58,8 @@ namespace microcode {
this.reg["hot_potato"] = icondb.sampleHotPotato
this.reg["clap_lights"] = icondb.sampleClapLights
this.reg["railroad_crossing"] = icondb.sampleRailCrossingLight

*/

// sensors
this.reg[TID_SENSOR_TIMER] = icondb.tile_timer
this.reg[TID_SENSOR_RADIO_RECEIVE] = icondb.radio_receive
Expand Down
10 changes: 8 additions & 2 deletions home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,19 @@ namespace microcode {
this.samplesBtn = new Button({
parent: null,
style: ButtonStyles.Transparent,
icon: "rock_paper_scissors",
icon: "new_program",
ariaId: "C1",
x: 0,
y: 30,
onClick: () => {
this.app.popScene()
this.app.pushScene(new SamplesGallery(this.app))
reportEvent("samples.open", {
name: "new program",
})
// settings.writeString(SAVESLOT_AUTO, sample.source)
this.app.popScene()
this.app.pushScene(new Editor(this.app))
// this.app.pushScene(new SamplesGallery(this.app))
},
})

Expand Down

0 comments on commit 3b4e217

Please sign in to comment.