-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCode.cs
More file actions
381 lines (324 loc) · 10.6 KB
/
Code.cs
File metadata and controls
381 lines (324 loc) · 10.6 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
using System.Windows.Forms.VisualStyles;
using System.Threading;
using System.Media;
namespace BitClick
{
public partial class Form1 : Form
{
private SoundPlayer music;
int points = 0;
int speed = 0;
int _50b = 0;
int value = 1;
public Form1()
{
InitializeComponent();
music = new SoundPlayer("sound.wav");
}
int mouseX = 0, mouseY = 0;
bool mouseDown;
private void Form1_Load(object sender, EventArgs e)
{
start.Hide();
stop.Hide();
textBox2.Text = this.Text;
value2.Hide();
ability2.Hide();
buy2.Hide();
value3.Hide();
ability3.Hide();
buy3.Hide();
value4.Hide();
ability4.Hide();
buy4.Hide();
bitcoin.Hide();
tip.Hide();
dogslave.Hide();
description.Text = "Nothing Found";
free.Hide();
ability1.Hide();
music.Play();
music.PlayLooping();
start.Enabled = false;
}
private void pictureBox1_Click(object sender, EventArgs e)
{
points += 1;
tip.Hide();
textBox1.Text = points.ToString() + " BITCOINS";
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://discord.gg/bXDeRvB");
}
private void timer1_Tick(object sender, EventArgs e)
{
points += value;
textBox1.Text = points.ToString() + " BITCOINS";
}
private void button1_Click(object sender, EventArgs e)
{
value2.Show();
ability2.Show();
buy2.Show();
value3.Show();
ability3.Show();
buy3.Show();
value4.Show();
ability4.Show();
buy4.Show();
bitcoin.Show();
that.Hide();
tip.Show();
get1.Hide();
description.Show();
description.Text = "Nothing Found";
}
private void buy2_Click(object sender, EventArgs e)
{
if (points >= 50)
{
points -= 50;
_50b += 1;
timer1.Start();
start.Show();
stop.Show();
dogslave.Show();
buy2.Enabled = false;
}
else
{
MessageBox.Show("You dont have Money to Buy | Total Money To Buy: 50 ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void button3_Click(object sender, EventArgs e)
{
Process.Start("https://discord.gg/bXDeRvB");
}
private void button1_Click_1(object sender, EventArgs e)
{
Application.Exit();
}
private void start_Click(object sender, EventArgs e)
{
timer1.Start();
start.Enabled = false;
stop.Enabled = true;
}
private void stop_Click(object sender, EventArgs e)
{
timer1.Stop();
start.Enabled = true;
stop.Enabled = false;
}
private void pictureBox3_Click(object sender, EventArgs e)
{
this.Close();
}
private void pictureBox4_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
private void pictureBox5_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
}
private void panel1_MouseDown(object sender, MouseEventArgs e)
{
mouseDown = true;
}
private void panel1_MouseMove(object sender, MouseEventArgs e)
{
if (mouseDown)
{
mouseX = MousePosition.X - 400;
mouseY = MousePosition.Y - 20;
this.SetDesktopLocation(mouseX, mouseY);
}
}
private void panel1_MouseUp(object sender, MouseEventArgs e)
{
mouseDown = false;
}
private void offlineModeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Close();
}
private void bitcoinToolStripMenuItem_Click(object sender, EventArgs e)
{
points += 1;
textBox1.Text = points.ToString() + " BITCOINS";
}
private void hide_Click(object sender, EventArgs e)
{
this.Show();
}
private void buy3_Click(object sender, EventArgs e)
{
if (points >= 200)
{
points -= 200;
_50b += 1;
value += 9;
}
else
{
MessageBox.Show("You dont have Money to Upgrade | Total Money To Buy: 200", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void bitclick_Click(object sender, EventArgs e)
{
this.Show();
this.WindowState = FormWindowState.Normal;
}
private void buy4_Click(object sender, EventArgs e)
{
if (points >= 500)
{
points -= 500;
_50b += 1;
value += 10;
}
else
{
MessageBox.Show("You dont have Money to Upgrade | Total Money To Buy: 500", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void buy2_MouseEnter(object sender, EventArgs e)
{
photo.Image = Properties.Resources.doge;
description.Text = "Mine For You | Total Money to Buy: 50";
}
private void buy2_MouseLeave(object sender, EventArgs e)
{
photo.Image = Properties.Resources.nothing;
description.Text = "Nothing Found";
}
private void buy3_MouseEnter(object sender, EventArgs e)
{
photo.Image = Properties.Resources.upgrade;
description.Text = "Upgrade to mine 10 bitcoins | Total Money to Buy: 200";
}
private void buy3_MouseLeave(object sender, EventArgs e)
{
photo.Image = Properties.Resources.nothing;
description.Text = "Nothing Found";
}
private void buy4_MouseEnter(object sender, EventArgs e)
{
photo.Image = Properties.Resources.upgrade;
description.Text = "Upgrade to mine 20 bitcoins | Total Money to Buy: 500";
}
private void get1_MouseEnter(object sender, EventArgs e)
{
photo.Image = Properties.Resources._59699_cryptocurrency_zazzle_payment_bitcoin_logo_free_hq_image;
description.Text = "Start Game";
}
private void get1_MouseLeave(object sender, EventArgs e)
{
photo.Image = Properties.Resources.nothing;
description.Text = "Nothing Found";
}
private void clicked_Click(object sender, EventArgs e)
{
}
private void pictureBox1_MouseEnter(object sender, EventArgs e)
{
pictureBox1.BackColor = Color.FromArgb(147, 188, 15);
}
private void pictureBox1_MouseLeave(object sender, EventArgs e)
{
pictureBox1.BackColor = Color.FromArgb(22, 22, 22);
}
private void pictureBox1_Click_1(object sender, EventArgs e)
{
this.Close();
Process.Start("Bitclick.exe");
}
private void pictureBox3_Click_1(object sender, EventArgs e)
{
this.Close();
}
private void pictureBox1_Click_2(object sender, EventArgs e)
{
if (this.WindowState==FormWindowState.Maximized)
{
this.WindowState = FormWindowState.Normal;
}
else
{
this.WindowState = FormWindowState.Maximized;
}
}
private void pictureBox4_Click_1(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
private void pictureBox5_Click_1(object sender, EventArgs e)
{
}
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked)
{
music.Stop();
checkBox1.Text = "Mute";
}
else
{
music.Play();
music.PlayLooping();
checkBox1.Text = "Music";
}
}
private void toolStripComboBox1_Click(object sender, EventArgs e)
{
}
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
}
private void panel1_DoubleClick(object sender, EventArgs e)
{
if (this.WindowState == FormWindowState.Maximized)
{
this.WindowState = FormWindowState.Normal;
}
else
{
this.WindowState = FormWindowState.Maximized;
}
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
private void resetMoneyToolStripMenuItem_Click(object sender, EventArgs e)
{
points = 0;
textBox1.Text = points.ToString() + " BITCOINS";
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
}
private void pictureBox2_Click(object sender, EventArgs e)
{
}
private void buy4_MouseLeave(object sender, EventArgs e)
{
photo.Image = Properties.Resources.nothing;
description.Text = "Nothing Found";
}
}
}