if (mileagegoalTitle == nullptr) {
mileagegoalTitle = new UILabelExt();
}
- mileagegoalTitle->SetPosition(168, 49); // widget's left position and top position
- mileagegoalTitle->Resize(201, 65); // widget's width and height
+ mileagegoalTitle->SetPosition(113, 61); // widget's left position and top position
+ mileagegoalTitle->Resize(240, 35); // widget's width and height
mileagegoalTitle->SetViewId("label1");// Set style
mileagegoalTitle->SetStyle(STYLE_TEXT_FONT, 30);
// Set additional property
mileagegoalTitle->SetText("里程(KM)");
- mileagegoalTitle->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);
+ mileagegoalTitle->SetTextId(STR_MILEAGE);
+ mileagegoalTitle->SetLineBreakMode(UILabel::LINE_BREAK_MARQUEE);
mileagegoalTitle->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
mileagegoalTitle->SetRollSpeed(0);
mileagegoalTitle->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);
if (fatburninggoalTitle == nullptr) {
fatburninggoalTitle = new UILabelExt();
}
- fatburninggoalTitle->SetPosition(61, 195); // widget's left position and top position
- fatburninggoalTitle->Resize(201, 65); // widget's width and height
+ fatburninggoalTitle->SetPosition(8, 188); // widget's left position and top position
+ fatburninggoalTitle->Resize(200, 35); // widget's width and height
fatburninggoalTitle->SetViewId("label1");// Set style
fatburninggoalTitle->SetStyle(STYLE_TEXT_FONT, 30);
// Set additional property
fatburninggoalTitle->SetText("燃脂时间");
- fatburninggoalTitle->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);
+ fatburninggoalTitle->SetTextId(STR_FAT_BURNING_TIME);
+ fatburninggoalTitle->SetLineBreakMode(UILabel::LINE_BREAK_MARQUEE);
fatburninggoalTitle->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
fatburninggoalTitle->SetRollSpeed(0);
fatburninggoalTitle->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);
if (standgoalTitle == nullptr) {
standgoalTitle = new UILabelExt();
}
- standgoalTitle->SetPosition(279, 196); // widget's left position and top position
- standgoalTitle->Resize(201, 65); // widget's width and height
+ standgoalTitle->SetPosition(257, 188); // widget's left position and top position
+ standgoalTitle->Resize(200, 35); // widget's width and height
standgoalTitle->SetViewId("label1");// Set style
standgoalTitle->SetStyle(STYLE_TEXT_FONT, 30);
// Set additional property
standgoalTitle->SetText("站立次数");
- standgoalTitle->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);
+ standgoalTitle->SetTextId(STR_NUMBER_OF_STANDS);
+ standgoalTitle->SetLineBreakMode(UILabel::LINE_BREAK_MARQUEE);
standgoalTitle->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
standgoalTitle->SetRollSpeed(0);
standgoalTitle->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);
if (caloriegoalTitle == nullptr) {
caloriegoalTitle = new UILabelExt();
}
- caloriegoalTitle->SetPosition(158, 313); // widget's left position and top position
- caloriegoalTitle->Resize(201, 65); // widget's width and height
+ caloriegoalTitle->SetPosition(53, 317); // widget's left position and top position
+ caloriegoalTitle->Resize(360, 35); // widget's width and height
caloriegoalTitle->SetViewId("label1");// Set style
caloriegoalTitle->SetStyle(STYLE_TEXT_FONT, 30);
// Set additional property
caloriegoalTitle->SetText("消耗卡路里");
- caloriegoalTitle->SetLineBreakMode(UILabel::LINE_BREAK_ADAPT);
+ caloriegoalTitle->SetTextId(STR_CONSUME_CALORIES);
+ caloriegoalTitle->SetLineBreakMode(UILabel::LINE_BREAK_MARQUEE);
caloriegoalTitle->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
caloriegoalTitle->SetRollSpeed(0);
caloriegoalTitle->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);
if (mileagenowdataLabel == nullptr) {
mileagenowdataLabel = new UILabel();
}
- mileagenowdataLabel->SetPosition(163-20, 87); // widget's left position and top position
+ mileagenowdataLabel->SetPosition(163-20+10, 87); // widget's left position and top position
mileagenowdataLabel->Resize(75, 60); // widget's width and height
mileagenowdataLabel->SetViewId("label2");// Set style
mileagenowdataLabel->SetStyle(STYLE_TEXT_FONT, 40);
if (mileagegoaldataLabel == nullptr) {
mileagegoaldataLabel = new UILabel();
}
- mileagegoaldataLabel->SetPosition(243-20, 86); // widget's left position and top position
+ mileagegoaldataLabel->SetPosition(243-20+10, 86); // widget's left position and top position
mileagegoaldataLabel->Resize(82, 60); // widget's width and height
mileagegoaldataLabel->SetViewId("label2");// Set style
mileagegoaldataLabel->SetStyle(STYLE_TEXT_FONT, 40);
if (fatburningnowdataLabel == nullptr) {
fatburningnowdataLabel = new UILabel();
}
- fatburningnowdataLabel->SetPosition(47-20, 223); // widget's left position and top position
+ fatburningnowdataLabel->SetPosition(47-20-10, 223); // widget's left position and top position
fatburningnowdataLabel->Resize(75, 60); // widget's width and height
fatburningnowdataLabel->SetViewId("label2");// Set style
fatburningnowdataLabel->SetStyle(STYLE_TEXT_FONT, 40);
if (fatburninggoaldataLabel == nullptr) {
fatburninggoaldataLabel = new UILabel();
}
- fatburninggoaldataLabel->SetPosition(128-20, 223); // widget's left position and top position
+ fatburninggoaldataLabel->SetPosition(128-20-10, 223); // widget's left position and top position
fatburninggoaldataLabel->Resize(82, 60); // widget's width and height
fatburninggoaldataLabel->SetViewId("label2");// Set style
fatburninggoaldataLabel->SetStyle(STYLE_TEXT_FONT, 40);
if (standnowdataLabel == nullptr) {
standnowdataLabel = new UILabel();
}
- standnowdataLabel->SetPosition(47+200, 223); // widget's left position and top position
+ standnowdataLabel->SetPosition(47+200+10, 223); // widget's left position and top position
standnowdataLabel->Resize(75, 60); // widget's width and height
standnowdataLabel->SetViewId("label2");// Set style
standnowdataLabel->SetStyle(STYLE_TEXT_FONT, 40);
if (standgoaldataLabel == nullptr) {
standgoaldataLabel = new UILabel();
}
- standgoaldataLabel->SetPosition(128+200, 223); // widget's left position and top position
+ standgoaldataLabel->SetPosition(128+200+10, 223); // widget's left position and top position
standgoaldataLabel->Resize(82, 60); // widget's width and height
standgoaldataLabel->SetViewId("label2");// Set style
standgoaldataLabel->SetStyle(STYLE_TEXT_FONT, 40);
if (calorienowdataLabel == nullptr) {
calorienowdataLabel = new UILabel();
}
- calorienowdataLabel->SetPosition(163-20, 353); // widget's left position and top position
+ calorienowdataLabel->SetPosition(163-20-10, 353); // widget's left position and top position
calorienowdataLabel->Resize(75, 60); // widget's width and height
calorienowdataLabel->SetViewId("label2");// Set style
calorienowdataLabel->SetStyle(STYLE_TEXT_FONT, 40);
if (caloriegoaldataLabel == nullptr) {
caloriegoaldataLabel = new UILabel();
}
- caloriegoaldataLabel->SetPosition(243-20, 353); // widget's left position and top position
+ caloriegoaldataLabel->SetPosition(243-20-10, 353); // widget's left position and top position
caloriegoaldataLabel->Resize(82, 60); // widget's width and height
caloriegoaldataLabel->SetViewId("label2");// Set style
caloriegoaldataLabel->SetStyle(STYLE_TEXT_FONT, 40);