Skip to content

Commit ea7265b

Browse files
committed
HotBar css fix
1 parent 75f5814 commit ea7265b

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

src/client/scripts/InventoryBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class InventoryBar {
9797
}
9898

9999
setFocus(num) {
100-
$(".inv_cursor").css("left", `calc(50vw - 253px + 55*${num}px)`);
100+
$(".inv_cursor").css("left", `calc(50vw - 278px + 60*${num}px)`);
101101
this.game.socket.emit("invc", num);
102102
}
103103

src/client/styles/style.scss

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ body {
104104
position: fixed;
105105
transform: translateX(-50%);
106106
left: 50%;
107-
bottom: 62px;
107+
bottom: 75px;
108108
z-index: 10;
109109
-webkit-text-stroke: 1px black;
110110
color: #259c45;
@@ -171,29 +171,29 @@ body {
171171
position: fixed;
172172
bottom: 0px;
173173
left: 50%;
174-
width: 500px;
175-
height: 60px;
174+
width: 550px;
175+
height: 66px;
176176
transform: translateX(-50%);
177177
background-image: url("../../assets/pack/assets/minecraft/textures/gui/widgets.png");
178178
background-repeat: no-repeat;
179-
border: 0px;
179+
border: 4px;
180180
background-position: 0px 0px;
181-
background-size: 703px auto;
181+
background-size: 768px auto;
182182
border: none;
183183
/* background-attachment: fixed; */
184184
}
185185

186186
.player_hp {
187187
position: fixed;
188-
bottom: 75px;
189-
left: calc(50vw - 250px);
188+
bottom: 80px;
189+
left: calc(50vw - 275px);
190190
display: block;
191191
}
192192

193193
.player_food {
194194
position: fixed;
195-
bottom: 75px;
196-
right: calc(50vw - 245px);
195+
bottom: 80px;
196+
right: calc(50vw - 260px);
197197
display: block;
198198
}
199199

@@ -243,7 +243,7 @@ body {
243243
.xp_bar_empty,
244244
.xp_bar {
245245
position: fixed;
246-
bottom: 65px;
246+
bottom: 70px;
247247
left: calc(50vw - 275px);
248248
width: 256 * 3px;
249249
height: 3 * 5px;
@@ -261,7 +261,7 @@ body {
261261

262262
.xp_bar {
263263
image-rendering: pixelated;
264-
background-position: 0px -3 * 68px;
264+
background-position: 0px -3 * 69px;
265265
}
266266

267267
.inv_window {
@@ -293,20 +293,20 @@ body {
293293

294294
.inv_box {
295295
display: inline-block;
296-
margin-left: 9px;
297-
margin-top: 9px;
298-
margin-right: -3.4px;
296+
margin-left: 12px;
297+
margin-top: 11px;
298+
margin-right: -1.3px;
299299
}
300300

301301
.inv_cursor {
302302
background-image: url("../../assets/pack/assets/minecraft/textures/gui/widgets.png");
303303
background-repeat: no-repeat;
304304
border: 0px;
305-
background-position: 0px -61px;
306-
background-size: 700px auto;
305+
background-position: 0px -66px;
306+
background-size: 256 * 3px auto;
307307
position: fixed;
308308
image-rendering: pixelated;
309-
bottom: -4px;
310-
width: 66px;
311-
height: 66px;
309+
bottom: -3px;
310+
width: 72px;
311+
height: 72px;
312312
}

0 commit comments

Comments
 (0)