Skip to content

Commit

Permalink
Remove weariness_text widget variable
Browse files Browse the repository at this point in the history
  • Loading branch information
wapcaplet committed Feb 6, 2022
1 parent 229bd9a commit e612837
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion doc/SIDEBAR_MOD.md
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,6 @@ Some vars refer to text descriptors. These must use style "text". Examples:
| `veh_azimuth_text` | Heading of vehicle in degrees
| `veh_cruise_text` | Target and actual cruising velocity, positive or negative
| `veh_fuel_text` | Percentage of fuel remaining for current vehicle engine
| `weariness_text` | Weariness level - "Fresh", "Light", "Moderate", "Weary" etc.
| `weary_malus_text` | Percentage penalty affecting speed due to weariness
| `weather_text` | Weather conditions - "Sunny", "Cloudy", "Drizzle", "Portal Storm" etc.
| `weight_text` | Body weight - "Emaciated", "Normal", "Overweight", etc.
Expand Down
6 changes: 0 additions & 6 deletions src/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ std::string enum_to_string<widget_var>( widget_var data )
return "veh_cruise_text";
case widget_var::veh_fuel_text:
return "veh_fuel_text";
case widget_var::weariness_text:
return "weariness_text";
case widget_var::weary_malus_text:
return "weary_malus_text";
case widget_var::weather_text:
Expand Down Expand Up @@ -858,7 +856,6 @@ bool widget::uses_text_function()
case widget_var::veh_azimuth_text:
case widget_var::veh_cruise_text:
case widget_var::veh_fuel_text:
case widget_var::weariness_text:
case widget_var::weary_malus_text:
case widget_var::weather_text:
case widget_var::weight_text:
Expand Down Expand Up @@ -978,9 +975,6 @@ std::string widget::color_text_function_string( const avatar &ava, unsigned int
case widget_var::veh_fuel_text:
desc = display::vehicle_fuel_percent_text_color( ava );
break;
case widget_var::weariness_text:
desc = display::weariness_text_color( ava );
break;
case widget_var::weary_malus_text:
desc = display::weary_malus_text_color( ava );
break;
Expand Down
1 change: 0 additions & 1 deletion src/widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ enum class widget_var : int {
veh_azimuth_text, // Azimuth or heading in degrees, string
veh_cruise_text, // Current/target cruising speed in vehicle, color string
veh_fuel_text, // Current/total fuel for active vehicle engine, color string
weariness_text, // Weariness description text, color string
weary_malus_text, // Weariness malus or penalty
weather_text, // Weather/sky conditions (if visible), color string
weight_text, // Weight description text, color string
Expand Down

0 comments on commit e612837

Please sign in to comment.