-
Notifications
You must be signed in to change notification settings - Fork 1
/
tb.html
112 lines (112 loc) · 2.81 KB
/
tb.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
111
112
<!DOCTYPE html>
<html lang="zh-hans">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>红色警戒2图标生成器 by 手柄君</title>
<style type="text/css">
#ViewCanvas {
image-rendering: pixelated;
width: 600px;
height: 480px;
}
</style>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?89985731c02fd5ebad9d8ba486729d29";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<canvas id="ViewCanvas" height="48" width="60"></canvas>
<p>原作者手柄君,本站仅为方便个人使用,如有侵权请联系站长处理!</p>
<p>
<input
type="checkbox"
name="enable_full_eng_name"
id="EnableFullEnglishName"
/><label for="EnableFullEnglishName">Full Enghlish Unit Name</label>
</p>
<p>
<textarea
name="单位名称"
id="UnitName"
cols="16"
rows="4"
placeholder="单位名称"
></textarea>
</p>
<p>
<input
type="checkbox"
name="enable_rating_sign"
id="EnableRatingSign"
/><label for="EnableRatingSign">显示升级图示</label>
</p>
<p id="EnableCameoColor_P">
<input
type="checkbox"
name="enable_cameo_color"
id="EnableCameoColor"
/><label for="EnableCameoColor">使用原版色盘</label>
</p>
<p>
<input
type="checkbox"
name="enable_ready_text"
id="EnableReadyText"
/><label for="EnableReadyText">显示就绪文字</label>
</p>
<p>
<input
type="color"
name="ready_text_color"
id="ReadyTextColor"
value="#FFFF00"
/><label for="ReadyTextColor">就绪文字颜色</label>
</p>
<p>
<input
type="file"
name="icon_image"
id="IconImage"
accept="image/*"
/><label for="IconImage"></label>
</p>
<p><input type="button" value="绘制图像" id="Redraw" /></p>
<p>
<input
type="button"
value="导出PNG"
id="OutputAsPNG"
/>(注意:会直接导出当前预览图)
</p>
<p>
<input
type="button"
value="导出SHP"
id="OutputAsSHP"
/>(注意:会强制使用原版色盘)
</p>
<p>
<input
type="button"
value="导出PCX(256色)"
id="OutputAsPCX"
/>
</p>
<p>
<input
type="button"
value="导出PCX(全彩色)"
id="OutputAsPCX_FullColor"
/>
</p>
</body>
<script src="./tb.js"></script>
</html>