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 092ef84 commit 847af9d
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 @@ -715,7 +715,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.
| `wielding_text` | Name of current weapon or wielded item
Expand Down
6 changes: 0 additions & 6 deletions src/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,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 @@ -838,7 +836,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::wielding_text:
Expand Down Expand Up @@ -951,9 +948,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 @@ -67,7 +67,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
wielding_text, // Currently wielded weapon or item name
Expand Down

0 comments on commit 847af9d

Please sign in to comment.