playing is done
This commit is contained in:
parent
7a3382f133
commit
02181898f5
|
@ -0,0 +1 @@
|
|||
Playing_source = nil
|
|
@ -0,0 +1 @@
|
|||
{"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":112,"draw_teach_word":68,"on_play":96,"Mode":2,"draw_teach_screen":110,"on_record":95,"draw_learn_screen":4,"teach_mouse_release":46,"on.draw":5,"teach_keychord_press":47,"Words":12,"teach_key_release":56,"fw_app":"spell-cards","teach_text_input":49,"Font_height":8,"Recording":103,"Line_height":9,"Playing":102,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":122,"Playing_source":126,"learn_text_input":60,"on":1,"learn_key_release":61,"on.text_input":54,"on.keychord_press":53,"draw_play_button":75,"on.key_release":55,"on.mouse_press":51,"draw_record_button":72,"fw_parent":125,"play":113,"teach_mouse_press":88,"draw_recording_button":125,"on.initialize":7,"on.mouse_release":52,"learn_keychord_press":59}
|
|
@ -0,0 +1,5 @@
|
|||
draw_playing_button = function()
|
||||
if not Playing_source then return end
|
||||
App.color{r=0, g=0, b=0, a=0.5}
|
||||
love.graphics.polygon('fill', {30, 10, 45, 20, 30, 30})
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
{"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":112,"draw_teach_word":68,"on_play":96,"Mode":2,"draw_teach_screen":110,"on_record":95,"draw_learn_screen":4,"teach_mouse_release":46,"on.draw":5,"teach_keychord_press":47,"Words":12,"teach_key_release":56,"fw_app":"spell-cards","teach_text_input":49,"Font_height":8,"Recording":103,"Line_height":9,"Playing":102,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":127,"Playing_source":126,"learn_text_input":60,"on":1,"learn_key_release":61,"on.text_input":54,"on.keychord_press":53,"draw_play_button":75,"on.key_release":55,"on.mouse_press":51,"draw_record_button":72,"fw_parent":126,"play":113,"teach_mouse_press":88,"draw_recording_button":125,"on.initialize":7,"on.mouse_release":52,"learn_keychord_press":59}
|
|
@ -0,0 +1 @@
|
|||
{"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":128,"draw_teach_word":68,"on_play":96,"Mode":2,"draw_teach_screen":110,"on_record":95,"draw_learn_screen":4,"teach_mouse_release":46,"on.draw":5,"teach_keychord_press":47,"Words":12,"teach_key_release":56,"fw_app":"spell-cards","teach_text_input":49,"Font_height":8,"Recording":103,"Line_height":9,"Playing":102,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":127,"Playing_source":126,"learn_text_input":60,"on":1,"learn_key_release":61,"on.text_input":54,"on.keychord_press":53,"draw_play_button":75,"on.key_release":55,"on.mouse_press":51,"draw_record_button":72,"fw_parent":127,"play":113,"teach_mouse_press":88,"draw_recording_button":125,"on.initialize":7,"on.mouse_release":52,"learn_keychord_press":59}
|
|
@ -0,0 +1,4 @@
|
|||
record = function(word_idx)
|
||||
Recording = true
|
||||
Playing_source = nil
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
{"Cursor_word":24,"on_new_word_button":118,"new_word":64,"on_word":80,"to_word_idx":94,"record":128,"draw_teach_word":68,"on_play":96,"Mode":2,"draw_teach_screen":110,"on_record":95,"draw_learn_screen":4,"teach_mouse_release":46,"on.draw":5,"teach_keychord_press":47,"Words":12,"teach_key_release":56,"fw_app":"spell-cards","teach_text_input":49,"Font_height":8,"Recording":103,"Line_height":9,"Playing":102,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":127,"Playing_source":126,"learn_text_input":60,"on":1,"learn_key_release":61,"on.text_input":54,"on.keychord_press":53,"draw_play_button":75,"on.key_release":55,"on.mouse_press":51,"draw_record_button":72,"fw_parent":128,"play":129,"teach_mouse_press":88,"draw_recording_button":125,"on.initialize":7,"on.mouse_release":52,"learn_keychord_press":59}
|
|
@ -0,0 +1,5 @@
|
|||
play = function(word_idx)
|
||||
Playing_source = love.audio.newSource('sample.wav', 'static')
|
||||
Playing_source:play()
|
||||
Recording = false
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
draw_playing_button = function()
|
||||
if not Playing_source then return end
|
||||
if not Playing_source:isPlaying() then Playing_source = nil end
|
||||
App.color{r=0, g=0, b=0, a=0.5}
|
||||
love.graphics.polygon('fill', {30, 10, 45, 20, 30, 30})
|
||||
end
|
|
@ -0,0 +1 @@
|
|||
{"draw_teach_word":68,"on_play":96,"on.mouse_press":51,"on_record":95,"teach_mouse_release":46,"fw_app":"spell-cards","on.text_input":54,"on":1,"Recording":103,"Playing":102,"new_word":64,"draw_new_word_button":117,"learn_mouse_press":57,"learn_mouse_release":58,"draw_playing_button":130,"learn_text_input":60,"learn_key_release":61,"play":129,"draw_record_button":72,"draw_play_button":75,"learn_keychord_press":59,"on.mouse_release":52,"Mode":2,"on.key_release":55,"draw_teach_screen":110,"draw_recording_button":125,"Playing_source":126,"teach_mouse_press":88,"on.draw":5,"on_new_word_button":118,"Words":12,"fw_parent":129,"on.initialize":7,"on.keychord_press":53,"Font_height":8,"Cursor_word":24,"Line_height":9,"to_word_idx":94,"on_word":80,"teach_key_release":56,"teach_text_input":49,"record":128,"draw_learn_screen":4,"teach_keychord_press":47}
|
Binary file not shown.
Loading…
Reference in New Issue