Add a "∆" suffix to groups which have "force to triangle mesh" ticked.

pull/1099/head
Tom Sutcliffe 2021-08-22 13:53:56 +01:00 committed by phkahler
parent f47cf65f41
commit f71c527e23
1 changed files with 8 additions and 2 deletions

View File

@ -123,13 +123,18 @@ void TextWindow::ShowListOfGroups() {
sprintf(sdof, "%-3d", dof);
}
}
std::string suffix;
if(g->forceToMesh) {
suffix = " (∆)";
}
bool ref = (g->h == Group::HGROUP_REFERENCES);
Printf(false,
"%Bp%Fd "
"%Ft%s%Fb%D%f%Ll%s%E "
"%Fb%s%D%f%Ll%s%E "
"%Fp%D%f%s%Ll%s%E "
"%Fp%Ll%D%f%s",
"%Fp%Ll%D%f%s%E%s",
// Alternate between light and dark backgrounds, for readability
backgroundParity ? 'd' : 'a',
// Link that activates the group
@ -147,7 +152,8 @@ void TextWindow::ShowListOfGroups() {
ok ? "" : "ERR",
// Link to a screen that gives more details on the group
g->suppress ? 'g' : 'l',
g->h.v, (&TextWindow::ScreenSelectGroup), s.c_str());
g->h.v, (&TextWindow::ScreenSelectGroup), s.c_str(),
suffix.c_str());
if(active) afterActive = true;
backgroundParity = !backgroundParity;