Rev 2310 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2310 | Rev 2338 | ||
---|---|---|---|
Line 1342... | Line 1342... | ||
1342 | #endif
|
1342 | #endif
|
1343 | }
|
1343 | }
|
1344 | 1344 | ||
1345 | void drone_commands_listener::startwanding () { |
1345 | void drone_commands_listener::startwanding () { |
1346 | int* flags [] = {&din0.adding, &din0.wanding}; |
1346 | int* flags [] = {&din0.adding, &din0.wanding}; |
- | 1347 | static const char* mesg [] = { |
|
- | 1348 | "Click to add drones, ESC or Right Click to stop",
|
|
1347 | static const char* mesg [] = {"Click to add drones, ESC or Right Click to stop", "Just move mouse to add drones, ESC or Right Click to stop"}; |
1349 | "Just move mouse to add drones, ESC or Right Click to stop"
|
- | 1350 | }; |
|
- | 1351 | ||
1348 | din0.adding = din0.wanding = 0; |
1352 | din0.adding = din0.wanding = 0; |
1349 | *flags[din0.dinfo.wand] = 1; |
1353 | *flags[din0.dinfo.wand] = 1; |
- | 1354 | ||
1350 | #ifdef __EVALUATION__
|
1355 | #ifdef __EVALUATION__
|
1351 | if (din0.wanding) { |
1356 | if (din0.wanding) { |
1352 | din0.wanding = 0; |
1357 | din0.wanding = 0; |
1353 | cons << RED << "Wand only available in the Licensed Version of DIN Is Noise" << eol; |
1358 | cons << RED << "Wand only available in the Licensed Version of DIN Is Noise" << eol; |
1354 | return; |
1359 | return; |
1355 | }
|
1360 | }
|
1356 | #endif
|
1361 | #endif
|
- | 1362 | ||
1357 | cons << GREEN << mesg[din0.dinfo.wand] << eol; |
1363 | cons << GREEN << mesg[din0.dinfo.wand] << eol; |
- | 1364 | ||
1358 | }
|
1365 | }
|
1359 | 1366 | ||
1360 | void drone_commands_listener::clicked (button& b) { |
1367 | void drone_commands_listener::clicked (button& b) { |
1361 | int toggle = 1; |
1368 | int toggle = 1; |
1362 | if (&b == MENUP.ol_add_wand.option) startwanding (); else |
1369 | if (&b == MENUP.ol_add_wand.option) startwanding (); else |