Rev 1344 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1344 | Rev 1346 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | case "right": |
38 | case "right": |
| 39 | this.parentDisplay.changeToRight(); |
39 | this.parentDisplay.changeToRight(); |
| 40 | break; |
40 | break; |
| 41 | 41 | ||
| 42 | case "up": |
42 | case "up": |
| - | 43 | this.parentDisplay.defaultBacklight += 10; |
|
| - | 44 | if (this.parentDisplay.defaultBacklight > 255) |
|
| - | 45 | this.parentDisplay.defaultBacklight = 255; |
|
| 43 | this.display. |
46 | this.display.setBacklight(this.parentDisplay.defaultBacklight); |
| 44 | //parentDisplay.changeToUp(); |
47 | //parentDisplay.changeToUp(); |
| 45 | break; |
48 | break; |
| 46 | 49 | ||
| 47 | case "down": |
50 | case "down": |
| - | 51 | this.parentDisplay.defaultBacklight -= 10; |
|
| - | 52 | if (this.parentDisplay.defaultBacklight < 0) |
|
| - | 53 | this.parentDisplay.defaultBacklight = 0; |
|
| 48 | this.display. |
54 | this.display.setBacklight(this.parentDisplay.defaultBacklight); |
| 49 | //parentDisplay.changeToDown(); |
55 | //parentDisplay.changeToDown(); |
| 50 | break; |
56 | break; |
| 51 | 57 | ||
| 52 | case "enter": |
58 | case "enter": |
| 53 | this.display.printText(3,3,"enter ","Standard","Standard"); |
59 | this.display.printText(3,3,"enter ","Standard","Standard"); |
| Line 62... | Line 68... | ||
| 62 | } |
68 | } |
| 63 | 69 | ||
| 64 | SettingsMenuItem.prototype.onEnter = function () |
70 | SettingsMenuItem.prototype.onEnter = function () |
| 65 | { |
71 | { |
| 66 | this.display.clearScreen("Standard"); |
72 | this.display.clearScreen("Standard"); |
| - | 73 | this.display.printText(0,0,"settingsMenu","Standard","Standard"); |
|
| 67 | } |
74 | } |
| 68 | SettingsMenuItem.prototype.update = function () |
75 | SettingsMenuItem.prototype.update = function () |
| 69 | { |
76 | { |
| - | 77 | ||
| - | 78 | ||
| - | 79 | this.display.printText(2,2,"Backlight: "+this.parentDisplay.defaultBacklight + " " ,"Standard","Standard"); |
|
| - | 80 | this.display.DrawRect(120,17,25,5,"Inverted","Fill",0); |
|
| - | 81 | this.display.DrawRect(120,17,this.parentDisplay.defaultBacklight/10,5,"Standard","Fill",0); |
|
| 70 |
|
82 | this.display.DrawRect(120,17,25,5,"Standard","NoFill",0); |
| - | 83 | ||
| 71 | } |
84 | } |
| 72 | SettingsMenuItem.prototype.onExit = function () |
85 | SettingsMenuItem.prototype.onExit = function () |
| 73 | { |
86 | { |
| 74 | 87 | ||
| 75 | } |
88 | } |