Skip to content

Commit

Permalink
Change line-color to light_red for disabled option (CleverRaven#39934)
Browse files Browse the repository at this point in the history
* Change LineColor to light_red for disabled option

* Add option off and fix for translations
  • Loading branch information
Pupsi-Mupsi authored and Drewscriver committed Apr 30, 2020
1 parent 40a4b07 commit d510e82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,8 @@ std::string options_manager::show( bool ingame, const bool world_options_only,
if( hasPrerequisite && !hasPrerequisiteFulfilled ) {
cLineColor = c_light_gray;

} else if( current_opt.getValue() == "false" ) {
} else if( current_opt.getValue() == "false" || current_opt.getValue() == "disabled" ||
current_opt.getValue() == "off" ) {
cLineColor = c_light_red;
}

Expand Down

0 comments on commit d510e82

Please sign in to comment.