-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
164 lines (164 loc) · 8.96 KB
/
index.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<!-- Template by Quackit.com -->
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<link rel="image_src" href="imgs/hat.png">
<link rel="shortcut icon" type="image/ico" href="favicon.ico">
<meta property="og:image" content="imgs/hat.png" />
<meta property="og:image:type" content="image/png" />
<!-- jQuery -->
<script src="scripts/jquery-1.11.3.min.js"></script>
<!-- FileSaver -->
<script src="scripts/FileSaver.min.js"></script>
<!-- Custom script -->
<script src="scripts/drawables.js"></script>
<title>Hatter</title>
</head>
<body>
<!-- Content wrapper (mainly to set a different footer color) -->
<div id="wrapper">
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- Logo and responsive toggle -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://github.com/Silverfeelin">
<i class="fa fa-github"></i>
<span>Silverfeelin</span>
</a>
</div>
<!-- Navbar links -->
<div class="collapse navbar-collapse" id="navbar">
<ul class="nav navbar-nav">
<!-- li class="active" -->
<li>
<a href="https://krashv.github.io/Starbound-AdvancedHatter/">Advanced Hatter</a>
</li>
<li>
<a href="https://github.com/Silverfeelin/Starbound-Hatter">View project on GitHub</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Jumbotron -->
<div id="featureBackground">
<div id="feature" class="jumbotron feature">
<div class="container">
<h1>
<canvas id="logoHat"></canvas>
Starbound Hatter
</h1>
<p>Multiplayer compatible custom hats!</p>
</div>
</div>
</div>
<!-- Content -->
<div class="container">
<div class="row" style="margin-top:-40px;">
<div class="col-md-6" style="z-index:3;">
<h3 class="content-header">Options</h3>
<label for="btnSelectImage">Select a hat (up to 85x85):</label><br>
<button id="btnSelectImage" class="btn btn-default">Select Image</button>
<input style="display:none;" id="selectImage" type="file" accept="image/*">
<div class="form-group">
<label for="itemName">Item name:</label>
<input id="itemName" type="text" class="form-control" value="^orange;Custom Hat">
<label for="itemDescription">Item description:</label>
<input id="itemDescription" type="text" class="form-control" value="A custom hat created by me!">
<label for="itemRarity">Item rarity:</label>
<select id="itemRarity" class="form-control">
<option value="common">Common</option>
<option value="uncommon">Uncommon</option>
<option value="rare">Rare</option>
<option value="legendary">Legendary</option>
<option value="essential">Essential</option>
</select>
</div>
<label for="checkMask">Remove hair:</label>
<input id="checkMask" type="checkbox">
<br>
<label for="checkHideBody">Hide body:</label>
<input id="checkHideBody" type="checkbox">
<br>
<label for="checkLegacy">Legacy mode:</label>
<input id="checkLegacy" type="checkbox">
<br>
<div class="form-group">
<div class="btn-group">
<button id="btnPlainText" class="btn btn-success" title="Generates an item descriptor that can be imported using StarCheat.">Generate item file</button>
<button id="btnFileClipboard" class="btn btn-primary" title="Copy to clipboard"><i class="fa fa-copy"></i></button>
</div>
<div class="btn-group">
<button id="btnCommand" class="btn btn-success" title="Generates a /spawnitem command that can be executed in-game.">Generate command file</button>
<button id="btnCommandClipboard" class="btn btn-primary" ><i class="fa fa-copy"></i></button>
</div>
</div>
</div>
<div class="col-md-6">
<h3 class="content-header">Preview</h3>
<div id="cvsPreview" style="position:relative;width:344px;height:344px;">
<canvas class="cvsPreview" width="172" height="172" style="height:172px; width:172px;z-index:0;position:absolute;left:86px;bottom:86px;" id="cvsPreviewCharacter"></canvas>
<canvas class="cvsPreview" width="172" height="172" style="position:absolute;left:86px;bottom:86px;height:172px; width:172px; z-index:1;" id="cvsPreviewHair"></canvas>
<canvas class="cvsPreview" width="172" height="172" style="position:absolute;left:0px;bottom:0px;height:172px; width:172px; z-index:2;" id="cvsPreviewHat"></canvas>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6" style="z-index:3;">
<h3 class="content-header">Examples</h3>
<p>Hats featured below courtesy of <a href="http://community.playstarbound.com/members/guy.381187/">Guy-</a>, you can view the original mod <a href="http://community.playstarbound.com/resources/anime-manga-video-game-pack.2775/">here</a>.</p>
<img style="vertical-align: top;" src="imgs/alucard.png">
<img src="imgs/hatter1.png"><br>
<img style="vertical-align: top;" src="imgs/varia.png">
<img src="imgs/hatter2.png">
</div>
<div class="col-md-6" style="z-index:3;">
<h3 class="content-header">Make a Hat</h3>
<p>
You can use the below sample images if you want to create your own hat. For existing assets, you'll most likely want to crop to the top right 43x43 pixels.
</p>
<img style="vertical-align: top;" src="imgs/hatSample.png">
<img style="vertical-align: top;" src="imgs/hatterCharacter.png">
<img style="vertical-align: top;" src="imgs/hatterCharacterBig.png">
<img style="vertical-align: top;" src="imgs/test.png">
<p>For Paint.NET users, <a href="imgs/hatterTemplate.pdn">this project file</a> can be used to easily create hats. Make sure you hide the character layer before saving the hat, and that you select the PNG file format!</p>
<img style="vertical-align: top;" src="imgs/untickLayer.png">
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<div class="col-lg-12 small-print">
<div class="container">
<p><a href="http://playstarbound.com/">Official Starbound site</a></p>
<hr>
<div>
<p style="float:left;"><a href="https://github.com/Silverfeelin/Starbound-Hatter/blob/master/credits.md">Credits and Licenses</a></p>
<p style="float:right;">Contact me: <a href="mailto:silverfeelin@gmail.com">Silverfeelin@gmail.com</a></p>
</div>
</div>
</div>
</footer>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Font Awesome CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- Bootstrap Core JavaScript -->
<script src="scripts/bootstrap.min.js"></script>
<!-- Custom CSS: You can use this stylesheet to override any Bootstrap styles and/or apply your own styles -->
<link href="css/custom.css?v=1.1" rel="stylesheet">
</body>
</html>