68 systemname.
SetPos( screenskipby4[0]+0.03, screenskipby4[3]+0.02 );
70 systemname.
SetText( systemnamestring );
72 static float background_alpha =
75 bool automatte = (0 == tpbg.a);
76 if (automatte) systemname.
bgcol =
GFXColor( 0, 0, 0, background_alpha );
77 systemname.
Draw( systemnamestring, 0,
true,
false, automatte );
78 systemname.
bgcol = tpbg;
83 navdrawlist mouselist( 1, screenoccupation, factioncolours );
88 float zdistance = 0.0;
91 Adjust3dTransformation( system_view == VIEW_3D, 1 );
101 pos = (*bleh)->Position();
114 float max_x = (
float) pos.i;
115 float min_x = (
float) pos.i;
116 float max_y = (
float) pos.j;
117 float min_y = (
float) pos.j;
118 float max_z = (
float) pos.k;
119 float min_z = (
float) pos.k;
124 float center_nav_x = ( (screenskipby4[0]+screenskipby4[1])/2 );
125 float center_nav_y = ( (screenskipby4[2]+screenskipby4[3])/2 );
135 string temp = (*bleh)->name;
136 pos = (*bleh)->Position();
148 RecordMinAndMax( pos, min_x, max_x, min_y, max_y, min_z, max_z, themaxvalue );
155 center_x = (min_x+max_x)/2;
156 center_y = (min_y+max_y)/2;
157 center_z = (min_z+max_z)/2;
160 max_x = 2*max_x-center_x;
161 max_y = 2*max_y-center_y;
162 max_z = 2*max_z-center_z;
163 min_x = 2*min_x-center_x;
164 min_y = 2*min_y-center_y;
165 min_z = 2*min_z-center_z;
176 float half_x = (max_x-min_x);
177 float half_y = (max_y-min_y);
178 float half_z = (max_z-min_z);
180 camera_z =
sqrt( (half_x*half_x)+(half_y*half_y)+(half_z*half_z) );
189 DrawOriginOrientationTri( center_nav_x, center_nav_y, 1 );
221 string temp = (*blah)->name;
223 pos = (*blah)->Position();
226 float the_x, the_y, the_x_flat, the_y_flat, system_item_scale_temp;
227 TranslateCoordinates( pos,
238 system_item_scale_temp,
242 if ( !
TestIfInRange( screenskipby4[0], screenskipby4[1], screenskipby4[2], screenskipby4[3], the_x, the_y ) ) {
253 float insert_size = 0.0;
255 if ( (*blah)->isUnit() ==
UNITPTR ) {
274 if ( (*blah)->GetComputerData().max_speed() == 0 ) {
280 if ( ThePlayer->
InRange( (*blah),
false,
false ) ) {
313 }
else if ( (*blah)->isUnit() ==
PLANETPTR ) {
319 }
else if ( !( (*blah)->GetDestinations().empty() ) ) {
328 }
else if ( (*blah)->isUnit() ==
MISSILEPTR ) {
336 }
else if ( (*blah)->isUnit() ==
NEBULAPTR ) {
345 if ( system_item_scale_temp > (system_item_scale*3) )
346 system_item_scale_temp = (system_item_scale*3);
347 insert_size *= system_item_scale_temp;
350 static float col[4] = {1, 0.3, 0.3, 0.8};
351 static bool init =
false;
358 bool tests_in_range = 0;
360 tests_in_range =
TestIfInRangeBlk( the_x, the_y, insert_size, mouse_x_current, mouse_y_current );
362 tests_in_range =
TestIfInRangeRad( the_x, the_y, insert_size, mouse_x_current, mouse_y_current );
363 Unit *myunit = (*blah);
366 DisplayOrientationLines( the_x, the_y, the_x_flat, the_y_flat, 1 );
367 if (tests_in_range) {
368 mouselist.
insert( insert_type, insert_size, the_x, the_y, myunit );
377 (*blah) ?
true :
false,
389 if (mouse_wentdown[2] == 1)
395 while (r < rotations) {
410 if ( 1 ||
checkbit( buttonstates, 1 ) ) {
414 if (mouse_wentdown[0] == 1) {
419 if ( currentselection.
GetUnit() ) {