Skip to content

feat: add scale slider to configuration (refs #37)#66

Merged
raincamp merged 1 commit intomainfrom
feature/issue-37-scale-slider
Nov 21, 2025
Merged

feat: add scale slider to configuration (refs #37)#66
raincamp merged 1 commit intomainfrom
feature/issue-37-scale-slider

Conversation

@raincamp
Copy link
Owner

Description

Adds a slider to the configuration panel allowing users to adjust action bar scale/size.

Changes

  • Add scale slider to config panel UI
    • Range: 0.5 (50%) to 2.0 (200%)
    • Step: 0.05
    • Default: 1.0 (100%)
  • Increase config panel height to 320px to accommodate new sliders
  • Add scale default to saved variables with validation
  • Implement ScaleSliderOnValueChanged handler
  • Apply scale immediately using SetScale() on bar parent frame
  • Initialize slider from saved settings on load
  • Apply initial scale when bar is created

Technical Notes

  • Uses frame:SetScale() on parent frame (applies to all children)
  • SecureActionButtons remain functional at all scales
  • Hitboxes scale correctly with frame

Related Issue

Closes #37

Files Modified

  • conf/frame_conf.lua - Add slider UI and increase panel height
  • conf/conf.lua - Add defaults, validation, and handler
  • bar/bar.lua - Apply initial scale on creation

@raincamp raincamp force-pushed the feature/issue-37-scale-slider branch from a9520c1 to f40a3eb Compare November 21, 2025 01:48
- Add scale slider to config panel UI (0.5-2.0 range, 0.05 step)
- Increase config panel height to 320px to accommodate sliders
- Add default scale value (1.0 = 100%) to saved variables
- Add validation for scale range (0.5-2.0)
- Implement ScaleSliderOnValueChanged handler
- Apply scale immediately using SetScale() on bar frame
- Changes apply in real-time without reload
- Setting persists across sessions
- Initialize slider value from saved settings on load
- Apply initial scale when bar is created
- Verify SecureActionButtons remain functional at all scales
@raincamp raincamp force-pushed the feature/issue-37-scale-slider branch from f40a3eb to 7ff8136 Compare November 21, 2025 01:56
@raincamp raincamp merged commit c2cbe88 into main Nov 21, 2025
@raincamp raincamp deleted the feature/issue-37-scale-slider branch November 21, 2025 01:56
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.

Add scale slider to configuration

1 participant

Comments