add more explenation text to marks
This commit is contained in:
parent
50447ac8cd
commit
4f852161aa
@ -106,7 +106,7 @@ void marks_page() {
|
|||||||
|
|
||||||
update_panels();
|
update_panels();
|
||||||
attron(COLOR_PAIR(4));
|
attron(COLOR_PAIR(4));
|
||||||
mvprintw(LINES - 2, 0, "Arrows/j/k to scroll | F1 to exit");
|
mvprintw(LINES - 2, 0, "Arrows/j/k to scroll | F1 to exit | {mark} [weight]");
|
||||||
attroff(COLOR_PAIR(4));
|
attroff(COLOR_PAIR(4));
|
||||||
doupdate();
|
doupdate();
|
||||||
|
|
||||||
@ -233,7 +233,10 @@ void win_show(WINDOW *win, char *label, int label_color, int width, int height,
|
|||||||
i++) {
|
i++) {
|
||||||
Caption = marks_json["Subjects"][SubjectIndex]["Marks"][i]["Caption"];
|
Caption = marks_json["Subjects"][SubjectIndex]["Marks"][i]["Caption"];
|
||||||
Caption = rm_tr_le_whitespace(Caption);
|
Caption = rm_tr_le_whitespace(Caption);
|
||||||
Caption.append(std::format(" - {{{}}} [{}]",marks_json["Subjects"][SubjectIndex]["Marks"][i]["MarkText"].get<std::string>(),marks_json["Subjects"][SubjectIndex]["Marks"][i]["Weight"].get<int>()));
|
Caption.append(std::format(" - {{{}}} [{}]",
|
||||||
|
marks_json["Subjects"][SubjectIndex]["Marks"][i]["MarkText"]
|
||||||
|
.get<std::string>(),marks_json["Subjects"][SubjectIndex]["Marks"][i]["Weight"].get<int>()));
|
||||||
|
|
||||||
strncpy(CaptionBuf, Caption.c_str(), sizeof(CaptionBuf)-1);
|
strncpy(CaptionBuf, Caption.c_str(), sizeof(CaptionBuf)-1);
|
||||||
print_in_middle(win, 3 + i + AdditionalOffset, 0, width, CaptionBuf,COLOR_PAIR(label_color));
|
print_in_middle(win, 3 + i + AdditionalOffset, 0, width, CaptionBuf,COLOR_PAIR(label_color));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user