This repository has been archived by the owner on Feb 14, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added menu item for changing update speed to menu2, and added full st…
…rings to be used in settings controller on phone or pc
- Loading branch information
Showing
6 changed files
with
106 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Toybox.WatchUi; | ||
using Toybox.System; | ||
|
||
class DataUpdateSpeedMenu2Controller extends WatchUi.Menu2InputDelegate { | ||
function initialize() { | ||
Menu2InputDelegate.initialize(); | ||
} | ||
|
||
function onSelect(item) { | ||
switch (item.getId()) { | ||
case "Fast": { | ||
AppStorage.setValue("DataUpdateSpeed", 400); | ||
WatchUi.popView(WatchUi.SLIDE_RIGHT); | ||
break; | ||
} | ||
case "Medium": { | ||
AppStorage.setValue("DataUpdateSpeed", 1000); | ||
WatchUi.popView(WatchUi.SLIDE_RIGHT); | ||
break; | ||
} | ||
case "Slow": { | ||
AppStorage.setValue("DataUpdateSpeed", 1500); | ||
WatchUi.popView(WatchUi.SLIDE_RIGHT); | ||
break; | ||
} | ||
case "SuperSlow": { | ||
AppStorage.setValue("DataUpdateSpeed", 2000); | ||
WatchUi.popView(WatchUi.SLIDE_RIGHT); | ||
break; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters