-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpc.html
107 lines (94 loc) · 2.59 KB
/
pc.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
<!DOCTYPE html>
<html>
<head>
<title>RHQ Script Template - PC Version</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 20px;
}
h1 {
color: #333;
}
p {
margin-bottom: 10px;
}
.container {
background-color: #f5f5f5;
padding: 20px;
border-radius: 4px;
}
.download-button {
display: inline-block;
padding: 10px 20px;
background-color: #7F39FB;
color: #fff;
text-decoration: none;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="container">
<h1>Welcome to the PC Version</h1>
<p>This is the PC version of the RHQ Script Template.</p>
<h2>Starting hook</h2>
<p>The starting hook is used to initialize the script and display a loading message.</p>
<pre><code>
gg.toast("Starting hook...");
gg.sleep(2250);
</code></pre>
<h2>Welcome Phase</h2>
<p>The welcome phase displays the initial alerts and loading progress.</p>
<pre><code>
gg.setVisible(false);
gg.alert("Welcome to the RHQ Script Template");
gg.clearResults();
gg.toast("\n□□□□□0%");
gg.sleep(500);
gg.toast("\n■□□□□20%");
gg.sleep(500);
gg.toast("\n■■□□□40%");
gg.sleep(500);
gg.toast("\n■■■□□60%");
gg.sleep(500);
gg.toast("\n■■■■□80%");
gg.sleep(500);
gg.toast("\n■■■■■100%");
gg.sleep(500);
gg.alert("Welcome to RHQ Script Template");
gg.alert("Start script by clicking the GG Icon!");
</code></pre>
<h2>Menu</h2>
<p>The menu displays the available options and triggers the corresponding functions based on the user's choice.</p>
<pre><code>
menu = gg.choice({
"Option 1",
"Option 2",
"Option 3",
"Option 4"
}, nil, 'Home Menu - RHQ Script Template');
if menu == 1 then option1() end;
if menu == 2 then option2() end;
if menu == 3 then option3() end;
if menu == 4 then option4() end;
function option1() {
gg.alert("Option 1", "OK");
}
function option2() {
gg.alert("Option 2", "OK");
}
function option3() {
gg.alert("Option 3", "OK");
}
function option4() {
gg.alert("Option 4", "OK");
}
</code></pre>
<h2>Source Code</h2>
<p>Download the RHQ Script Template source code:</p>
<a href="gg.lua" download class="download-button">Download Template</a>
</div>
</body>
</html>