20 DrawTextW(L
"INTERMEDIA PROXIMITY MENU UNAVAILABLE", 0, 0, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
28 float gradeadj = 1.0f + powf(
interactive.tempplot.grade * 0.01f, 2.0f) * 63.0f;
37 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
39 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
40 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
46 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
48 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
49 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
56 sprintf_s(timerem,
sizeof(timerem),
"%5i days left ",
interactive.tempplot.constructime / 51948L);
58 sprintf_s(timerem,
sizeof(timerem),
"%5i hours left ",
interactive.tempplot.constructime / 3600L);
60 sprintf_s(timerem,
sizeof(timerem),
"%5i minutes left",
interactive.tempplot.constructime / 60L);
62 sprintf_s(timerem,
sizeof(timerem),
"One minute left!");
65 L
" CONSTRUCTION IN PROGRESS %S (%i colonists building)", timerem,
interactive.tempplot.colonistsbuilding);
66 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
71 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Needed Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
75 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Recycled Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
78 L
"1] Mining Command %-4i 1 29 colonists %3.0f MT common 19 labor",
interactive.
type1built, ceilf(195.0f * gradeadj));
79 DrawTextW(str, 0, 50, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
81 L
" 116 MT storage %3.0f MT fabricated", ceilf(143.0f * gradeadj));
82 DrawTextW(str, 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
85 L
"2] Extraction %-4i 11 11 MT daily %3.0f MT common 4 labor",
interactive.
type2built, ceilf(14.0f * gradeadj));
86 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
88 L
" %3.0f MT fabricated", ceilf(9.0f * gradeadj));
89 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
92 L
"3] Raw Material Storage %-4i 1 3413 MT storage %3.0f MT common 8 labor",
interactive.
type3built, ceilf(108.0f * gradeadj));
93 DrawTextW(str, 0, 100, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
96 L
"4] Separator %-4i 1 110 MT daily %3.0f MT common 13 labor",
interactive.
type4built, ceilf(392.0f * gradeadj));
97 DrawTextW(str, 0, 125, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
99 L
" %3.0f MT fabricated", ceilf(201.0f * gradeadj));
100 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
103 L
"5] Material Obliteration %-4i 1 240 MT daily %3.0f MT common 16 labor",
interactive.
type5built, ceilf(227.0f * gradeadj));
104 DrawTextW(str, 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
106 L
" 1 colonist %3.0f MT fabricated", ceilf(124.0f * gradeadj));
107 DrawTextW(str, 0, 160, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
110 L
"6] Processed Storage %-4i 7 3413 MT storage %3.0f MT common 8 labor",
interactive.
type6built, ceilf(108.0f * gradeadj));
111 DrawTextW(str, 0, 175, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
114 DrawTextW(str, 0, 185, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
117 L
"7] Support Structures %-4i 17 17 colonists %3.0f MT common 12 labor",
interactive.
type7built, ceilf(132.0f * gradeadj));
118 DrawTextW(str, 0, 200, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
120 L
" %3.0f MT fabricated", ceilf(99.0f * gradeadj));
121 DrawTextW(str, 0, 210, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
124 L
"8] Power Production %-4i 1 848 GJ daily %3.0f MT common 4 labor",
interactive.
type8built, ceilf(132.0f * gradeadj));
125 DrawTextW(str, 0, 225, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
127 L
" 1 colonist %3.0f MT fabricated", ceilf(99.0f * gradeadj));
128 DrawTextW(str, 0, 235, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
131 L
"9] Defensive Platforms %-4i 3 4 GJ/burst %3.0f MT common 6 labor",
interactive.
type9built, ceilf(132.0f * gradeadj));
132 DrawTextW(str, 0, 250, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
134 L
" 1 colonist %3.0f MT fabricated", ceilf(99.0f * gradeadj));
135 DrawTextW(str, 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
142 DrawTextW(L
" Manage Storefront (select commodity for advanced options)", 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
144 swprintf_s(str, 99, L
"1] Cash (%.0f CR)", floorf(
interactive.tempplot.cashbalance));
145 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
150 swprintf_s(str, 99, L
"1] Fleet Bank ATM Discount: %i%%",
interactive.tempplot.discount);
152 swprintf_s(str, 99, L
"1] Fleet Bank ATM");
154 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
156 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFF505050);
159 DrawTextW(L
" Commodity Type Selling Buying", 0, 45, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
161 WCHAR buyat[50], sellat[50];
162 long buypos, sellpos, maxpos;
163 long spaceavail =
interactive.tempplot.maxprocstor -
181 swprintf_s(buyat, 50, L
"%5i MT @ %5i CR/MT", buypos,
interactive.tempplot.buyA);
183 wcscpy_s(buyat, 50, L
"Not trading...");
185 if (sellpos > 30000L)
190 swprintf_s(sellat, 50, L
"%5i MT @ %5i CR/MT", sellpos,
interactive.tempplot.sellA);
192 wcscpy_s(sellat, 50, L
"Not trading...");
193 swprintf_s(str, 99, L
"2] Rare/Precious %22s %22s", sellat, buyat);
194 DrawTextW(str, 0, 70, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
209 swprintf_s(buyat, 50, L
"%5i MT @ %5i CR/MT", buypos,
interactive.tempplot.buyB);
211 wcscpy_s(buyat, 50, L
"Not trading...");
213 if (sellpos > 30000L)
218 swprintf_s(sellat, 50, L
"%5i MT @ %5i CR/MT", sellpos,
interactive.tempplot.sellB);
220 wcscpy_s(sellat, 50, L
"Not trading...");
221 swprintf_s(str, 99, L
"3] Foodstuffs %22s %22s", sellat, buyat);
222 DrawTextW(str, 0, 95, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
237 swprintf_s(buyat, 50, L
"%5i MT @ %5i CR/MT", buypos,
interactive.tempplot.buyC);
239 wcscpy_s(buyat, 50, L
"Not trading...");
241 if (sellpos > 30000L)
246 swprintf_s(sellat, 50, L
"%5i MT @ %5i CR/MT", sellpos,
interactive.tempplot.sellC);
248 wcscpy_s(sellat, 50, L
"Not trading...");
249 swprintf_s(str, 99, L
"4] Common Materials %22s %22s", sellat, buyat);
250 DrawTextW(str, 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
265 swprintf_s(buyat, 50, L
"%5i MT @ %5i CR/MT", buypos,
interactive.tempplot.buyD);
267 wcscpy_s(buyat, 50, L
"Not trading...");
269 if (sellpos > 30000L)
274 swprintf_s(sellat, 50, L
"%5i MT @ %5i CR/MT", sellpos,
interactive.tempplot.sellD);
276 wcscpy_s(sellat, 50, L
"Not trading...");
277 swprintf_s(str, 99, L
"5] Fuel Ore %22s %22s", sellat, buyat);
278 DrawTextW(str, 0, 145, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
293 swprintf_s(buyat, 50, L
"%5i MT @ %5i CR/MT", buypos,
interactive.tempplot.buyE);
295 wcscpy_s(buyat, 50, L
"Not trading...");
297 if (sellpos > 30000L)
302 swprintf_s(sellat, 50, L
"%5i MT @ %5i CR/MT", sellpos,
interactive.tempplot.sellE);
304 wcscpy_s(sellat, 50, L
"Not trading...");
305 swprintf_s(str, 99, L
"6] Consumer Goods %22s %22s", sellat, buyat);
306 DrawTextW(str, 0, 170, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
321 swprintf_s(buyat, 50, L
"%5i MT @ %5i CR/MT", buypos,
interactive.tempplot.buyF);
323 wcscpy_s(buyat, 50, L
"Not trading...");
325 if (sellpos > 30000L)
330 swprintf_s(sellat, 50, L
"%5i MT @ %5i CR/MT", sellpos,
interactive.tempplot.sellF);
332 wcscpy_s(sellat, 50, L
"Not trading...");
333 swprintf_s(str, 99, L
"7] Fabricated Material %22s %22s", sellat, buyat);
334 DrawTextW(str, 0, 195, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
349 swprintf_s(buyat, 50, L
"%5i MT @ %5i CR/MT", buypos,
interactive.tempplot.buyG);
351 wcscpy_s(buyat, 50, L
"Not trading...");
353 if (sellpos > 30000L)
358 swprintf_s(sellat, 50, L
"%5i MT @ %5i CR/MT", sellpos,
interactive.tempplot.sellG);
360 wcscpy_s(sellat, 50, L
"Not trading...");
361 swprintf_s(str, 99, L
"8] Iagreous Fuel %22s %22s", sellat, buyat);
362 DrawTextW(str, 0, 220, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
367 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
369 DrawTextW(L
" Commodity Type Inventory Units", 0, 30, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
371 swprintf_s(str, 99, L
"1] Rare/Precious %-9.0f MT", floorf(
interactive.tempplot.procstorA));
372 DrawTextW(str, 0, 70, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
374 swprintf_s(str, 99, L
"2] Foodstuffs %-9.0f MT", floorf(
interactive.tempplot.procstorfood));
375 DrawTextW(str, 0, 95, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
377 swprintf_s(str, 99, L
"3] Common Materials %-9.0f MT", floorf(
interactive.tempplot.procstorC));
378 DrawTextW(str, 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
380 swprintf_s(str, 99, L
"4] Fuel Ore %-9.0f MT", floorf(
interactive.tempplot.procstorfuelore));
381 DrawTextW(str, 0, 145, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
383 swprintf_s(str, 99, L
"5] Consumer Goods %-9.0f MT", floorf(
interactive.tempplot.procstorgoods));
384 DrawTextW(str, 0, 170, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
386 swprintf_s(str, 99, L
"6] Fabricated Materials %-9.0f MT", floorf(
interactive.tempplot.procstormaterials));
387 DrawTextW(str, 0, 195, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
389 swprintf_s(str, 99, L
"7] Iagreous Fuel %-9.0f MT", floorf(
interactive.tempplot.procstorfuel));
390 DrawTextW(str, 0, 220, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
394 float gradeadj = 1.0f + powf(
interactive.tempplot.grade * 0.01f, 2.0f) * 63.0f;
403 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
405 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
406 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
412 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
414 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
415 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
422 sprintf_s(timerem,
sizeof(timerem),
"%5i days left ",
interactive.tempplot.constructime / 51948L);
423 else if (
interactive.tempplot.constructime > 3600L)
424 sprintf_s(timerem,
sizeof(timerem),
"%5i hours left ",
interactive.tempplot.constructime / 3600L);
426 sprintf_s(timerem,
sizeof(timerem),
"%5i minutes left",
interactive.tempplot.constructime / 60L);
428 sprintf_s(timerem,
sizeof(timerem),
"One minute left!");
431 L
" CONSTRUCTION IN PROGRESS %S (%i colonists building)", timerem,
interactive.tempplot.colonistsbuilding);
432 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
437 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Needed Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
441 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Recycled Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
444 L
"1] Farmstead %-4i 1 22 colonists %5.0f MT common 2 labor",
interactive.
type1built, ceilf(64.0f * gradeadj));
445 DrawTextW(str, 0, 50, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
447 L
" 34 MT storage %5.0f MT fabricated", ceilf(47.0f * gradeadj));
448 DrawTextW(str, 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
452 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
454 L
" %5.0f MT fabricated", 0.0f);
455 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
458 L
"3] Greenhouses %-4i 3 21 MT yearly %5.0f MT common 3 labor",
interactive.
type3built, ceilf(196.0f * gradeadj));
459 DrawTextW(str, 0, 100, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
461 L
" %5.0f MT fabricated", ceilf(101.0f * gradeadj));
462 DrawTextW(str, 0, 110, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
465 L
"4] Hydroponics %-4i 2 35 MT yearly %5.0f MT common 5 labor",
interactive.
type4built, ceilf(392.0f * gradeadj));
466 DrawTextW(str, 0, 125, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
468 L
" %5.0f MT fabricated", ceilf(201.0f * gradeadj));
469 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
472 L
"5] Storage Silos %-4i 3 3413 MT storage %5.0f MT common 8 labor",
interactive.
type6built, ceilf(108.0f * gradeadj));
473 DrawTextW(str, 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
475 L
" 1 colonist %5.0f MT fabricated", ceilf(81.0f * gradeadj));
476 DrawTextW(str, 0, 160, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
479 L
"6] Support Structures %-4i 4 1 colonist %5.0f MT common 12 labor",
interactive.
type7built, ceilf(132.0f * gradeadj));
480 DrawTextW(str, 0, 175, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
482 L
" %5.0f MT fabricated", ceilf(99.0f * gradeadj));
483 DrawTextW(str, 0, 185, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
486 L
"7] Defensive Platforms %-4i 1 4 GJ/burst %5.0f MT common 6 labor",
interactive.
type9built, ceilf(132.0f * gradeadj));
487 DrawTextW(str, 0, 200, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
489 L
" 1 colonist %5.0f MT fabricated", ceilf(99.0f * gradeadj));
490 DrawTextW(str, 0, 210, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
497 swprintf_s(str, 99, L
" Welcome! (population %.0f)", floorf(
interactive.tempplot.totalPopulation));
499 swprintf_s(str, 99, L
" Welcome to %S! (population %.0f)",
interactive.tempplot.boundaryName, floorf(
interactive.tempplot.totalPopulation));
504 swprintf_s(str, 99, L
" Welcome to %S (population %.0f)",
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
506 swprintf_s(str, 99, L
" Welcome to %S %S (population %.0f)",
interactive.tempplot.boundaryName,
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
508 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
516 else if (opeff < 0.0f)
525 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
528 DrawTextW(L
"1] Survey", 0, 45, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
529 DrawTextW(L
"2] Inventory Management", 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
530 DrawTextW(L
"3] Expansion", 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
531 DrawTextW(L
"4] Demolition", 0, 90, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
532 DrawTextW(L
"5] Manage Trade", 0, 105, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
533 DrawTextW(L
"6] Cargo Operations", 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
535 swprintf_s(str, 99, L
"7] Set ATM Fee (%i CR)",
interactive.tempplot.ATMcharge);
537 wcscpy_s(str, 99, L
" No ATM Installed");
538 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
539 DrawTextW(L
"8] Diplomacy", 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
556 float extract =
interactive.tempplot.DlyXtractHarvestProduce * opeff;
558 L
" Daily Extraction: %.3f MT (%.3f MT waiting)", extract,
interactive.tempplot.rawOre);
559 DrawTextW(str, 0, 170, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
567 L
" Daily Separation: %.3f MT rare", sep *
static_cast<float>(
interactive.tempplot.oreA) / 255.0f * opeff * 0.3f);
568 DrawTextW(str, 0, 180, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
570 L
" %.3f MT common", sep *
static_cast<float>(
interactive.tempplot.oreC) / 255.0f * opeff * 1.3f);
571 DrawTextW(str, 0, 190, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
573 L
" %.3f MT fuel", sep *
static_cast<float>(
interactive.tempplot.oreD) / 255.0f * opeff);
574 DrawTextW(str, 0, 200, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
576 L
" Daily Obliteration: %.3f MT (%.3F MT tailings)", oblit * opeff,
interactive.tempplot.waste);
577 DrawTextW(str, 0, 210, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
580 L
" Commodity Daily Consumption");
581 DrawTextW(str, 0, 225, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
583 L
" Rare %.3f MT", 0.0f);
584 DrawTextW(str, 0, 235, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
586 L
" Foodstuffs %.3f MT",
interactive.tempplot.totalPopulation * 0.00109589f);
587 DrawTextW(str, 0, 245, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
589 L
" Common %.3f MT", 0.0f);
590 DrawTextW(str, 0, 255, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
592 L
" Fuel Ore %.3f MT", 0.0f);
593 DrawTextW(str, 0, 265, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
595 L
" Goods %.3f MT",
interactive.tempplot.totalPopulation * 0.0f);
596 DrawTextW(str, 0, 275, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
598 L
" Materials %.3f MT", 0.0f);
599 DrawTextW(str, 0, 285, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
601 L
" Fuel %.3f MT",
interactive.tempplot.totalPopulation * 0.000011785f + extract * 0.000247384f);
602 DrawTextW(str, 0, 295, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
607 short x = 210,
y = 45;
612 DrawTextW(L
"** We desperately need food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
619 DrawTextW(L
"++ We have less than a week's supply of food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
626 DrawTextW(L
"++ The colony up-link has failed!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
631 DrawTextW(L
"++ Production halted, out of secure processed storage!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
636 DrawTextW(L
"++ Production halted, out of refined Iagreous fuel!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
641 DrawTextW(L
"++ The colony is overpopulated!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
646 swprintf_s(str, 99, L
".. We have %i people reassigned for construction",
interactive.tempplot.colonistsbuilding);
647 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
653 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
658 DrawTextW(L
".. No new messages!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
666 swprintf_s(str, 99, L
" Welcome! (population %.0f)", floorf(
interactive.tempplot.totalPopulation));
668 swprintf_s(str, 99, L
" Welcome to %S! (population %.0f)",
interactive.tempplot.boundaryName, floorf(
interactive.tempplot.totalPopulation));
673 swprintf_s(str, 99, L
" Welcome to %S (population %.0f)",
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
675 swprintf_s(str, 99, L
" Welcome to %S %S (population %.0f)",
interactive.tempplot.boundaryName,
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
677 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
685 else if (opeff < 0.0f)
694 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
697 DrawTextW(L
"1] Survey", 0, 45, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
698 DrawTextW(L
"2] Inventory Management", 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
699 DrawTextW(L
"3] Expansion", 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
700 DrawTextW(L
"4] Demolition", 0, 90, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
701 DrawTextW(L
"5] Manage Trade", 0, 105, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
702 DrawTextW(L
"6] Cargo Operations", 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
704 swprintf_s(str, 99, L
"7] Set ATM Fee (%i CR)",
interactive.tempplot.ATMcharge);
706 wcscpy_s(str, 99, L
" No ATM Installed");
707 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
708 DrawTextW(L
"8] Diplomacy", 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
711 long newseason = (
interactive.tempplot.ltime + offset) / 8116848L;
712 long lastharvest = (
interactive.tempplot.ltime + offset) % 8116848L;
713 long nextharvestsec = 8116848L - lastharvest;
714 long seasontype = newseason % 4;
717 sprintf_s(seasontext,
sizeof(seasontext),
"Spring");
718 else if (seasontype == 1)
719 sprintf_s(seasontext,
sizeof(seasontext),
"Summer");
720 else if (seasontype == 2)
721 sprintf_s(seasontext,
sizeof(seasontext),
"Fall");
723 sprintf_s(seasontext,
sizeof(seasontext),
"Winter");
727 float dayspassed = (float)lastharvest / 86400.0f;
731 L
" Current season: %S", seasontext);
732 DrawTextW(str, 0, 165, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
734 L
" Season ends: %.0f day(s)", (93.945f - dayspassed) * 1.663202f);
735 DrawTextW(str, 0, 175, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
743 float fieldcrops = 0.0f;
751 float grow = (greenhouses + hydroponics + fieldcrops);
760 L
" Harvest estimates: %.3f MT food (total)", grow);
761 DrawTextW(str, 0, 185, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
763 L
" %.3f MT food (hydroponics)", hydroponics);
764 DrawTextW(str, 0, 195, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
766 L
" %.3f MT food (greenhouses)", greenhouses);
767 DrawTextW(str, 0, 205, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
769 L
" %.3f MT food (algae farms)", fieldcrops);
770 DrawTextW(str, 0, 215, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
774 L
" Commodity Daily Consumption");
775 DrawTextW(str, 0, 230, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
777 L
" Rare %.3f MT", 0.0f);
778 DrawTextW(str, 0, 240, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
780 L
" Foodstuffs %.3f MT",
interactive.tempplot.totalPopulation * 0.00109589f);
781 DrawTextW(str, 0, 250, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
783 L
" Common %.3f MT", 0.0f);
784 DrawTextW(str, 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
786 L
" Fuel Ore %.3f MT", 0.0f);
787 DrawTextW(str, 0, 270, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
789 L
" Goods %.3f MT",
interactive.tempplot.totalPopulation * 0.0f);
790 DrawTextW(str, 0, 280, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
792 L
" Materials %.3f MT", 0.0f);
793 DrawTextW(str, 0, 290, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
795 L
" Fuel %.3f MT",
interactive.tempplot.totalPopulation * 0.000011785f + grow * 0.0000002035f);
796 DrawTextW(str, 0, 300, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
800 short x = 210,
y = 45;
805 DrawTextW(L
"** We desperately need food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
812 DrawTextW(L
"++ We have less than a week's supply of food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
819 DrawTextW(L
"++ The colony up-link has failed!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
824 DrawTextW(L
"++ This farm will miss this first harvest!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
829 DrawTextW(L
"++ No space for the upcoming harvest!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
834 DrawTextW(L
"++ Production halted, out of refined Iagreous fuel!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
839 DrawTextW(L
"++ The colony is overpopulated!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
844 swprintf_s(str, 99, L
".. We have %i people reassigned for construction",
interactive.tempplot.colonistsbuilding);
845 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
851 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
859 DrawTextW(L
".. Algae farms are currently out of season",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
865 DrawTextW(L
".. No new messages!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
870 char buy[15], sell[15];
871 DrawTextW(L
" Commodity Type Inventory Units Buying Selling", 0, 30, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
874 sprintf_s(buy,
sizeof(buy),
"No");
876 sprintf_s(buy,
sizeof(buy),
"%i CR/MT",
interactive.tempdock.buyA);
878 sprintf_s(sell,
sizeof(sell),
"No");
880 sprintf_s(sell,
sizeof(sell),
"%i CR/MT",
interactive.tempdock.sellA);
881 swprintf_s(str, 99, L
"1] Rare/Precious %-9.0f MT %-12S %-12S", floorf(
interactive.tempdock.procstorA), buy, sell);
882 DrawTextW(str, 0, 70, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
885 sprintf_s(buy,
sizeof(buy),
"No");
887 sprintf_s(buy,
sizeof(buy),
"%i CR/MT",
interactive.tempdock.buyB);
889 sprintf_s(sell,
sizeof(sell),
"No");
891 sprintf_s(sell,
sizeof(sell),
"%i CR/MT",
interactive.tempdock.sellB);
892 swprintf_s(str, 99, L
"2] Foodstuffs %-9.0f MT %-12S %-12S", floorf(
interactive.tempdock.procstorfood), buy, sell);
893 DrawTextW(str, 0, 95, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
896 sprintf_s(buy,
sizeof(buy),
"No");
898 sprintf_s(buy,
sizeof(buy),
"%i CR/MT",
interactive.tempdock.buyC);
900 sprintf_s(sell,
sizeof(sell),
"No");
902 sprintf_s(sell,
sizeof(sell),
"%i CR/MT",
interactive.tempdock.sellC);
903 swprintf_s(str, 99, L
"3] Common Materials %-9.0f MT %-12S %-12S", floorf(
interactive.tempdock.procstorC), buy, sell);
904 DrawTextW(str, 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
907 sprintf_s(buy,
sizeof(buy),
"No");
909 sprintf_s(buy,
sizeof(buy),
"%i CR/MT",
interactive.tempdock.buyD);
911 sprintf_s(sell,
sizeof(sell),
"No");
913 sprintf_s(sell,
sizeof(sell),
"%i CR/MT",
interactive.tempdock.sellD);
914 swprintf_s(str, 99, L
"4] Fuel Ore %-9.0f MT %-12S %-12S", floorf(
interactive.tempdock.procstorfuelore), buy, sell);
915 DrawTextW(str, 0, 145, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
918 sprintf_s(buy,
sizeof(buy),
"No");
920 sprintf_s(buy,
sizeof(buy),
"%i CR/MT",
interactive.tempdock.buyE);
922 sprintf_s(sell,
sizeof(sell),
"No");
924 sprintf_s(sell,
sizeof(sell),
"%i CR/MT",
interactive.tempdock.sellE);
925 swprintf_s(str, 99, L
"5] Consumer Goods %-9.0f MT %-12S %-12S", floorf(
interactive.tempdock.procstorgoods), buy, sell);
926 DrawTextW(str, 0, 170, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
929 sprintf_s(buy,
sizeof(buy),
"No");
931 sprintf_s(buy,
sizeof(buy),
"%i CR/MT",
interactive.tempdock.buyF);
933 sprintf_s(sell,
sizeof(sell),
"No");
935 sprintf_s(sell,
sizeof(sell),
"%i CR/MT",
interactive.tempdock.sellF);
936 swprintf_s(str, 99, L
"6] Fabricated Materials %-9.0f MT %-12S %-12S", floorf(
interactive.tempdock.procstormaterials), buy, sell);
937 DrawTextW(str, 0, 195, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
940 sprintf_s(buy,
sizeof(buy),
"No");
942 sprintf_s(buy,
sizeof(buy),
"%i CR/MT",
interactive.tempdock.buyG);
944 sprintf_s(sell,
sizeof(sell),
"No");
946 sprintf_s(sell,
sizeof(sell),
"%i CR/MT",
interactive.tempdock.sellG);
947 swprintf_s(str, 99, L
"7] Iagreous Fuel %-9.0f MT %-12S %-12S", floorf(
interactive.tempdock.procstorfuel), buy, sell);
948 DrawTextW(str, 0, 220, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
952 float gradeadj = 1.0f + powf(
interactive.tempplot.grade * 0.01f, 2.0f) * 63.0f;
961 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
963 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
964 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
970 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
972 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
973 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
981 sprintf_s(timerem,
sizeof(timerem),
"%5i days left ",
interactive.tempplot.constructime / 51948L);
982 else if (
interactive.tempplot.constructime > 3600L)
983 sprintf_s(timerem,
sizeof(timerem),
"%5i hours left ",
interactive.tempplot.constructime / 3600L);
985 sprintf_s(timerem,
sizeof(timerem),
"%5i minutes left",
interactive.tempplot.constructime / 60L);
987 sprintf_s(timerem,
sizeof(timerem),
"One minute left!");
990 L
" CONSTRUCTION IN PROGRESS %S (%i colonists building)", timerem,
interactive.tempplot.colonistsbuilding);
991 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
996 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Needed Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1000 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Recycled Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1003 L
"1] Town Hall %-4i 1 96 colonists %5.0f MT common 13 labor",
interactive.
type1built, ceilf(387.0f * gradeadj));
1004 DrawTextW(str, 0, 50, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1006 L
" %5.0f MT fabricated", ceilf(284.0f * gradeadj));
1007 DrawTextW(str, 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1010 L
"2] Residences %-4i 4 932 colonists %5.0f MT common 2 labor",
interactive.
type2built, ceilf(301.0f * gradeadj));
1011 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1013 L
" %5.0f MT fabricated", ceilf(220.0f * gradeadj));
1014 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1017 L
"3] Industry %-4i 3 Refinement/ %5.0f MT common 16 labor",
interactive.
type3built, ceilf(490.0f * gradeadj));
1018 DrawTextW(str, 0, 100, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1020 L
" Manufacturing %5.0f MT fabricated", ceilf(359.0f * gradeadj));
1021 DrawTextW(str, 0, 110, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1024 L
"4] Research Lab %-4i 1 Technologies/ %5.0f MT common 9 labor",
interactive.
type4built, ceilf(410.0f * gradeadj));
1025 DrawTextW(str, 0, 125, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1027 L
" Products %5.0f MT fabricated", ceilf(301.0f * gradeadj));
1028 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1031 L
"5] Recreation %-4i 3 Casinos %5.0f MT common 3 labor",
interactive.
type5built, ceilf(240.0f * gradeadj));
1032 DrawTextW(str, 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1034 L
" Parks/Shopping %5.0f MT fabricated", ceilf(176.0f * gradeadj));
1035 DrawTextW(str, 0, 160, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1038 L
"6] Material Storage %-4i 1 20479 MT storage %5.0f MT common 8 labor",
interactive.
type6built, ceilf(649.0f * gradeadj));
1039 DrawTextW(str, 0, 175, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1041 L
" %5.0f MT fabricated", 0.0f);
1042 DrawTextW(str, 0, 185, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1045 L
"7] Support Structures %-4i 5 Government %5.0f MT common 12 labor",
interactive.
type7built, ceilf(132.0f * gradeadj));
1046 DrawTextW(str, 0, 200, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1048 L
" %5.0f MT fabricated", ceilf(99.0f * gradeadj));
1049 DrawTextW(str, 0, 210, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1052 L
"8] Power Production %-4i 1 848 GJ daily %5.0f MT common 4 labor",
interactive.
type8built, ceilf(132.0f * gradeadj));
1053 DrawTextW(str, 0, 225, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1055 L
" 7 MT fuel/day %5.0f MT fabricated", ceilf(99.0f * gradeadj));
1056 DrawTextW(str, 0, 235, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1059 L
"9] Defensive Platforms %-4i 1 4 GJ/burst %5.0f MT common 6 labor",
interactive.
type9built, ceilf(132.0f * gradeadj));
1060 DrawTextW(str, 0, 250, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1062 L
" 1 colonist %5.0f MT fabricated", ceilf(99.0f * gradeadj));
1063 DrawTextW(str, 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1070 swprintf_s(str, 99, L
" Welcome! (population %.0f)", floorf(
interactive.tempplot.totalPopulation));
1072 swprintf_s(str, 99, L
" Welcome to %S! (population %.0f)",
interactive.tempplot.boundaryName, floorf(
interactive.tempplot.totalPopulation));
1077 swprintf_s(str, 99, L
" Welcome to %S (population %.0f)",
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
1079 swprintf_s(str, 99, L
" Welcome to %S %S (population %.0f)",
interactive.tempplot.boundaryName,
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
1081 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1089 else if (opeff < 0.0f)
1098 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1101 DrawTextW(L
"1] Survey", 0, 45, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1102 DrawTextW(L
"2] Inventory Management", 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1103 DrawTextW(L
"3] Expansion", 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1104 DrawTextW(L
"4] Demolition", 0, 90, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1105 DrawTextW(L
"5] Manage Trade", 0, 105, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1106 DrawTextW(L
"6] Cargo Operations", 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1108 swprintf_s(str, 99, L
"7] Set ATM Fee (%i CR)",
interactive.tempplot.ATMcharge);
1110 wcscpy_s(str, 99, L
" No ATM Installed");
1111 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1112 DrawTextW(L
"8] Diplomacy", 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1114 float matprod = 0.0f, natused = 0.0f, fuelprod = 0.0f, fueloreused = 0.0f, rarused = 0.0f, goodprod = 0.0f, matused = 0.0f, foodused = 0.0f, fuelused = 0.0f;
1119 float staff =
interactive.tempplot.workingPopulation * (float)
interactive.tempplot.makeF * 0.01f * 0.25f;
1120 staff *=
interactive.tempplot.DlyXtractHarvestProduce;
1122 matprod = staff / 100.0f * 50.0f * opeff;
1123 natused += staff / 100.0f * 50.0f * opeff / 0.98f;
1124 rarused += staff / 100.0f * 50.0f * opeff / 0.98f * 0.060212377f;
1125 fuelused += matprod * 0.011538462f;
1130 float staff =
interactive.tempplot.workingPopulation * (float)
interactive.tempplot.makeG * 0.01f * 0.25f;
1131 staff *=
interactive.tempplot.DlyXtractHarvestProduce;
1133 fuelprod = staff / 100.0f * 6.0f * opeff;
1134 fueloreused += fuelprod / 0.4642857143f;
1135 fuelused += fuelprod * 0.0029312f;
1142 float staff =
interactive.tempplot.workingPopulation * (float)
interactive.tempplot.makeE * 0.01f * 0.25f;
1143 staff *=
interactive.tempplot.DlyXtractHarvestProduce;
1144 goodprod = staff / 100.0f * 2.5f * opeff;
1145 foodused += goodprod * 0.1f * 1.1f;
1146 matused += goodprod * 0.9f * 1.1f;
1147 fuelused += goodprod * 0.25f;
1152 L
" Daily Production: %.3f MT refined fuel", fuelprod);
1153 DrawTextW(str, 0, 170, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1155 L
" %.3f MT materials", matprod);
1156 DrawTextW(str, 0, 180, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1158 L
" %.3f MT goods", goodprod);
1159 DrawTextW(str, 0, 190, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1162 L
" Commodity Daily Consumption");
1163 DrawTextW(str, 0, 205, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1165 L
" Rare %.3f MT", rarused);
1166 DrawTextW(str, 0, 215, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1168 L
" Foodstuffs %.3f MT",
interactive.tempplot.totalPopulation * 0.00109589f + foodused);
1169 DrawTextW(str, 0, 225, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1171 L
" Common %.3f MT", natused);
1172 DrawTextW(str, 0, 235, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1174 L
" Fuel Ore %.3f MT", fueloreused);
1175 DrawTextW(str, 0, 245, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1177 L
" Goods %.3f MT",
interactive.tempplot.totalPopulation * 0.00094486628821917808219178082191781f);
1178 DrawTextW(str, 0, 255, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1180 L
" Materials %.3f MT", matused);
1181 DrawTextW(str, 0, 265, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1183 L
" Fuel %.3f MT",
interactive.tempplot.totalPopulation * 0.000011785f + fuelused);
1184 DrawTextW(str, 0, 275, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1188 short x = 210,
y = 45;
1193 DrawTextW(L
"** We desperately need food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1200 DrawTextW(L
"++ We have less than a week's supply of food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1207 DrawTextW(L
"++ The colony up-link has failed!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1212 DrawTextW(L
"++ Production halted, out of secure processed storage!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1217 DrawTextW(L
"++ Production halted, out of refined Iagreous fuel!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1222 DrawTextW(L
"++ Fabricated production halted,",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1224 DrawTextW(L
"++ into reserves of rare material!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1229 DrawTextW(L
"++ Fabricated production halted,",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1231 DrawTextW(L
"++ into reserves of common material!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1236 DrawTextW(L
"++ Fabricated production halted,",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1238 DrawTextW(L
"++ surplus of fabricated materials!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1243 DrawTextW(L
"++ Fuel refining halted,",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1245 DrawTextW(L
"++ into reserves of unrefined fuel ore!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1250 DrawTextW(L
"++ Fuel refining halted,",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1252 DrawTextW(L
"++ surplus of refined fuel!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1258 DrawTextW(L
"++ Consumer goods production halted,",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1260 DrawTextW(L
"++ into reserves of foodstuffs!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1265 DrawTextW(L
"++ Consumer goods production halted,",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1267 DrawTextW(L
"++ into reserves of fabricated material!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1272 DrawTextW(L
"++ Consumer goods production halted,",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1274 DrawTextW(L
"++ surplus of consumer goods!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1280 DrawTextW(L
"++ The colony is overpopulated!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1285 swprintf_s(str, 99, L
".. We have %i people reassigned for construction",
interactive.tempplot.colonistsbuilding);
1286 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1292 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1297 DrawTextW(L
".. No new messages!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1302 DrawTextW(L
" Commodity Type Options Held We Paid Trading At", 0, 30, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1304 swprintf_s(str, 99, L
"1] Rare/Precious %-9.0f MT %-5i CR %-5i CR", floorf(
interactive.tempdock.procstorA),
interactive.tempdock.sellA,
interactive.tempdock.buyA);
1305 DrawTextW(str, 0, 70, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1307 swprintf_s(str, 99, L
"2] Foodstuffs %-9.0f MT %-5i CR %-5i CR", floorf(
interactive.tempdock.procstorfood),
interactive.tempdock.sellB,
interactive.tempdock.buyB);
1308 DrawTextW(str, 0, 95, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1310 swprintf_s(str, 99, L
"3] Common Materials %-9.0f MT %-5i CR %-5i CR", floorf(
interactive.tempdock.procstorC),
interactive.tempdock.sellC,
interactive.tempdock.buyC);
1311 DrawTextW(str, 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1313 swprintf_s(str, 99, L
"4] Fuel Ore %-9.0f MT %-5i CR %-5i CR", floorf(
interactive.tempdock.procstorfuelore),
interactive.tempdock.sellD,
interactive.tempdock.buyD);
1314 DrawTextW(str, 0, 145, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1316 swprintf_s(str, 99, L
"5] Consumer Goods %-9.0f MT %-5i CR %-5i CR", floorf(
interactive.tempdock.procstorgoods),
interactive.tempdock.sellE,
interactive.tempdock.buyE);
1317 DrawTextW(str, 0, 170, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1319 swprintf_s(str, 99, L
"6] Fabricated Materials %-9.0f MT %-5i CR %-5i CR", floorf(
interactive.tempdock.procstormaterials),
interactive.tempdock.sellF,
interactive.tempdock.buyF);
1320 DrawTextW(str, 0, 195, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1322 swprintf_s(str, 99, L
"7] Iagreous Fuel %-9.0f MT %-5i CR %-5i CR", floorf(
interactive.tempdock.procstorfuel),
interactive.tempdock.sellG,
interactive.tempdock.buyG);
1323 DrawTextW(str, 0, 220, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1326 if (
interactive.tempdock.lastannouncement > 34081)
1328 DrawTextW(L
" Trading volume today: Record-breaking!", 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1330 else if (
interactive.tempdock.lastannouncement > 27264)
1332 DrawTextW(L
" Trading volume today: Very heavy", 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1334 else if (
interactive.tempdock.lastannouncement > 20448)
1336 DrawTextW(L
" Trading volume today: Moderately heavy", 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1338 else if (
interactive.tempdock.lastannouncement > 13632)
1340 DrawTextW(L
" Trading volume today: Average", 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1342 else if (
interactive.tempdock.lastannouncement > 6816)
1344 DrawTextW(L
" Trading volume today: Moderately light", 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1346 else if (
interactive.tempdock.lastannouncement > 0)
1348 DrawTextW(L
" Trading volume today: Very light", 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1352 DrawTextW(L
" Trading volume today: None", 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1360 swprintf_s(str, 99, L
" Welcome! (population %.0f)", floorf(
interactive.tempplot.totalPopulation));
1362 swprintf_s(str, 99, L
" Welcome to %S! (population %.0f)",
interactive.tempplot.boundaryName, floorf(
interactive.tempplot.totalPopulation));
1367 swprintf_s(str, 99, L
" Welcome to %S (population %.0f)",
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
1369 swprintf_s(str, 99, L
" Welcome to %S %S (population %.0f)",
interactive.tempplot.boundaryName,
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
1371 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1379 else if (opeff < 0.0f)
1388 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1391 DrawTextW(L
"1] Survey", 0, 45, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1392 DrawTextW(L
"2] Inventory Management", 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1393 DrawTextW(L
"3] Expansion", 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1394 DrawTextW(L
"4] Demolition", 0, 90, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1395 DrawTextW(L
"5] Manage Trade", 0, 105, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1396 DrawTextW(L
"6] Cargo Operations", 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1398 swprintf_s(str, 99, L
"7] Set ATM Fee (%i CR)",
interactive.tempplot.ATMcharge);
1400 wcscpy_s(str, 99, L
" No ATM Installed");
1401 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1402 DrawTextW(L
"8] Diplomacy", 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1403 DrawTextW(L
"9] Colonist Migration", 0, 165, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1406 float natused = 0.0f, fuelused = 0.0f, rarused = 0.0f;
1436 L
" Commodity Daily Consumption");
1437 DrawTextW(str, 0, 205, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1439 L
" Rare %.3f MT", rarused);
1440 DrawTextW(str, 0, 215, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1442 L
" Foodstuffs %.3f MT",
interactive.tempplot.totalPopulation * 0.00109589f);
1443 DrawTextW(str, 0, 225, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1445 L
" Common %.3f MT", natused);
1446 DrawTextW(str, 0, 235, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1448 L
" Fuel Ore %.3f MT", fuelused);
1449 DrawTextW(str, 0, 245, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1451 L
" Goods %.3f MT", 0.0f);
1452 DrawTextW(str, 0, 255, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1454 L
" Materials %.3f MT", 0.0f);
1455 DrawTextW(str, 0, 265, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1457 L
" Fuel %.3f MT",
interactive.tempplot.totalPopulation * 0.000011785f);
1458 DrawTextW(str, 0, 275, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1462 short x = 210,
y = 45;
1467 DrawTextW(L
"** We desperately need food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1474 DrawTextW(L
"++ We have less than a week's supply of food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1480 DrawTextW(L
"++ We are experiencing power outages, no more refined Iagreous fuel!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1486 DrawTextW(L
"++ The colony up-link has failed!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1491 DrawTextW(L
"++ The colony is overpopulated!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1496 swprintf_s(str, 99, L
".. We have %i people reassigned for construction",
interactive.tempplot.colonistsbuilding);
1497 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1503 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1508 DrawTextW(L
".. No new messages!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1513 float gradeadj = 1.0f;
1515 gradeadj *= 0.2625f;
1522 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1524 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
1525 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1531 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1533 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
1534 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1541 sprintf_s(timerem,
sizeof(timerem),
"%5i days left ",
interactive.tempplot.constructime / 51948L);
1542 else if (
interactive.tempplot.constructime > 3600L)
1543 sprintf_s(timerem,
sizeof(timerem),
"%5i hours left ",
interactive.tempplot.constructime / 3600L);
1545 sprintf_s(timerem,
sizeof(timerem),
"%5i minutes left",
interactive.tempplot.constructime / 60L);
1547 sprintf_s(timerem,
sizeof(timerem),
"One minute left!");
1550 L
" CONSTRUCTION IN PROGRESS %S (%i colonists building)", timerem,
interactive.tempplot.colonistsbuilding);
1551 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1556 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Needed Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1560 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Recycled Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1563 L
"1] Fixed-base Operator %-4i 2 5 colonists %3.0f MT common 1 labor",
interactive.
type1built, ceilf(23.37f * gradeadj));
1564 DrawTextW(str, 0, 50, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1566 L
" %3.0f MT fabricated", ceilf(17.13f * gradeadj));
1567 DrawTextW(str, 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1569#pragma region Runway
1573 if (!(0x80000000 >> (96 - 96) &
interactive.tempplot.layout4))
1576 L
"2] Runway 0 1 Phase 1/3 %3.0f MT common 4 labor", ceilf(0.0f * gradeadj));
1577 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1579 L
" Marston Mat %3.0f MT fabricated", ceilf(531.0f * gradeadj));
1580 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1582 else if (!(0x80000000 >> (97 - 96) &
interactive.tempplot.layout4))
1585 L
"2] Runway 0 1 Phase 2/3 %3.0f MT common 4 labor", ceilf(0.0f * gradeadj));
1586 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1588 L
" Marston Mat %3.0f MT fabricated", ceilf(531.0f * gradeadj));
1589 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1591 else if ((!(0x80000000 >> (98 - 96) &
interactive.tempplot.layout4)))
1594 L
"2] Runway 0 1 Phase 3/3 %3.0f MT common 4 labor", ceilf(0.0f * gradeadj));
1595 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1597 L
" Marston Mat %3.0f MT fabricated", ceilf(531.0f * gradeadj));
1598 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1603 L
"2] Runway 1 1 %3.0f MT common 4 labor", ceilf(0.0f * gradeadj));
1604 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1606 L
" Marston Mat %3.0f MT fabricated", ceilf(1593.0f * gradeadj));
1607 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1613 if (!(0x80000000 >> (96 - 96) &
interactive.tempplot.layout4))
1616 L
"2] Runway 0 1 %3.0f MT common 4 labor", ceilf(0.0f * gradeadj));
1617 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1619 L
" %3.0f MT fabricated", ceilf(1593.0f * gradeadj));
1620 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1622 else if (!(0x80000000 >> (97 - 96) &
interactive.tempplot.layout4))
1625 L
"2] Runway 0 1 Phase 1/3 %3.0f MT common 4 labor", ceilf(0.0f * gradeadj));
1626 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1628 L
" Marston Mat %3.0f MT fabricated", ceilf(531.0f * gradeadj));
1629 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1631 else if (!(0x80000000 >> (98 - 96) &
interactive.tempplot.layout4))
1634 L
"2] Runway 0 1 Phase 2/3 %3.0f MT common 4 labor", ceilf(0.0f * gradeadj));
1635 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1637 L
" Marston Mat %3.0f MT fabricated", ceilf(531.0f * gradeadj));
1638 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1643 L
"2] Runway 1 1 Phase 3/3 %3.0f MT common 4 labor", ceilf(0.0f * gradeadj));
1644 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1646 L
" Marston Mat %3.0f MT fabricated", ceilf(531.0f * gradeadj));
1647 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1653 L
"3] Terminal %-4i 1 8 colonists %3.0f MT common 11 labor",
interactive.
type3built, ceilf(267.01f * gradeadj));
1654 DrawTextW(str, 0, 100, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1656 L
" 20479 MT storage %3.0f MT fabricated", ceilf(195.72f * gradeadj));
1657 DrawTextW(str, 0, 110, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1660 L
"4] Hangar %-4i 1 6 colonists %3.0f MT common 61 labor",
interactive.
type4built, ceilf(143.04f * gradeadj));
1661 DrawTextW(str, 0, 125, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1663 L
" %3.0f MT fabricated", ceilf(104.85f * gradeadj));
1664 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1667 L
"5] Hotel %-4i 2 824 colonists %3.0f MT common 6 labor",
interactive.
type5built, ceilf(151.13f * gradeadj));
1668 DrawTextW(str, 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1670 L
" %3.0f MT fabricated", ceilf(110.78f * gradeadj));
1671 DrawTextW(str, 0, 160, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1674 L
"6] Fuel Farm %-4i 2 25810 MT storage %3.0f MT common 5 labor",
interactive.
type6built, ceilf(58.57f * gradeadj));
1675 DrawTextW(str, 0, 175, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1677 L
" %3.0f MT fabricated", ceilf(42.93f * gradeadj));
1678 DrawTextW(str, 0, 185, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1681 L
"7] Support Structures %-4i 5 %3.0f MT common 2 labor",
interactive.
type7built, ceilf(42.96f * gradeadj));
1682 DrawTextW(str, 0, 200, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1684 L
" %3.0f MT fabricated", ceilf(31.49f * gradeadj));
1685 DrawTextW(str, 0, 210, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1688 L
"8] Power Production %-4i 1 212 GJ daily %3.0f MT common 1 labor",
interactive.
type8built, ceilf(31.88f * gradeadj));
1689 DrawTextW(str, 0, 225, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1691 L
" 1 colonist %3.0f MT fabricated", ceilf(23.37f * gradeadj));
1692 DrawTextW(str, 0, 235, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1695 L
"9] Control Tower %-4i 1 1 colonist %3.0f MT common 2 labor",
interactive.
type9built, ceilf(36.40f * gradeadj));
1696 DrawTextW(str, 0, 250, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1698 L
" %3.0f MT fabricated", ceilf(26.68f * gradeadj));
1699 DrawTextW(str, 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1703 DrawTextW(L
" Inventory Type Inventory Units", 0, 30, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1705 for (
size_t i = 0; i < 9; i++)
1714 swprintf_s(str, 99, L
"%zu] Lock Pick Set %3i", i + 1,
interactive.inventory[i].quantity);
break;
1716 swprintf_s(str, 99, L
"%zu] Binoculars %3i", i + 1,
interactive.inventory[i].quantity);
break;
1718 swprintf_s(str, 99, L
"%zu] ATM %3i", i + 1,
interactive.inventory[i].quantity);
break;
1720 swprintf_s(str, 99, L
"%zu] Night Vision %3i", i + 1,
interactive.inventory[i].quantity);
break;
1722 swprintf_s(str, 99, L
"%zu] E-11 Upgrade Voucher %3i", i + 1,
interactive.inventory[i].quantity);
break;
1724 swprintf_s(str, 99, L
"%zu] Sunglasses %3i", i + 1,
interactive.inventory[i].quantity);
break;
1726 swprintf_s(str, 99, L
"%zu] Fireworks %3i", i + 1,
interactive.inventory[i].quantity);
break;
1728 swprintf_s(str, 99, L
"%zu] Temp Runway Lights %3i", i + 1,
interactive.inventory[i].quantity);
break;
1730 swprintf_s(str, 99, L
"%zu] Colony Up-link %3i", i + 1,
interactive.inventory[i].quantity);
break;
1732 swprintf_s(str, 99, L
"%zu] First Aid Kit %3i", i + 1,
interactive.inventory[i].quantity);
break;
1734 swprintf_s(str, 99, L
"%zu] Candy Cane %3i", i + 1,
interactive.inventory[i].quantity);
break;
1736 swprintf_s(str, 99, L
"%zu] EVA Suit %3i", i + 1,
interactive.inventory[i].quantity);
break;
1738 swprintf_s(str, 99, L
"%zu] Backpack %3i", i + 1,
interactive.inventory[i].quantity);
break;
1740 swprintf_s(str, 99, L
"%zu] Cigarettes, Carton %3i", i + 1,
interactive.inventory[i].quantity);
break;
1742 swprintf_s(str, 99, L
"%zu] Polaroid Picture %3i", i + 1,
interactive.inventory[i].quantity);
break;
1744 swprintf_s(str, 99, L
" UNKNOWN GENERAL SUB %3i",
interactive.inventory[i].quantity);
break;
1749 swprintf_s(str, 99, L
" UNKNOWN AVIONICS SUB %3i",
interactive.inventory[i].quantity);
1756 swprintf_s(str, 99, L
"%zu] Fuzer Launcher %3i", i + 1,
interactive.inventory[i].quantity);
break;
1758 swprintf_s(str, 99, L
"%zu] Sinker Launcher %3i", i + 1,
interactive.inventory[i].quantity);
break;
1760 swprintf_s(str, 99, L
"%zu] Longarm Launcher %3i", i + 1,
interactive.inventory[i].quantity);
break;
1762 swprintf_s(str, 99, L
" UNKNOWN WEAPONS SUB %3i",
interactive.inventory[i].quantity);
break;
1767 swprintf_s(str, 99, L
" UNKNOWN TYPE %3i",
interactive.inventory[i].quantity);
1769 DrawTextW(str, 0, 70 + 25 * i, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1777 swprintf_s(str, 99, L
" Welcome! (population %.0f)", floorf(
interactive.tempplot.totalPopulation));
1779 swprintf_s(str, 99, L
" Welcome to %S! (population %.0f)",
interactive.tempplot.boundaryName, floorf(
interactive.tempplot.totalPopulation));
1784 swprintf_s(str, 99, L
" Welcome to %S (population %.0f)",
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
1786 swprintf_s(str, 99, L
" Welcome to %S %S (population %.0f)",
interactive.tempplot.boundaryName,
interactive.tempplot.colonyName, floorf(
interactive.tempplot.totalPopulation));
1788 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1796 else if (opeff < 0.0f)
1805 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1808 DrawTextW(L
"1] Survey", 0, 45, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1809 DrawTextW(L
"2] Inventory Management", 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1810 DrawTextW(L
"3] Expansion", 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1811 DrawTextW(L
"4] Demolition", 0, 90, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1812 DrawTextW(L
"5] Manage Trade", 0, 105, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1813 DrawTextW(L
"6] Cargo Operations", 0, 120, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1815 swprintf_s(str, 99, L
"7] Set ATM Fee (%i CR)",
interactive.tempplot.ATMcharge);
1817 wcscpy_s(str, 99, L
" No ATM Installed");
1818 DrawTextW(str, 0, 135, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1819 DrawTextW(L
"8] Diplomacy", 0, 150, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1821 float fuelprod = 0.0f;
1822 float fuelused = 0.0f;
1825 float staff =
interactive.tempplot.workingPopulation;
1826 fuelprod += staff / 250.0f *
interactive.tempplot.DlyXtractHarvestProduce * opeff;
1827 fuelused += staff / 250.0f *
interactive.tempplot.DlyXtractHarvestProduce * opeff / 0.4642857143f;
1832 L
" Daily Production: %.3f MT refined fuel", fuelprod);
1833 DrawTextW(str, 0, 170, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1836 L
" Commodity Daily Consumption");
1837 DrawTextW(str, 0, 205, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1839 L
" Rare %.3f MT", 0.0);
1840 DrawTextW(str, 0, 215, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1842 L
" Foodstuffs %.3f MT",
interactive.tempplot.totalPopulation * 0.00109589f);
1843 DrawTextW(str, 0, 225, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1845 L
" Common %.3f MT", 0.0);
1846 DrawTextW(str, 0, 235, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1848 L
" Fuel Ore %.3f MT", fuelused);
1849 DrawTextW(str, 0, 245, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1851 L
" Goods %.3f MT", 0.0f);
1852 DrawTextW(str, 0, 255, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1854 L
" Materials %.3f MT", 0.0f);
1855 DrawTextW(str, 0, 265, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1857 L
" Fuel %.3f MT",
interactive.tempplot.totalPopulation * 0.000011785f);
1858 DrawTextW(str, 0, 275, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1862 short x = 210,
y = 45;
1867 DrawTextW(L
"** We desperately need food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1874 DrawTextW(L
"++ We have less than a week's supply of food!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1880 DrawTextW(L
"++ We are experiencing power outages, no more refined Iagreous fuel!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1886 DrawTextW(L
"++ The colony up-link has failed!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1891 DrawTextW(L
"++ The colony is overpopulated!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1896 swprintf_s(str, 99, L
".. We have %i people reassigned for construction",
interactive.tempplot.colonistsbuilding);
1897 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1903 DrawTextW(str,
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1908 DrawTextW(L
".. No new messages!",
x,
y, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1913 float gradeadj = 1.0f;
1915 gradeadj *= 0.2625f;
1922 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1924 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
1925 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1931 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1933 L
" %7i MT fabricated", (
int)
interactive.tempplot.procstormaterials);
1934 DrawTextW(str, 0, 20, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1941 sprintf_s(timerem,
sizeof(timerem),
"%5i days left ",
interactive.tempplot.constructime / 51948L);
1942 else if (
interactive.tempplot.constructime > 3600L)
1943 sprintf_s(timerem,
sizeof(timerem),
"%5i hours left ",
interactive.tempplot.constructime / 3600L);
1945 sprintf_s(timerem,
sizeof(timerem),
"%5i minutes left",
interactive.tempplot.constructime / 60L);
1947 sprintf_s(timerem,
sizeof(timerem),
"One minute left!");
1950 L
" CONSTRUCTION IN PROGRESS %S (%i colonists building)", timerem,
interactive.tempplot.colonistsbuilding);
1951 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1956 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Needed Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1960 DrawTextW(L
" Structure Type Built Zoned Adds Capacity Materials Recycled Colonists", 0, 35, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1963 L
"1] Control Center %-4i 1 25 colonists %3.0f MT common 15 labor",
interactive.
type1built, ceilf(23.37f * gradeadj));
1964 DrawTextW(str, 0, 50, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1966 L
" %3.0f MT fabricated", ceilf(17.13f * gradeadj));
1967 DrawTextW(str, 0, 60, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1970 L
"2] Refining %-4i 3 20 MT daily %3.0f MT common 4 labor",
interactive.
type2built, ceilf(489.57f * gradeadj));
1971 DrawTextW(str, 0, 75, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1973 L
" %3.0f MT fabricated", ceilf(358.85f * gradeadj));
1974 DrawTextW(str, 0, 85, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1977 L
"3] Residences %-4i 1 932 colonists %3.0f MT common 2 labor",
interactive.
type3built, ceilf(300.73f * gradeadj));
1978 DrawTextW(str, 0, 100, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1980 L
" %3.0f MT fabricated", ceilf(220.43f * gradeadj));
1981 DrawTextW(str, 0, 110, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
1998 L
"6] Fuel Storage %-4i 6 14777 MT storage %3.0f MT common 3 labor",
interactive.
type6built, ceilf(33.53f * gradeadj));
1999 DrawTextW(str, 0, 175, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2001 L
" %3.0f MT fabricated", ceilf(24.58f * gradeadj));
2002 DrawTextW(str, 0, 185, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2005 L
"7] Support Structures %-4i 5 %3.0f MT common 2 labor",
interactive.
type7built, ceilf(42.96f * gradeadj));
2006 DrawTextW(str, 0, 200, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2008 L
" %3.0f MT fabricated", ceilf(31.49f * gradeadj));
2009 DrawTextW(str, 0, 210, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2012 L
"8] Power Production %-4i 1 212 GJ daily %3.0f MT common 1 labor",
interactive.
type8built, ceilf(31.88f * gradeadj));
2013 DrawTextW(str, 0, 225, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2015 L
" 1 colonist %3.0f MT fabricated", ceilf(23.37f * gradeadj));
2016 DrawTextW(str, 0, 235, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2019 L
"9] Off-gas Tower %-4i 2 1 colonist %3.0f MT common 2 labor",
interactive.
type9built, ceilf(36.40f * gradeadj));
2020 DrawTextW(str, 0, 250, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2022 L
" %3.0f MT fabricated", ceilf(26.68f * gradeadj));
2023 DrawTextW(str, 0, 260, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2028 int maxonhand, minonhand, buyingprice, sellingprice;
2029 char stafftoproduce;
2032 case 21: swprintf_s(str, 99, L
" Rare/Precious %.0f MT on hand", floorf(
interactive.tempplot.procstorA));
2039 case 22: swprintf_s(str, 99, L
" Foodstuffs %.0f MT on hand", floorf(
interactive.tempplot.procstorfood));
2046 case 23: swprintf_s(str, 99, L
" Common Materials %.0f MT on hand", floorf(
interactive.tempplot.procstorC));
2053 case 24: swprintf_s(str, 99, L
" Fuel Ore %.0f MT on hand", floorf(
interactive.tempplot.procstorfuelore));
2060 case 25: swprintf_s(str, 99, L
" Consumer Goods %.0f MT on hand", floorf(
interactive.tempplot.procstorgoods));
2067 case 26: swprintf_s(str, 99, L
" Fabricated Materials %.0f MT on hand", floorf(
interactive.tempplot.procstormaterials));
2074 case 27: swprintf_s(str, 99, L
" Refined Fuel %.0f MT on hand", floorf(
interactive.tempplot.procstorfuel));
2085 DrawTextW(str, 0, 10, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2087 DrawTextW(L
" Option Type Value", 0, 45, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2089 swprintf_s(str, 99, L
"1] Maximum on hand %i MT", maxonhand);
2090 DrawTextW(str, 0, 65, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2091 if (buyingprice > 0)
2092 swprintf_s(str, 99, L
"2] Buying price %i CR per MT", buyingprice);
2094 swprintf_s(str, 99, L
"2] Buying price Not trading...");
2095 DrawTextW(str, 0, 90, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2098 swprintf_s(str, 99, L
"3] Staff to produce %i%% (%.0f colonists)", stafftoproduce, floorf(
interactive.tempplot.workingPopulation * 0.25f * (
float)stafftoproduce * 0.01f));
2100 swprintf_s(str, 99, L
"3] Staff to produce N/A");
2104 DrawTextW(str, 0, 115, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2106 DrawTextW(str, 0, 115, 0.1f, DT_NOCLIP, 0xFF505050);
2116 if (sellingprice > 0)
2117 swprintf_s(str, 99, L
"6] Selling price %i CR per MT", sellingprice);
2119 swprintf_s(str, 99, L
"6] Selling price Not trading...");
2120 DrawTextW(str, 0, 190, 0.1f, DT_NOCLIP, 0xFFA0A0A0);
2122 swprintf_s(str, 99, L
"7] Minimum on hand %i MT", minonhand);
2123 DrawTextW(str, 0, 215, 0.1f, DT_NOCLIP, 0xFFA0A0A0);