사용자 정보 표시 관리 팝업 완료
This commit is contained in:
@@ -123,7 +123,7 @@ namespace UVC.UI.List.Draggable
|
||||
// 구독자들에게 드래그 종료를 알립니다
|
||||
OnDragEnded?.Invoke(eventData);
|
||||
|
||||
Debug.Log($"[DragBehavior] 드래그 종료 - 아이템: {dragTarget.name}");
|
||||
//Debug.Log($"[DragBehavior] 드래그 종료 - 아이템: {dragTarget.name}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -135,7 +135,7 @@ namespace UVC.UI.List.Draggable
|
||||
originalIndex = dragTarget.GetSiblingIndex();
|
||||
originalPosition = dragTarget.position;
|
||||
|
||||
Debug.Log($"[DragBehavior] 위치 정보 업데이트 - 새 인덱스: {originalIndex}");
|
||||
//Debug.Log($"[DragBehavior] 위치 정보 업데이트 - 새 인덱스: {originalIndex}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace UVC.UI.List.Draggable
|
||||
if (reorderHandler == null)
|
||||
{
|
||||
reorderHandler = content.gameObject.AddComponent<ListReorderHandler>();
|
||||
Debug.Log("[DraggableList] ListReorderHandler를 자동으로 추가했습니다.");
|
||||
//Debug.Log("[DraggableList] ListReorderHandler를 자동으로 추가했습니다.");
|
||||
}
|
||||
|
||||
// ScrollRectHandler 추가 또는 가져오기
|
||||
@@ -152,7 +152,7 @@ namespace UVC.UI.List.Draggable
|
||||
if (scrollHandler == null)
|
||||
{
|
||||
scrollHandler = scrollRect.gameObject.AddComponent<ScrollRectHandler>();
|
||||
Debug.Log("[DraggableList] ScrollRectHandler를 자동으로 추가했습니다.");
|
||||
//Debug.Log("[DraggableList] ScrollRectHandler를 자동으로 추가했습니다.");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -249,6 +249,7 @@ namespace UVC.UI.List.Draggable
|
||||
var item = dataList[oldIndex];
|
||||
dataList.RemoveAt(oldIndex);
|
||||
dataList.Insert(newIndex, item);
|
||||
Debug.Log($"[DraggableList] 순서 변경: {oldIndex} -> {newIndex}");
|
||||
|
||||
// 이벤트 발생
|
||||
OnOrderChanged?.Invoke((item as ListItemData)!, oldIndex, newIndex);
|
||||
@@ -259,7 +260,6 @@ namespace UVC.UI.List.Draggable
|
||||
// SaveOrder();
|
||||
//}
|
||||
|
||||
Debug.Log($"[DraggableList] 순서 변경: {oldIndex} -> {newIndex}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ namespace UVC.UI.List.Draggable
|
||||
private void HandleItemClick(object data)
|
||||
{
|
||||
OnItemClicked?.Invoke((data as ListItemData)!);
|
||||
Debug.Log($"[DraggableList] 아이템 클릭: {(data as ListItemData)?.DisplayName}");
|
||||
//Debug.Log($"[DraggableList] 아이템 클릭: {(data as ListItemData)?.DisplayName}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace UVC.UI.List.Draggable
|
||||
/// </summary>
|
||||
private void HandleDragEnd(PointerEventData eventData)
|
||||
{
|
||||
Debug.Log($"[ListItemController] 드래그 종료 처리 - {gameObject.name}");
|
||||
//Debug.Log($"[ListItemController] 드래그 종료 처리 - {gameObject.name}");
|
||||
|
||||
// 1. 아이템을 원래 투명도로 복원합니다
|
||||
if (canvasGroup != null)
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace UVC.UI.List.Draggable
|
||||
boundData = data;
|
||||
UpdateUI();
|
||||
|
||||
Debug.Log($"[ListItemView] 데이터 바인딩 완료 - {gameObject.name}");
|
||||
//Debug.Log($"[ListItemView] 데이터 바인딩 완료 - {gameObject.name}");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace UVC.UI.List.Draggable
|
||||
|
||||
// 마우스 위치에서 가장 가까운 인덱스를 계산합니다
|
||||
int targetIndex = CalculateTargetIndex(position);
|
||||
Debug.Log($"[ListReorderHandler] 드래그 위치 업데이트 - 타겟 인덱스: {targetIndex}");
|
||||
//Debug.Log($"[ListReorderHandler] 드래그 위치 업데이트 - 타겟 인덱스: {targetIndex}");
|
||||
if (targetIndex >= 0)
|
||||
{
|
||||
// 현재 플레이스홀더의 인덱스와 다를 때만 이동
|
||||
@@ -116,7 +116,7 @@ namespace UVC.UI.List.Draggable
|
||||
if (item.OriginalIndex != newIndex)
|
||||
{
|
||||
OnOrderChanged?.Invoke(item.OriginalIndex, newIndex);
|
||||
Debug.Log($"[ListReorderHandler] 순서 변경됨: {item.OriginalIndex} -> {newIndex}");
|
||||
//Debug.Log($"[ListReorderHandler] 순서 변경됨: {item.OriginalIndex} -> {newIndex}");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace UVC.UI.List.Draggable
|
||||
if (autoScrollCoroutine == null)
|
||||
{
|
||||
autoScrollCoroutine = StartCoroutine(AutoScrollRoutine());
|
||||
Debug.Log("[ScrollRectHandler] 자동 스크롤 시작");
|
||||
//Debug.Log("[ScrollRectHandler] 자동 스크롤 시작");
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -86,7 +86,7 @@ namespace UVC.UI.List.Draggable
|
||||
{
|
||||
StopCoroutine(autoScrollCoroutine);
|
||||
autoScrollCoroutine = null;
|
||||
Debug.Log("[ScrollRectHandler] 자동 스크롤 중지");
|
||||
//Debug.Log("[ScrollRectHandler] 자동 스크롤 중지");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,7 +123,7 @@ namespace UVC.UI.List.Draggable
|
||||
float normalizedDistance = (topY - mouseY) / scrollZoneHeight;
|
||||
scrollDelta = scrollSpeed * (1f - normalizedDistance) * Time.deltaTime;
|
||||
|
||||
Debug.Log($"[ScrollRectHandler] 위로 스크롤 중... 속도: {scrollDelta}");
|
||||
//Debug.Log($"[ScrollRectHandler] 위로 스크롤 중... 속도: {scrollDelta}");
|
||||
}
|
||||
// 마우스가 아래쪽 가장자리 근처에 있으면 아래로 스크롤
|
||||
else if (mouseY < bottomY + scrollZoneHeight && mouseY >= bottomY)
|
||||
@@ -132,7 +132,7 @@ namespace UVC.UI.List.Draggable
|
||||
float normalizedDistance = (mouseY - bottomY) / scrollZoneHeight;
|
||||
scrollDelta = -scrollSpeed * (1f - normalizedDistance) * Time.deltaTime;
|
||||
|
||||
Debug.Log($"[ScrollRectHandler] 아래로 스크롤 중... 속도: {scrollDelta}");
|
||||
//Debug.Log($"[ScrollRectHandler] 아래로 스크롤 중... 속도: {scrollDelta}");
|
||||
}
|
||||
|
||||
// 스크롤 적용
|
||||
|
||||
@@ -136,7 +136,6 @@ namespace UVC.UI.Loading
|
||||
{
|
||||
// 이미 애니메이션이 진행 중이고, 목표가 '나타나기(target=1)'라면 중복 실행을 방지합니다.
|
||||
if (animatting && target == 1) return;
|
||||
|
||||
target = 1; // 목표 알파 값을 1(불투명)로 설정
|
||||
animatting = true; // 애니메이션 시작 상태로 변경
|
||||
StopCoroutine("Animate"); // 이전에 실행 중이던 Animate 코루틴이 있다면 중지
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace UVC.UI.Modal
|
||||
/// <summary>
|
||||
/// 📜 모달 창에 어떤 내용을 보여줄지, 어떻게 행동할지 정하는 '레시피' 또는 '주문서' 같은 친구예요.
|
||||
/// 이 클래스의 객체를 만들어서 Modal.Open()에 전달하면, 여기에 적힌 대로 모달 창이 만들어져요.
|
||||
/// 커스텀 모달 창을 만들 때는 ModalView를 상속받아서 Prefab으로 만들고 ModalContent 생성자에 Prefab 경로를 전달해야 한다.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
/// <code>
|
||||
|
||||
Reference in New Issue
Block a user