Skip to content

Commit e556513

Browse files
committed
Setting menu (experimental)
1 parent 3060609 commit e556513

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

source/ForumsladerSettings.mc

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Toybox.Lang;
22
import Toybox.WatchUi;
33
import Toybox.Application.Properties;
4+
//import Toybox.Graphics;
45

56
(:SettingsMenu)
67
//! This is the settings main menu called by getSettingsView of the application
@@ -140,7 +141,7 @@ class PickList extends WatchUi.Drawable {
140141
if (_index >= _settingsStrings.size()) {
141142
_index = 0;
142143
}
143-
return _settingsStrings[_index] as String;
144+
return self.getString();
144145
}
145146

146147
//! Return the fieldvalue string for the menu to use as its label
@@ -160,4 +161,18 @@ class PickList extends WatchUi.Drawable {
160161
public function getField() as Number {
161162
return _field;
162163
}
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+
*/
163178
}

0 commit comments

Comments
 (0)