254 lines
6.7 KiB
HTML
254 lines
6.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Streamingle Avatar Outfit Inspector</title>
|
|
<link rel="stylesheet" href="../utils/bootstrap.min.css">
|
|
<link rel="stylesheet" href="../utils/bootstrap-icons.css">
|
|
<style>
|
|
body {
|
|
background: #2d2d30;
|
|
color: #cccccc;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
font-size: 13px;
|
|
margin: 0;
|
|
padding: 16px;
|
|
min-height: 350px;
|
|
}
|
|
|
|
.status-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
padding: 10px;
|
|
background: #383838;
|
|
border-radius: 5px;
|
|
border-left: 3px solid #dc3545;
|
|
}
|
|
|
|
.status-indicator.connected {
|
|
border-left-color: #28a745;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
margin-right: 10px;
|
|
background: #dc3545;
|
|
}
|
|
|
|
.status-dot.connected {
|
|
background: #28a745;
|
|
}
|
|
|
|
.form-section {
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: #383838;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.form-section h5 {
|
|
margin: 0 0 10px 0;
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
color: #cccccc;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-control {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
background: #2d2d30;
|
|
border: 1px solid #555555;
|
|
border-radius: 3px;
|
|
color: #ffffff;
|
|
font-size: 12px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.form-control:focus {
|
|
border-color: #007acc;
|
|
outline: none;
|
|
}
|
|
|
|
.form-control:disabled {
|
|
background: #1e1e1e;
|
|
color: #666666;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 15px;
|
|
border: none;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: #007acc;
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: #005a9e;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.form-check {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.form-check-input {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.form-check-label {
|
|
color: #cccccc;
|
|
font-size: 12px;
|
|
margin: 0;
|
|
}
|
|
|
|
.outfit-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.current-status {
|
|
font-size: 11px;
|
|
color: #17a2b8;
|
|
font-style: italic;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.loading {
|
|
color: #ffc107;
|
|
font-style: italic;
|
|
}
|
|
|
|
.text-muted {
|
|
color: #666666 !important;
|
|
}
|
|
|
|
/* 디버그 로그 섹션 스타일 */
|
|
.log-section {
|
|
margin-top: 16px;
|
|
border-top: 1px solid #555555;
|
|
padding-top: 12px;
|
|
}
|
|
|
|
.log-toggle {
|
|
background: #555555;
|
|
color: #ffffff;
|
|
border: none;
|
|
border-radius: 3px;
|
|
padding: 6px 12px;
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
margin-bottom: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
.log-toggle:hover {
|
|
background: #666666;
|
|
}
|
|
|
|
.log-area {
|
|
background: #1a1a1a;
|
|
color: #00ff00;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 10px;
|
|
padding: 8px;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
white-space: pre-wrap;
|
|
display: none;
|
|
border: 1px solid #333333;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.log-area.show {
|
|
display: block;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- Connection Status -->
|
|
<div id="connection-status" class="status-indicator">
|
|
<div id="status-dot" class="status-dot"></div>
|
|
<div>
|
|
<div id="status-text">Unity 서버 연결 대기중...</div>
|
|
<div class="current-status" id="connection-detail">연결을 확인하고 있습니다</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Avatar Selection -->
|
|
<div class="form-section">
|
|
<h5>👤 아바타 선택</h5>
|
|
<div class="form-group">
|
|
<label for="avatar-select">사용할 아바타</label>
|
|
<select id="avatar-select" class="form-control" disabled>
|
|
<option value="">Unity 연결 대기중...</option>
|
|
</select>
|
|
<div class="current-status" id="current-avatar">현재: 선택되지 않음</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Outfit Selection -->
|
|
<div class="form-section">
|
|
<h5>👗 의상 선택</h5>
|
|
<div class="form-group">
|
|
<label for="outfit-select">변경할 의상</label>
|
|
<select id="outfit-select" class="form-control" disabled>
|
|
<option value="">아바타를 먼저 선택하세요</option>
|
|
</select>
|
|
</div>
|
|
<div class="current-status" id="current-outfit">현재 의상: 정보 없음</div>
|
|
</div>
|
|
|
|
<!-- Actions -->
|
|
<div class="form-section">
|
|
<h5>🔧 동작</h5>
|
|
<button id="refresh-button" class="btn btn-primary" disabled>
|
|
<i class="bi bi-arrow-clockwise"></i> 아바타 목록 새로고침
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 디버그 로그 섹션 -->
|
|
<div class="log-section">
|
|
<button class="log-toggle" onclick="toggleLog()">📋 디버그 로그 보기</button>
|
|
<div id="logArea" class="log-area"></div>
|
|
</div>
|
|
|
|
<script>
|
|
// 로그 토글 함수
|
|
function toggleLog() {
|
|
const logArea = document.getElementById('logArea');
|
|
logArea.classList.toggle('show');
|
|
}
|
|
</script>
|
|
<script src="../utils/common.js"></script>
|
|
<script src="index.js"></script>
|
|
</body>
|
|
</html> |