fix(PausePopup): 버튼 처리 중엔 다른 버튼을 클릭할 수 없다#386
Merged
Conversation
- LargeButton 클래스에서 disabledView로 사용할 에셋
- 외부에서 enabled가 변경되면 알아서 disabledView로 넣어둔 에셋이 노출됨 - 수동으로 opacity 조절해서 표현할 필요 X
nijuy
commented
Jan 7, 2026
Comment on lines
+46
to
+55
| const disabledView = new NineSliceSprite({ | ||
| texture: Texture.from('large-button-disabled'), | ||
| leftWidth: 36, | ||
| topHeight: 42, | ||
| rightWidth: 36, | ||
| bottomHeight: 52, | ||
| width: opts.width, | ||
| height: opts.height, | ||
| }); | ||
|
|
Collaborator
Author
There was a problem hiding this comment.
disabledView를 설정해두면 외부에서 이 버튼의 enabled를 false로 바꿨을 때 알아서 비활성화 상태를 보여줌
nijuy
added a commit
that referenced
this pull request
Jan 12, 2026
* chore: large-button-disabled 에셋 추가 - LargeButton 클래스에서 disabledView로 사용할 에셋 * feat(LargeButton): disabledView 추가 - 외부에서 enabled가 변경되면 알아서 disabledView로 넣어둔 에셋이 노출됨 - 수동으로 opacity 조절해서 표현할 필요 X * fix(PausePopup): 버튼 처리 중엔 다른 버튼을 클릭할 수 없다
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
💻 개요
🧐 배경
게임 세션의 생명주기 : 시작 ➡️ 플레이/일시정지/재개 ➡️ 종료
기존
PausePopup에는 무려 두 가지 문제가 있음중복 요청: 같은 버튼을 연타하면 연타한 만큼 요청 전송
교차 요청: 종료 버튼 처리 중에 일시정지 버튼을 누를 수 있음 (반대도 동일)
일시정지 처리 중에 종료를 누르는 건 생명주기상 문제가 되진 않지만 의도한 액션이 아니고
종료 중에 일시정지 누르는 건 문제가 됨
둘다 위에서 언급했던 '세션 상태에 맞지 않는 요청'이므로 에러 발생
📋 변경 및 추가 사항
PausePopup에서 특정 버튼 클릭 처리할 동안 버튼을 모두 비활성화해서, 중복 요청/교차 요청을 막았습니다💬 To. 리뷰어