Skip to content

feat: add reset position button (refs #39)#67

Merged
raincamp merged 1 commit intomainfrom
feature/issue-39-reset-position-button
Nov 21, 2025
Merged

feat: add reset position button (refs #39)#67
raincamp merged 1 commit intomainfrom
feature/issue-39-reset-position-button

Conversation

@raincamp
Copy link
Owner

Description

Adds a button to the configuration panel that resets the action bar to its default position.

Changes

  • Add reset position button to config panel UI
  • Increase config panel height to 280px to accommodate button
  • Implement ResetPositionButtonOnClick handler
  • Reset point, rel_point, x_offset, y_offset to defaults
  • Apply position change immediately using ClearAllPoints() and SetPoint()
  • Show confirmation message in chat: "Bar position reset to default"
  • Button uses util.Button() for consistency (150x22px)

Related Issue

Closes #39

Files Modified

  • conf/frame_conf.lua - Add button UI and increase panel height
  • conf/conf.lua - Add handler and import util module for SystemMsg()

@raincamp raincamp force-pushed the feature/issue-39-reset-position-button branch 2 times, most recently from e718440 to 2afced7 Compare November 21, 2025 01:57
- Add reset position button to config panel UI
- Increase config panel height to 280px
- Implement ResetPositionButtonOnClick handler
- Reset point, rel_point, x_offset, y_offset to defaults
- Apply position change immediately using ClearAllPoints() and SetPoint()
- Show confirmation message in chat using SystemMsg()
- Button dimensions: 150x22px
@raincamp raincamp force-pushed the feature/issue-39-reset-position-button branch from 2afced7 to e81dfe2 Compare November 21, 2025 01:58
@raincamp raincamp merged commit de0d726 into main Nov 21, 2025
@raincamp raincamp deleted the feature/issue-39-reset-position-button branch November 21, 2025 01:59
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 reset position button

1 participant

Comments