1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55:
| pluginname = "PluginTest" version = "1.0" creator = "Tsuyo" mail = "1@tsuyo.de" light = 0
dofile("plugins/values")
-- WORK HERE :) function draw() if keyboard() == 0 then drawtext(now("HH:mm:ss"),"8pxbus", 255, 0, 0, 0, 8, 0, 0, 500, 500) drawtext(now("dd.MM.yyyy"),"8pxbus", 255, 0, 0, 0, 8, 110, 0, 500, 500) drawline(255,0,0,0,0,8,LCD_M_WIDTH,8) if getshuffle() == WAMP_STATUS_SHUFFLE_ON then drawtext("Shuffle is enabled","8pxbus", 255, 0, 0, 0, 8, 0, 10, 500, 500) else drawtext("Shuffle is not enabled","8pxbus", 255, 0, 0, 0, 8, 0, 10, 500, 500) end if getrepeat() == WAMP_STATUS_REPEAT_ON then drawtext("Repeat is enabled","8pxbus", 255, 0, 0, 0, 8, 0, 20, 500, 500) else drawtext("Repeat is not enabled","8pxbus", 255, 0, 0, 0, 8, 0, 20, 500, 500) end drawtext(song(),"8pxbus", 255, 0, 0, 0, 8, 0, 30, 500, 500) drawtext(tomin(songlength()),"8pxbus", 255, 0, 0, 0, 8, 100, 37, 500, 500) drawtext(tomin(songpos()),"8pxbus", 255, 0, 0, 0, 8, 0, 37, 500, 500) else fillrectangle(255,255,0,0,0,0,340,50) drawtext(now("HH:mm:ss"),"Arial",255,255,255,255,20,0,0,100,100) drawline(255,255,255,255,0,0,340,50) drawline(255,255,255,255,340,-2,0,50) drawtext("Testplugin NR:1","Arial",255,255,255,255,20,0,20,350,100) end end
function buttonchanged(b) if b == "Button3" then if light < 2 then light = light + 1 else light = 0 end DisplayLight(light) KeyboardLight(light) end end
function closing() --box("Closing!") end
function closed() --box("Closed!") end |