-
Notifications
You must be signed in to change notification settings - Fork 4
/
studiosandbox.html
110 lines (94 loc) · 5.76 KB
/
studiosandbox.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title id="title">Studio Sandbox - Gacha Design Studio</title>
<link rel="icon" type="image/png" href="assets/icon.png">
<link rel="stylesheet" type="text/css" href="css/poser/studiopose.css">
</head>
<body>
<!-- Panel atas -->
<div class="panel1 container" id="panel1">
</div>
<!-- Panel bawah -->
<div class="panel2 input-container" id="panel2">
<!-- Tombol arah -->
<label for="sensitivitySlider">Sensitivitas:</label>
<input type="range" id="sensitivitySlider" min="0.1" max="100" step="0.1" value="0.1" oninput="handleSensitivity(this.value)">
<input type="text" id="sensitivityInput" readonly>
<button class="button" id="move-up" onmousedown="startMove('up')" ontouchstart="startMove('up')">🔼</button>
<button class="button" id="move-down" onmousedown="startMove('down')" ontouchstart="startMove('down')">🔽</button>
<button class="button" id="move-left" onmousedown="startMove('left')" ontouchstart="startMove('left')">◀️️</button>
<button class="button" id="move-right" onmousedown="startMove('right')" ontouchstart="startMove('right')">▶️️</button>
<input type="file" id="imageUpload1" accept="image/*">
<button onclick="setBackground('panel1')">Setel background panel atas</button>
<input type="file" id="imageUpload2" accept="image/*">
<button onclick="setBackground('panel2')">Setel background panel bawah</button>
<label for="characterName">Nama Karakter:</label>
<input type="text" id="characterName" oninput="handleCharacterName(this.value)">
<label for="opacitySlider1">Opasitas Panel1:</label>
<input type="range" id="opacitySlider1" class="opacitySlider" min="0" max="100" value="100" oninput="setOpacity('panel1')">
<input type="text" id="opacityInput1" class="opacityInput" readonly>
<label for="opacitySlider2">Opasitas Panel2:</label>
<input type="range" id="opacitySlider2" class="opacitySlider" min="0" max="100" value="100" oninput="setOpacity('panel2')">
<input type="text" id="opacityInput2" class="opacityInput" readonly>
<label for="layerName">Lapisan:</label>
<input type="text" id="layerName" oninput="handleLayerName(this.value)">
<label for="xCoord">Posisi X:</label>
<input type="text" id="xCoord" oninput="handleXCoord(this.value)">
<label for="yCoord">Posisi Y:</label>
<input type="text" id="yCoord" oninput="handleYCoord(this.value)">
<label for="width">Lebar:</label>
<input type="text" id="width" placeholder="Lebar">
<label for="height">Tinggi:</label>
<input type="text" id="height" placeholder="Tinggi">
<label for="zoom">Zoom:</label>
<input type="text" id="zoom" oninput="handleZoom(this.value)">
<label for="flipHorizontal">Flip Horizontal:</label>
<input type="checkbox" id="flipHorizontal" onchange="handleFlipHorizontal(this.checked)">
<label for="flipVertical">Flip Vertikal:</label>
<input type="checkbox" id="flipVertical" onchange="handleFlipVertical(this.checked)">
<br>
<label for="rotationControl">Rotasi:</label>
<input type="range" id="rotationControl" min="0" max="360" value="0" oninput="handleRotation(this.value)">
<div id="rotationIndicator">0</div>
<button onclick="moveLayerUp()">Naikkan</button>
<button onclick="moveLayerDown()">Turunkan</button>
<button onclick="exportAsSVG()">Ekspor sebagai SVG</button>
<input type="text" id="svgFileName" placeholder="Nama file SVG">
<button onclick="exportAsHTML()">Ekspor sebagai HTML</button>
<input type="text" id="htmlFileName" placeholder="Nama file HTML">
<br>
<button id="toggleSelectorBtn">Nyalakan Seleksi</button>
<button class="button" onclick="groupLayers()">Grupkan</button>
<button class="button" onclick="ungroupLayers()">Pisahkan Grup</button>
<button class="button" onclick="deleteSelectedLayer()">Hapus Lapisan</button>
<input type="color" id="colorPicker" value="#000000" onchange="changeSVGColor(this.value)">
<input type="file" id="svgUpload" accept=".svg" style="display:none" onchange="addSVG(event)">
<button onclick="document.getElementById('svgUpload').click()">Tambahkan SVG</button>
<input type="file" id="imageUpload" accept="image/*" style="display:none" onchange="addImage(event)">
<button onclick="document.getElementById('imageUpload').click()">Tambahkan Sisipan</button>
<input type="file" id="svgUpload" accept=".svg" multiple style="display:none" onchange="addSVG(event)">
<button onclick="document.getElementById('svgUpload').click()">Tambahkan SVG</button>
<input type="file" id="imageUpload" accept="image/*" style="display:none" onchange="addImage(event)">
<button onclick="document.getElementById('imageUpload').click()">Tambahkan Sisipan</button>
</div>
<!-- Garis splitter -->
<div id="splitter"></div>
<!-- Skrip -->
<script src="js/sandbox/layer.js"></script>
<script src="js/sandbox/studiopose.js"></script>
<script src="js/sandbox/splitter.js"></script>
<script src="js/sandbox/background.js"></script>
<script src="js/sandbox/opacity.js"></script>
<script src="js/sandbox/selector.js"></script>
<script src="js/sandbox/key.js"></script>
<script src="js/sandbox/sensivity.js"></script>
<script src="js/sandbox/upload.js"></script>
<script src="js/sandbox/upload2.js"></script>
<script src="js/sandbox/group.js"></script>
<script src="js/sandbox/delete.js"></script>
<!-- Skrip -->
</body>
</html>