500 lines
27 KiB
HTML
500 lines
27 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="th">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>GaC-Srtool — Ultimate Star Rail Server & Build Manager</title>
|
|
<link rel="stylesheet" href="css/styles.css">
|
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🌌</text></svg>">
|
|
</head>
|
|
<body>
|
|
|
|
<!-- App Header -->
|
|
<header class="app-header">
|
|
<div class="brand">
|
|
<div class="brand-icon">✦</div>
|
|
<div>
|
|
<div class="brand-title">GaC-Srtool</div>
|
|
<div class="brand-subtitle">Star Rail FreeSR & Server Controller</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header-controls">
|
|
<!-- Server Mode Selector -->
|
|
<div class="server-mode-badge" title="โหมดการเชื่อมต่อเซิร์ฟเวอร์">
|
|
<span>🌐</span>
|
|
<select id="server-mode-select" class="server-mode-select">
|
|
<option value="gac" selected>⚡ GaC-hkrpg-go</option>
|
|
<option value="firefly">🔥 FireflyGo</option>
|
|
<option value="robin">🕊️ RobinSR</option>
|
|
</select>
|
|
</div>
|
|
|
|
<!-- Language Selector (13 Languages) -->
|
|
<select id="lang-select" class="form-select btn-sm" style="width: auto; padding: 0.4rem 0.75rem; background: var(--bg-secondary); cursor: pointer;" title="Language / ภาษา">
|
|
</select>
|
|
|
|
<!-- Connection Pill -->
|
|
<div class="connection-pill" id="btn-open-settings" title="คลิกเพื่อตั้งค่าการเชื่อมต่อ API">
|
|
<span class="status-dot" id="status-dot"></span>
|
|
<span id="connection-status-text">กำลังตรวจสอบ...</span>
|
|
</div>
|
|
|
|
<button class="btn btn-secondary btn-sm" id="btn-quick-ping" title="รีเฟรชการเชื่อมต่อ">
|
|
🔄 รีเฟรช
|
|
</button>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Navigation Bar -->
|
|
<nav class="nav-tabs">
|
|
<button class="tab-btn active" data-tab="tab-dashboard">📊 แดชบอร์ด & จัดทีม</button>
|
|
<button class="tab-btn" data-tab="tab-avatars">👥 ตัวละคร</button>
|
|
<button class="tab-btn" data-tab="tab-equipment">🗡️ กรวยแสง & รีลิกส์</button>
|
|
<button class="tab-btn" data-tab="tab-persistent" id="tab-btn-persistent">💾 จัดการเซฟ GaC</button>
|
|
<button class="tab-btn" data-tab="tab-exrank" id="tab-btn-exrank">⚡ สกิลพิเศษ Ex-Rank</button>
|
|
<button class="tab-btn" data-tab="tab-json">📝 จัดการไฟล์ JSON</button>
|
|
<button class="tab-btn" data-tab="tab-settings">⚙️ ตั้งค่า</button>
|
|
</nav>
|
|
|
|
<!-- Main Container -->
|
|
<main class="main-container">
|
|
|
|
<!-- 1. Dashboard Tab & Party Lineup -->
|
|
<section id="tab-dashboard" class="tab-content active">
|
|
<div class="grid-3" style="margin-bottom: 1.5rem;">
|
|
<div class="card stat-box">
|
|
<div class="stat-number" id="stat-avatars">0</div>
|
|
<div class="stat-label">ตัวละครที่ครอบครอง</div>
|
|
</div>
|
|
<div class="card stat-box">
|
|
<div class="stat-number" id="stat-lightcones">0</div>
|
|
<div class="stat-label">กรวยแสง</div>
|
|
</div>
|
|
<div class="card stat-box">
|
|
<div class="stat-number" id="stat-relics">0</div>
|
|
<div class="stat-label">รีลิกส์</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Party Lineup Visualizer -->
|
|
<div class="card" style="margin-bottom: 1.5rem;">
|
|
<div class="card-title">
|
|
<span>🎮 สมาชิกในทีมปัจจุบัน</span>
|
|
<span style="font-size: 0.8rem; color: var(--accent-cyan); font-weight: normal;">* คลิกที่ช่องเพื่อเปลี่ยนตัวละครในทีม</span>
|
|
</div>
|
|
<div class="lineup-grid" id="lineup-container">
|
|
<!-- Rendered by JS -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-2">
|
|
<!-- Server & Map Card -->
|
|
<div class="card">
|
|
<div class="card-title">
|
|
<span>📍 สถานะเซิร์ฟเวอร์ & พิกัดปัจจุบัน</span>
|
|
<span class="btn-sm btn-secondary" id="badge-version">API Live</span>
|
|
</div>
|
|
<div style="display: flex; flex-direction: column; gap: 0.75rem;">
|
|
<div>
|
|
<span class="form-label">โหมดเซิร์ฟเวอร์ที่ใช้งาน</span>
|
|
<strong id="lbl-active-mode" style="color: var(--accent-cyan);">GaC-hkrpg-go</strong>
|
|
</div>
|
|
<div>
|
|
<span class="form-label">API Gateway Endpoint</span>
|
|
<code id="lbl-api-url" style="color: var(--accent-cyan); font-size: 0.9rem;">-</code>
|
|
</div>
|
|
<div style="display: flex; gap: 1rem;">
|
|
<div>
|
|
<span class="form-label">Plane ID</span>
|
|
<span id="lbl-plane-id" style="font-weight: bold;">-</span>
|
|
</div>
|
|
<div>
|
|
<span class="form-label">Floor ID</span>
|
|
<span id="lbl-floor-id" style="font-weight: bold;">-</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<span class="form-label">พิกัดตัวละคร (X, Y, Z)</span>
|
|
<span id="lbl-coordinates" style="color: var(--text-muted); font-size: 0.85rem;">-</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Quick Actions Card -->
|
|
<div class="card">
|
|
<div class="card-title">⚡ ดำเนินการด่วน</div>
|
|
<p class="card-subtitle">ส่งคำสั่งไปยังเซิร์ฟเวอร์ทันที</p>
|
|
<div style="display: flex; flex-direction: column; gap: 0.75rem;">
|
|
<button class="btn btn-gold" id="btn-quick-max-all">
|
|
⭐ ปรับเลเวล 80 & ปลด E6 ตัวละครทั้งหมด
|
|
</button>
|
|
<button class="btn btn-secondary" id="btn-quick-sync-persistent">
|
|
💾 ซิงค์ข้อมูล Persistent ล่าสุด
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 2. Avatars Tab (Build & Eidolon Editor) -->
|
|
<section id="tab-avatars" class="tab-content">
|
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 1rem;">
|
|
<div style="display: flex; gap: 0.75rem; flex: 1; max-width: 520px;">
|
|
<input type="text" id="avatar-search" class="form-input" placeholder="🔍 ค้นหาชื่อหรือ ID ตัวละคร...">
|
|
<select id="avatar-filter-rarity" class="form-select" style="max-width: 140px;">
|
|
<option value="all">ทุกระดับดาว</option>
|
|
<option value="5">5 ดาว</option>
|
|
<option value="4">4 ดาว</option>
|
|
</select>
|
|
<select id="avatar-filter-element" class="form-select" style="max-width: 140px;">
|
|
<option value="all">ทุกธาตุ</option>
|
|
<option value="Fire">ไฟ</option>
|
|
<option value="Ice">น้ำแข็ง</option>
|
|
<option value="Lightning">สายฟ้า</option>
|
|
<option value="Wind">ลม</option>
|
|
<option value="Physical">กายภาพ</option>
|
|
<option value="Quantum">ควอนตัม</option>
|
|
<option value="Imaginary">จินตภาพ</option>
|
|
</select>
|
|
</div>
|
|
<div style="display: flex; gap: 0.5rem;">
|
|
<button class="btn btn-gold" id="btn-max-all-avatars">⭐ ปรับ Max E6 ทุกตัว</button>
|
|
<button class="btn btn-secondary" id="btn-reload-avatars">🔄 รีโหลด</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="avatars-grid" class="grid-4">
|
|
<div style="color: var(--text-muted); grid-column: 1/-1; text-align: center; padding: 2rem;">
|
|
กำลังดึงข้อมูลตัวละคร...
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 3. Equipment Tab (Lightcones & Relics) -->
|
|
<section id="tab-equipment" class="tab-content">
|
|
<div class="grid-2">
|
|
<!-- Lightcones Card -->
|
|
<div class="card">
|
|
<div class="card-title">
|
|
<span>🗡️ กรวยแสงในคลัง</span>
|
|
<span class="btn-sm btn-secondary" id="badge-total-lc">0 ชิ้น</span>
|
|
</div>
|
|
<p class="card-subtitle">รายการกรวยแสงทั้งหมดจาก freesr-data.json</p>
|
|
<div id="lightcones-list" style="max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem;">
|
|
<div style="color: var(--text-muted); text-align: center; padding: 1.5rem;">กำลังโหลดข้อมูลกรวยแสง...</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Relics Card -->
|
|
<div class="card">
|
|
<div class="card-title">
|
|
<span>🛡️ รีลิกส์ในคลัง</span>
|
|
<span class="btn-sm btn-secondary" id="badge-total-relics">0 ชิ้น</span>
|
|
</div>
|
|
<p class="card-subtitle">รายการรีลิกส์ทั้งหมดจาก freesr-data.json</p>
|
|
<div id="relics-list" style="max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem;">
|
|
<div style="color: var(--text-muted); text-align: center; padding: 1.5rem;">กำลังโหลดข้อมูลรีลิกส์...</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 4. Persistent Save Settings (Exclusive to GaC-hkrpg-go) -->
|
|
<section id="tab-persistent" class="tab-content">
|
|
<div class="card" style="margin-bottom: 1.5rem;">
|
|
<div class="card-title">
|
|
<span>💾 จัดการไฟล์เซฟ GaC</span>
|
|
<span class="btn-sm btn-success">เซิร์ฟเวอร์ของเราเอง</span>
|
|
</div>
|
|
<p class="card-subtitle">
|
|
ไฟล์ <code>persistent</code> เก็บการตั้งค่าสถานะผู้เล่นเฉพาะของเซิร์ฟเวอร์ GaC เช่น เพศ/ธาตุตัวเอก, สเตตัส March 7th, สวิตช์ฟังก์ชัน Global ต่างๆ
|
|
</p>
|
|
</div>
|
|
|
|
<div class="grid-2">
|
|
<!-- Main Character & March Path -->
|
|
<div class="card">
|
|
<div class="card-title">👤 ผู้บุกเบิก & March 7th</div>
|
|
<form id="form-persistent-chars">
|
|
<div class="form-group">
|
|
<label class="form-label">เพศ & ธาตุของตัวเอก</label>
|
|
<select id="persistent-mc-select" class="form-select">
|
|
<option value="MalePhysical">ผู้บุกเบิกชาย - กายภาพ</option>
|
|
<option value="FemalePhysical">ผู้บุกเบิกหญิง - กายภาพ</option>
|
|
<option value="MalePreservation">ผู้บุกเบิกชาย - ไฟ</option>
|
|
<option value="FemalePreservation">ผู้บุกเบิกหญิง - ไฟ</option>
|
|
<option value="MaleHarmony">ผู้บุกเบิกชาย - ประสาน</option>
|
|
<option value="FemaleHarmony">ผู้บุกเบิกหญิง - ประสาน</option>
|
|
<option value="MaleRemembrance">ผู้บุกเบิกชาย - ความทรงจำ</option>
|
|
<option value="FemaleRemembrance">ผู้บุกเบิกหญิง - ความทรงจำ</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="form-label">สายของ March 7th</label>
|
|
<select id="persistent-march-select" class="form-select">
|
|
<option value="MarchHunt">March 7th - ล่าสังหาร</option>
|
|
<option value="MarchPreservation">March 7th - อนุรักษ์</option>
|
|
</select>
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-primary" style="width: 100%;">
|
|
💾 บันทึกการตั้งค่าตัวละคร
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- Global Features & Toggles -->
|
|
<div class="card">
|
|
<div class="card-title">⚙️ สวิตช์ระบบพิเศษของ GaC</div>
|
|
<div style="display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem;">
|
|
<div class="ex-switch-card">
|
|
<div>
|
|
<div style="font-weight: 700;">Silver Wolf Global Feature</div>
|
|
<div style="font-size: 0.8rem; color: var(--text-muted);">เปิดใช้งานฟังก์ชันพิเศษ SW ทั่วทั้งเซิร์ฟเวอร์</div>
|
|
</div>
|
|
<label class="switch">
|
|
<input type="checkbox" id="toggle-sw-global">
|
|
<span class="slider"></span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="ex-switch-card">
|
|
<div>
|
|
<div style="font-weight: 700;">Castorice Global Feature</div>
|
|
<div style="font-size: 0.8rem; color: var(--text-muted);">เปิดใช้งานฟังก์ชันพิเศษ Castorice ทั่วทั้งเซิร์ฟเวอร์</div>
|
|
</div>
|
|
<label class="switch">
|
|
<input type="checkbox" id="toggle-castorice-global">
|
|
<span class="slider"></span>
|
|
</label>
|
|
</div>
|
|
|
|
<button class="btn btn-success" id="btn-save-persistent-toggles">
|
|
💾 บันทึกสวิตช์ Global
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 5. Ex-Rank Tab -->
|
|
<section id="tab-exrank" class="tab-content">
|
|
<div class="card" style="margin-bottom: 1.5rem;">
|
|
<div class="card-title">
|
|
<span>⚡ ระบบปลดล็อค Ex-Rank Skill</span>
|
|
<div style="display: flex; gap: 0.5rem;">
|
|
<button class="btn btn-success btn-sm" id="btn-exrank-enable-all">เปิด Ex-Rank ทั้งหมด</button>
|
|
<button class="btn btn-secondary btn-sm" id="btn-exrank-disable-all">ปิด Ex-Rank ทั้งหมด</button>
|
|
</div>
|
|
</div>
|
|
<p class="card-subtitle">
|
|
เปิดใช้งานพรสวรรค์และกลไกพิเศษ Ex-Rank สำหรับตัวละครเฉพาะใน FreeSR (เช่น Jing Yuan โดน CC ไม่หยุดชะงัก, Dan Heng IL, Acheron)
|
|
</p>
|
|
</div>
|
|
|
|
<div id="exrank-list" style="display: flex; flex-direction: column; gap: 0.75rem;">
|
|
<!-- Rendered by JS -->
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 6. JSON Management Tab -->
|
|
<section id="tab-json" class="tab-content">
|
|
<div class="card">
|
|
<div class="card-title" style="flex-wrap: wrap; gap: 0.75rem;">
|
|
<div style="display: flex; gap: 0.5rem;">
|
|
<button class="btn btn-sm btn-primary active" id="btn-select-freesr">📄 freesr-data.json</button>
|
|
<button class="btn btn-sm btn-secondary" id="btn-select-persistent">💾 ไฟล์เซฟ persistent</button>
|
|
</div>
|
|
<div style="display: flex; gap: 0.5rem;">
|
|
<button class="btn btn-sm btn-secondary" id="btn-json-beautify">✨ จัดรูปแบบ JSON</button>
|
|
<button class="btn btn-sm btn-secondary" id="btn-json-download">📥 ดาวน์โหลด Backup</button>
|
|
<label class="btn btn-sm btn-secondary" style="cursor: pointer; margin: 0;">
|
|
<span>📤 อัปโหลดไฟล์</span> <input type="file" id="json-file-input" accept=".json,text/plain" style="display: none;">
|
|
</label>
|
|
<button class="btn btn-sm btn-success" id="btn-json-save">💾 บันทึกไปยังเซิร์ฟเวอร์</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="json-editor-wrapper">
|
|
<textarea id="json-editor" class="json-textarea" spellcheck="false" placeholder="..."></textarea>
|
|
<div style="display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted);">
|
|
<span id="json-status-info">พร้อมใช้งาน</span>
|
|
<span>Tip: สามารถแก้ไขค่าดิบแล้วกด 'บันทึกไปยังเซิร์ฟเวอร์' ได้ทันที</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- 8. Settings -->
|
|
<section id="tab-settings" class="tab-content">
|
|
<div style="max-width: 620px; margin: 0 auto;">
|
|
<!-- Endpoint config -->
|
|
<div class="card">
|
|
<div class="card-title">⚙️ ตั้งค่าการเชื่อมต่อ API Gateway</div>
|
|
<p class="card-subtitle">ปรับเปลี่ยนพอร์ตหรือ IP ได้ตามเซิร์ฟเวอร์ที่คุณใช้</p>
|
|
|
|
<form id="form-settings">
|
|
<div class="form-group">
|
|
<label class="form-label">โหมดเซิร์ฟเวอร์</label>
|
|
<select id="setting-server-mode" class="form-select">
|
|
<option value="gac">⚡ GaC-hkrpg-go</option>
|
|
<option value="firefly">🔥 FireflyGo</option>
|
|
<option value="robin">🕊️ RobinSR</option>
|
|
</select>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label">REST API Gateway URL</label>
|
|
<input type="text" id="setting-api-url" class="form-input" placeholder="http://localhost:21000">
|
|
<small style="color: var(--text-muted); display: block; margin-top: 0.35rem;">
|
|
* พอร์ตเริ่มต้น 21000 สำหรับ SDK server
|
|
</small>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label">ความถี่ในการตรวจสอบสถานะ (วินาที)</label>
|
|
<input type="number" id="setting-ping-interval" class="form-input" min="3" max="60" value="10">
|
|
</div>
|
|
<div style="display: flex; gap: 0.75rem;">
|
|
<button type="submit" class="btn btn-success" style="flex: 1;">💾 บันทึกการตั้งค่า</button>
|
|
<button type="button" class="btn btn-secondary" id="btn-reset-settings">คืนค่าเริ่มต้น</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</main>
|
|
|
|
<!-- Character Detail / Build Modal -->
|
|
<div class="modal-overlay" id="modal-avatar-detail">
|
|
<div class="modal-content" style="max-width: 640px;">
|
|
<div class="modal-header">
|
|
<h3 id="modal-char-title" style="font-weight: 800; font-size: 1.15rem; color: var(--text-highlight);">
|
|
ปรับแต่งตัวละคร
|
|
</h3>
|
|
<button class="btn btn-sm btn-secondary" id="btn-close-avatar-modal">✕</button>
|
|
</div>
|
|
|
|
<div style="display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap;">
|
|
<div class="avatar-image-container" style="width: 76px; height: 76px;">
|
|
<img id="modal-char-img" class="avatar-img" src="" alt="">
|
|
</div>
|
|
<div style="flex: 1; min-width: 180px;">
|
|
<div id="modal-char-name" style="font-size: 1.25rem; font-weight: 800;"></div>
|
|
<div id="modal-char-meta" style="font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap;"></div>
|
|
</div>
|
|
<button type="button" class="btn btn-gold btn-sm" id="btn-modal-max-all-char">
|
|
⭐ ปรับเต็มทั้งหมด
|
|
</button>
|
|
</div>
|
|
|
|
<div class="grid-2" style="gap: 1rem; margin-bottom: 1rem;">
|
|
<div class="form-group">
|
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem;">
|
|
<label class="form-label" style="margin: 0;">ระดับเลเวล (1-80)</label>
|
|
<div style="display: flex; gap: 0.25rem;">
|
|
<button type="button" class="btn btn-sm btn-secondary btn-lvl-preset" data-lvl="1" style="padding: 0.15rem 0.45rem; font-size: 0.75rem;">1</button>
|
|
<button type="button" class="btn btn-sm btn-secondary btn-lvl-preset" data-lvl="20" style="padding: 0.15rem 0.45rem; font-size: 0.75rem;">20</button>
|
|
<button type="button" class="btn btn-sm btn-secondary btn-lvl-preset" data-lvl="60" style="padding: 0.15rem 0.45rem; font-size: 0.75rem;">60</button>
|
|
<button type="button" class="btn btn-sm btn-secondary btn-lvl-preset" data-lvl="70" style="padding: 0.15rem 0.45rem; font-size: 0.75rem;">70</button>
|
|
<button type="button" class="btn btn-sm btn-primary btn-lvl-preset" data-lvl="80" style="padding: 0.15rem 0.45rem; font-size: 0.75rem;">80</button>
|
|
</div>
|
|
</div>
|
|
<input type="number" id="modal-char-level" class="form-input" min="1" max="80" value="80">
|
|
</div>
|
|
<div class="form-group">
|
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem;">
|
|
<label class="form-label" style="margin: 0;">การเลื่อนขั้น (0-6)</label>
|
|
<div style="display: flex; gap: 0.25rem;">
|
|
<button type="button" class="btn btn-sm btn-secondary btn-prom-preset" data-prom="0" style="padding: 0.15rem 0.45rem; font-size: 0.75rem;">0</button>
|
|
<button type="button" class="btn btn-sm btn-secondary btn-prom-preset" data-prom="3" style="padding: 0.15rem 0.45rem; font-size: 0.75rem;">3</button>
|
|
<button type="button" class="btn btn-sm btn-primary btn-prom-preset" data-prom="6" style="padding: 0.15rem 0.45rem; font-size: 0.75rem;">6</button>
|
|
</div>
|
|
</div>
|
|
<input type="number" id="modal-char-promotion" class="form-input" min="0" max="6" value="6">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem;">
|
|
<label class="form-label" style="margin: 0;">ระดับ Eidolon</label>
|
|
<div style="display: flex; gap: 0.4rem;">
|
|
<button type="button" class="btn btn-sm btn-secondary" id="btn-modal-quick-e0" style="padding: 0.2rem 0.6rem; font-size: 0.75rem;">
|
|
รีเซ็ต E0
|
|
</button>
|
|
<button type="button" class="btn btn-sm btn-gold" id="btn-modal-quick-e6" style="padding: 0.2rem 0.6rem; font-size: 0.75rem;">
|
|
⭐ ปลดเต็ม E6
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="eidolon-buttons" id="modal-char-eidolon-btns" style="margin-top: 0.5rem; gap: 0.5rem;">
|
|
<!-- Injected pips -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group" style="margin-top: 1rem;">
|
|
<label class="form-label">สกิลและร่องรอย</label>
|
|
<div style="background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.75rem; display: flex; justify-content: space-between; align-items: center;">
|
|
<div style="font-size: 0.85rem; color: var(--text-muted);">
|
|
โจมตีปกติเลเวล 6, สกิลต่อสู้เลเวล 10, ท่าไม้ตายเลเวล 10, พรสวรรค์เลเวล 10 และโหนดเสริมทั้งหมด
|
|
</div>
|
|
<button type="button" class="btn btn-sm btn-gold" id="btn-modal-max-skills">
|
|
⭐ อัพสกิล 10/10
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="display: flex; gap: 0.75rem; margin-top: 1.5rem; justify-content: flex-end; flex-wrap: wrap;">
|
|
<button type="button" class="btn btn-secondary" id="btn-modal-cancel-avatar">
|
|
✕ ปิด
|
|
</button>
|
|
<button type="button" class="btn btn-success" id="btn-modal-save-avatar">
|
|
💾 บันทึกตัวละคร
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Party Member Picker Modal -->
|
|
<div class="modal-overlay" id="modal-lineup-picker">
|
|
<div class="modal-content" style="max-width: 720px; max-height: 85vh; display: flex; flex-direction: column;">
|
|
<div class="modal-header">
|
|
<h3 id="modal-picker-title" style="font-weight: 800;">เลือกตัวละครเข้าทีม</h3>
|
|
<button class="btn btn-sm btn-secondary" id="btn-close-picker-modal">✕</button>
|
|
</div>
|
|
<input type="text" id="picker-search" class="form-input" placeholder="🔍 ค้นหาตัวละครเพื่อลงทีม..." style="margin-bottom: 1rem;">
|
|
<div id="picker-avatars-grid" class="grid-4" style="overflow-y: auto; flex: 1; padding-right: 0.5rem;">
|
|
<!-- Injected by JS -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Settings Modal -->
|
|
<div class="modal-overlay" id="modal-settings">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h3 style="font-weight: 700;">⚙️ ตั้งค่าการเชื่อมต่อ API Server</h3>
|
|
<button class="btn btn-sm btn-secondary" id="btn-close-modal">✕</button>
|
|
</div>
|
|
<div>
|
|
<div class="form-group">
|
|
<label class="form-label">Server REST API URL</label>
|
|
<input type="text" id="modal-api-url" class="form-input">
|
|
</div>
|
|
<div style="display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem;">
|
|
<button class="btn btn-secondary" id="btn-modal-cancel">ยกเลิก</button>
|
|
<button class="btn btn-primary" id="btn-modal-save">บันทึก & ทดสอบ</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Toast Notification Container -->
|
|
<div class="toast-container" id="toast-container"></div>
|
|
|
|
<!-- Script Modules -->
|
|
<script type="module" src="js/app.js"></script>
|
|
</body>
|
|
</html>
|