187 lines
5.5 KiB
HTML
187 lines
5.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Streamingle Item Inspector</title>
|
|
<style>
|
|
body {
|
|
background: #222;
|
|
color: #fff;
|
|
font-family: Arial, sans-serif;
|
|
font-size: 13px;
|
|
margin: 0;
|
|
padding: 16px;
|
|
min-height: 300px;
|
|
}
|
|
.status {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
padding: 8px;
|
|
background: #333;
|
|
border-radius: 4px;
|
|
}
|
|
.dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
.dot.green { background: #28a745; }
|
|
.dot.red { background: #dc3545; }
|
|
.section {
|
|
margin-bottom: 16px;
|
|
padding: 8px;
|
|
background: #333;
|
|
border-radius: 4px;
|
|
}
|
|
label {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
font-weight: bold;
|
|
color: #ddd;
|
|
}
|
|
select, input[type="checkbox"] {
|
|
margin-right: 8px;
|
|
background: #444;
|
|
color: #fff;
|
|
border: 1px solid #555;
|
|
border-radius: 3px;
|
|
padding: 4px;
|
|
}
|
|
select:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
.current {
|
|
margin-top: 8px;
|
|
color: #17a2b8;
|
|
font-weight: bold;
|
|
}
|
|
button {
|
|
padding: 6px 12px;
|
|
background: #007bff;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
}
|
|
button:hover {
|
|
background: #0056b3;
|
|
}
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
background: #666;
|
|
}
|
|
.connected { color: #28a745; font-weight: bold; }
|
|
.disconnected { color: #dc3545; font-weight: bold; }
|
|
|
|
/* 로그 영역 스타일 */
|
|
.log-section {
|
|
margin-top: 16px;
|
|
border-top: 1px solid #444;
|
|
padding-top: 12px;
|
|
}
|
|
.log-toggle {
|
|
background: #555;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 4px 8px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.log-area {
|
|
background: #111;
|
|
color: #0f0;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 11px;
|
|
padding: 8px;
|
|
border-radius: 3px;
|
|
height: 120px;
|
|
overflow-y: auto;
|
|
display: none;
|
|
border: 1px solid #333;
|
|
}
|
|
.log-area.show {
|
|
display: block;
|
|
}
|
|
|
|
/* 로딩 상태 */
|
|
.loading {
|
|
color: #ffc107;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* 아이템 목록 스타일 */
|
|
.item-list {
|
|
max-height: 150px;
|
|
overflow-y: auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- 연결 상태 -->
|
|
<div class="status">
|
|
<div id="statusDot" class="dot red"></div>
|
|
<span id="connection-status" class="disconnected">Unity 연결 안됨</span>
|
|
</div>
|
|
|
|
<!-- 아이템 그룹 선택 섹션 -->
|
|
<div class="section">
|
|
<label for="item-select">아이템 그룹 선택</label>
|
|
<div class="item-list">
|
|
<select id="item-select" disabled>
|
|
<option value="">아이템 그룹 목록 로딩 중...</option>
|
|
</select>
|
|
</div>
|
|
<div class="current" id="current-item">현재 아이템 그룹: -</div>
|
|
</div>
|
|
|
|
<!-- 설정 섹션 -->
|
|
<div class="section">
|
|
<input type="checkbox" id="autoSwitch" checked>
|
|
<label for="autoSwitch" style="display:inline; font-weight:normal;">자동 전환</label>
|
|
</div>
|
|
|
|
<!-- 액션 섹션 -->
|
|
<div class="section">
|
|
<button id="refresh-button" disabled>아이템 그룹 목록 새로고침</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');
|
|
}
|
|
|
|
// 페이지 로드 시 초기화
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
console.log('📋 Item Property Inspector HTML 로드됨');
|
|
|
|
// 초기 상태 설정
|
|
const statusDot = document.getElementById('statusDot');
|
|
const connectionStatus = document.getElementById('connection-status');
|
|
const itemSelect = document.getElementById('item-select');
|
|
const refreshButton = document.getElementById('refresh-button');
|
|
|
|
if (statusDot) console.log('✅ statusDot 요소 찾음');
|
|
if (connectionStatus) console.log('✅ connection-status 요소 찾음');
|
|
if (itemSelect) console.log('✅ item-select 요소 찾음');
|
|
if (refreshButton) console.log('✅ refresh-button 요소 찾음');
|
|
});
|
|
</script>
|
|
<script src="index.js"></script>
|
|
</body>
|
|
</html> |