File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
1
import Toybox .Lang ;
2
2
import Toybox .WatchUi ;
3
3
import Toybox .Application .Properties ;
4
+ // import Toybox.Graphics;
4
5
5
6
(:SettingsMenu)
6
7
// ! This is the settings main menu called by getSettingsView of the application
@@ -140,7 +141,7 @@ class PickList extends WatchUi.Drawable {
140
141
if (_index >= _settingsStrings .size ()) {
141
142
_index = 0 ;
142
143
}
143
- return _settingsStrings [ _index ] as String ;
144
+ return self . getString () ;
144
145
}
145
146
146
147
// ! Return the fieldvalue string for the menu to use as its label
@@ -160,4 +161,18 @@ class PickList extends WatchUi.Drawable {
160
161
public function getField () as Number {
161
162
return _field ;
162
163
}
164
+
165
+ /*
166
+ public function draw(dc as Dc) as Void {
167
+ dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_TRANSPARENT);
168
+ dc.drawText(
169
+ dc.getWidth() / 2, // gets the width of the device and divides by 2
170
+ dc.getHeight() / 2, // gets the height of the device and divides by 2
171
+ Graphics.FONT_MEDIUM, // sets the font size
172
+ (_field + 1).toString(), // the String to display
173
+ Graphics.TEXT_JUSTIFY_CENTER | // sets the justification for the text
174
+ Graphics.TEXT_JUSTIFY_VCENTER
175
+ );
176
+ }
177
+ */
163
178
}
You can’t perform that action at this time.
0 commit comments