dwarfmonitor: make handling of unrecognized preferences more obvious

develop
lethosor 2018-01-18 01:07:20 -05:00
parent 4e2c6194ca
commit 5f588b376a
1 changed files with 5 additions and 1 deletions

@ -1212,6 +1212,7 @@ struct preference_map
break;
default:
label = string("UNKNOWN ") + ENUM_ATTR_STR(item_type, caption, pref.item_type);
break;
}
@ -1314,6 +1315,9 @@ struct preference_map
label += "Dance :" + getFormName<df::dance_form>(pref.dance_form_id);
break;
default:
label += string("UNKNOWN ") + ENUM_KEY_STR(unit_preference::T_type, pref.type);
break;
}
}
};
@ -1525,7 +1529,7 @@ public:
return COLOR_LIGHTCYAN;
default:
return false;
return COLOR_LIGHTMAGENTA;
}
return true;