Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description widgets for pain, thirst, fatigue, weight, hunger and more #50945

Merged
merged 9 commits into from
Aug 28, 2021

Commits on Aug 28, 2021

  1. widget: Add color text function support

    Add several `xx_text` widget variables associated with "text color
    functions", which are functions in the panels.h `display` namespace
    returning a (text, color) pair for the description strings of the pain,
    hunger, thirst, fatigue, and weight attributes.
    wapcaplet committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    a14c16c View commit details
    Browse the repository at this point in the history
  2. widget: pain, thirst, fatigue, weight, hunger_desc

    Add phrase widgets which may be added to custom sidebar layouts or to
    the root layout widget.
    wapcaplet committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    f7c4d3a View commit details
    Browse the repository at this point in the history
  3. widget: Rename style "phrase" to "text"

    The word "phrase" is a little awkward; "text" fits better conceptually
    with "number" and "graph".
    
    Include comments on the intention of text functions vs normal widgets.
    wapcaplet committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    cb028aa View commit details
    Browse the repository at this point in the history
  4. widget: Put padding after ": " instead of after label

    Gives cleaner-looking results, especially when value is empty
    wapcaplet committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    c99b020 View commit details
    Browse the repository at this point in the history
  5. widget: Add weariness_text variable

    Also add a weariness_text_color wrapper accepting a Character reference,
    to simplify usage, and provide a pair( std::string, nc_color ) response
    like its kin.
    wapcaplet committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    0d3c2ab View commit details
    Browse the repository at this point in the history
  6. widget: Add wielding_text and style_text vars

    For showing wielded weapon and martial arts style
    wapcaplet committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    c0ed802 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    5f9618a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8ddc7b9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    100aabd View commit details
    Browse the repository at this point in the history