File Details
LowHealthAlert.zip
- R
- Sep 19, 2025
- 14.38 KB
- 124
- 1.15.7
- Classic
File Name
LowHealthAlert.zip
Supported Versions
- 1.15.7
문제점:
- 미니맵을 네모난 모양으로 변경했을 때, 애드온 버튼들이 원형
미니맵 기준으로만 움직여서 네모난 테두리에 제대로 붙지 않는 문제가
있었습니다.
해결 방법:
- GetMinimapShape() 함수를 사용하여 현재 미니맵 모양을 감지
- 각 모양별 사분면이 원형인지 각진 형태인지 판단하는 테이블 구현
- 미니맵이 네모난 경우 정사각형 경계로 투영하는 계산식 적용
- WoW Classic에는 MINIMAP_UPDATE_SHAPE 이벤트가 없어서 OnUpdate로
1초마다 모양 변경 체크
수정된 애드온:
1. FoxChat - 네모난 미니맵 지원 추가
2. FoxGuildCal - 네모난 미니맵 지원 추가
3. SimpleFindParty - 네모난 미니맵 지원 추가 + 드래그 버그 수정
4. LowHealthAlert - 네모난 미니맵 지원 추가
5. WowPostIt - 네모난 미니맵 지원 추가
추가 수정사항:
- SimpleFindParty의 드래그 시 반대 방향으로 이동하는 버그 수정
(좌표 계산 로직 수정)
---
English Description
Added Square Minimap Support for Addon Buttons
Problem:
- When the minimap was changed to a square shape, addon buttons
only moved based on circular minimap calculations, causing them
not to properly stick to the square edges.
Solution:
- Used GetMinimapShape() function to detect current minimap shape
- Implemented a lookup table to determine whether each quadrant is
round or angular for each shape
- Applied projection calculation to square boundaries when minimap
is square
- Since WoW Classic doesn't have MINIMAP_UPDATE_SHAPE event,
implemented shape checking every 1 second using OnUpdate
Modified Addons:
1. FoxChat - Added square minimap support
2. FoxGuildCal - Added square minimap support
3. SimpleFindParty - Added square minimap support + Fixed drag bug
4. LowHealthAlert - Added square minimap support
5. WowPostIt - Added square minimap support
Additional Fix:
- Fixed SimpleFindParty drag issue where button moved in opposite
direction (corrected coordinate calculation logic)

