Repository navigation
Expand file tree
/
Copy pathSigmaCleintMain.javascript
More file actions
147 lines (129 loc) · 4.22 KB
/
Copy pathSigmaCleintMain.javascript
File metadata and controls
147 lines (129 loc) · 4.22 KB
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
// ==UserScript==
// @name Sigma Client v1
// @namespace http://tampermonkey.net/
// @version 1.0
// @description GUI for scenexe2.io
// @match *://*.scenexe2.io/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
// Add CSS styles
GM_addStyle(`
.sigma-gui {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.8);
border: 2px solid #ff8c00;
border-radius: 5px;
padding: 15px;
color: white;
font-family: Arial, sans-serif;
z-index: 9999;
min-width: 300px;
display: none;
}
.sigma-header {
text-align: center;
font-size: 20px;
margin-bottom: 15px;
color: #ffa500;
font-weight: bold;
}
.sigma-button {
background: #ff8c00;
border: 1px solid #ffa500;
color: white;
padding: 8px 15px;
margin: 5px;
border-radius: 3px;
cursor: pointer;
width: 100%;
transition: background 0.2s;
}
.sigma-button:hover {
background: #ffa500;
}
.sigma-close {
position: absolute;
right: 10px;
top: 10px;
cursor: pointer;
color: #ff8c00;
font-weight: bold;
}
.status-popup {
position: fixed;
bottom: 20px;
right: 20px;
background: rgba(0, 0, 0, 0.8);
border: 2px solid #ff8c00;
padding: 10px 20px;
color: white;
border-radius: 5px;
display: none;
z-index: 10000;
}
`);
// Create GUI
const gui = document.createElement('div');
gui.className = 'sigma-gui';
gui.innerHTML = `
<div class="sigma-header">Sigma Client v1</div>
<span class="sigma-close">X</span>
<button class="sigma-button" id="practiceMode">Practice Mode</button>
<button class="sigma-button" id="function2">Function 2</button>
<button class="sigma-button" id="function3">Function 3</button>
`;
document.body.appendChild(gui);
// Create status popup
const statusPopup = document.createElement('div');
statusPopup.className = 'status-popup';
document.body.appendChild(statusPopup);
// Show status message
function showStatus(message, duration = 2000) {
statusPopup.textContent = message;
statusPopup.style.display = 'block';
setTimeout(() => {
statusPopup.style.display = 'none';
}, duration);
}
let practiceEnabled = false;
// Event Listeners
document.addEventListener('keydown', function(e) {
if (e.key.toLowerCase() === 'v') {
gui.style.display = gui.style.display === 'none' ? 'block' : 'none';
}
});
document.querySelector('.sigma-close').addEventListener('click', function() {
gui.style.display = 'none';
});
// Practice Mode Button
document.getElementById('practiceMode').addEventListener('click', function() {
practiceEnabled = !practiceEnabled;
showStatus(`Practice Mode: ${practiceEnabled ? 'Enabled' : 'Disabled'}`);
this.style.background = practiceEnabled ? '#ffa500' : '#ff8c00';
// Add your practice mode functionality here
});
// Other function buttons
document.getElementById('function2').addEventListener('click', function() {
console.log('Function 2 executed');
// Add your function 2 code here
});
document.getElementById('function3').addEventListener('click', function() {
console.log('Function 3 executed');
// Add your function 3 code here
});
// Prevent GUI from closing when clicking inside it
gui.addEventListener('click', function(e) {
e.stopPropagation();
});
// Close GUI when clicking outside
document.addEventListener('click', function(e) {
if (gui.style.display === 'block' && !gui.contains(e.target)) {
gui.style.display = 'none';
}
});
})();