-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathhud.html
executable file
·92 lines (92 loc) · 2.41 KB
/
hud.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content="IE=edge">
<meta name='viewport' content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
<style type="text/css">
.outline {
position: fixed;
bottom: 8vh;
left: 5.8vh;
overflow: hidden;
width: 29.629vh;
text-align: center;
}
.mapborder {
width: 26.851vh;
height: 26.851vh;
border: 2px solid rgba(255,255,255,0.2);
border-radius: 50%;
/*box-shadow: 0px 0px 16px rgba(0,0,0,0.5);*/
position: relative;
top: 50px;
display: inline-block;
}
.btn-group {
position: fixed;
bottom: 4.629vh;
left: 5.8vh;
width: 29.629vh;
text-align: center;
}
.btn {
height: 3.2vh;
background: rgba(255,255,255,0.2);
border: 2px solid rgba(255,255,255,0.2);
padding-left: 8px;
padding-right: 8px;
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,'微软雅黑',sans-serif ! important;
line-height: 3.2vh;
border-radius: 8px;
display: inline-block;
color: #FFFFFF;
font-size: 14px;
}
.btn1 span {
margin-right: 5px;
}
.btn2 span {
margin-left: 5px;
}
.btn span {
border: 1px solid rgba(255,255,255,0.6);
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,'微软雅黑',sans-serif ! important;
padding-left: 4px;
padding-right: 4px;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="outline">
<center>
<div class="mapborder"></div>
</center>
</div>
<!--Remove this if you don't like it-->
<div class="btn-group">
<div class="btn btn1"><span>F2</span> 飞行模式</div>
<div class="btn btn2">刷车菜单 <span>F5</span></div>
</div>
<!--End Remove-->
</body>
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
<script>
$(function() {
window.addEventListener("message", function(event) {
var data = event.data;
switch(data.action) {
case "displayUI":
$(".outline").fadeIn();
$(".btn-group").fadeIn();
break;
case "hideUI":
$(".outline").fadeOut();
$(".btn-group").fadeOut();
break;
}
});
});
</script>
</html>