Skip to content

fix(weather-editor): weather widget sliders#2179

Merged
alandtse merged 2 commits into
community-shaders:devfrom
SkrubbySkrubInAShrub:WE-WW-Last-slider-tweaks
Apr 22, 2026
Merged

fix(weather-editor): weather widget sliders#2179
alandtse merged 2 commits into
community-shaders:devfrom
SkrubbySkrubInAShrub:WE-WW-Last-slider-tweaks

Conversation

@SkrubbySkrubInAShrub
Copy link
Copy Markdown
Collaborator

@SkrubbySkrubInAShrub SkrubbySkrubInAShrub commented Apr 21, 2026

These are the last edits hopefully.

Summary by CodeRabbit

  • UI Updates
    • Adjusted Sun Damage and Sun Glare controls for improved value handling and smoother transitions.
    • Reduced maximum fog distance slider values (Day/Night, Near/Far) to optimize rendering and visual quality.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 21, 2026

📝 Walkthrough

Walkthrough

Changed sun parameter handling from signed to unsigned in the weather editor and reduced maximum fog distance slider ranges from 1,000,000.0f to 350,000.0f; updated interpolation to use unsigned lerp for sun fields.

Changes

Cohort / File(s) Summary
Weather Widget UI Parameters
src/WeatherEditor/Weather/WeatherWidget.cpp
Switched "Sun Damage" control from INT8_SLIDER to UINT8_SLIDER; SetWeatherValues() now writes Sun Glare and Sun Damage as uint8_t; reduced fog slider maximums for Day/Night Near and Far from 1,000,000.0f to 350,000.0f.
Weather Lerp Logic
src/Features/WeatherEditor.cpp
Changed interpolation for RE::TESWeather::data.sunDamage and sunGlare from LerpInt8_t to LerpUint8_t (signed→unsigned lerp).

Sequence Diagram(s)

(No sequence diagrams generated — changes are small type/range adjustments without multi-component control-flow changes.)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • davo0411
  • alandtse

Poem

🐰 I hop through sliders, bright and spry,
Sun damage now unsigned, oh my!
Fog trimmed back to clearer miles,
I twitch my nose and do a smile 🌤️🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title 'fix(weather-editor): weather widget sliders' accurately reflects the main changes in the PR, which involve modifying slider controls and ranges in the weather widget component.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/WeatherEditor/Weather/WeatherWidget.cpp`:
- Line 173: The UI uses the unsigned slider constant for a field backed by a
signed byte: change the DrawProperties call that currently passes UINT8_SLIDER
for "Sun Damage" to use INT8_SLIDER instead (update the invocation in
WeatherWidget.cpp where DrawProperties("Sun", { { "Sun Damage", UINT8_SLIDER }
}) appears), ensuring the UI range matches the signed backing field sunDamage
(int8_t) and the interpolation helper LerpInt8_t.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f4160fb5-e41d-4333-8103-7b5b21a1f71d

📥 Commits

Reviewing files that changed from the base of the PR and between 4e1ea45 and e3e3173.

📒 Files selected for processing (1)
  • src/WeatherEditor/Weather/WeatherWidget.cpp

Comment thread src/WeatherEditor/Weather/WeatherWidget.cpp
@SkrubbySkrubInAShrub SkrubbySkrubInAShrub changed the title fix(weather editor): weather widget sliders fix(weather-editor): weather widget sliders Apr 21, 2026
@alandtse alandtse merged commit b219601 into community-shaders:dev Apr 22, 2026
8 checks passed
ParticleTroned pushed a commit to ParticleTroned/skyrim-community-shaders that referenced this pull request May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants