Merge pull request #741 from Ghoulboy78/distance_beta-upgrade
Update distance_beta.sc
This commit is contained in:
1 file changed
+3
-4
@@ -64,7 +64,7 @@ _create_shapes(mode, from, to) ->
|
|||||||
shapes += ['label', 'pos',to+[0,0.2,0], 'align', 'left', 'text',_round(_euclidean(from, [to:0, from:1, to:2]), 0.001)];
|
shapes += ['label', 'pos',to+[0,0.2,0], 'align', 'left', 'text',_round(_euclidean(from, [to:0, from:1, to:2]), 0.001)];
|
||||||
shapes += ['label', 'pos',to+[0,0.2,0], 'height', 1, 'align', 'right', 'indent', -1.5, 'text',format('rb Manhattan:')];
|
shapes += ['label', 'pos',to+[0,0.2,0], 'height', 1, 'align', 'right', 'indent', -1.5, 'text',format('rb Manhattan:')];
|
||||||
shapes += ['label', 'pos',to+[0,0.2,0], 'height', 1, 'align', 'left', 'text',_round(_manhattan(from,to),0.001)];
|
shapes += ['label', 'pos',to+[0,0.2,0], 'height', 1, 'align', 'left', 'text',_round(_manhattan(from,to),0.001)];
|
||||||
shapes += ['label', 'pos',to+[0,0.2,0], 'height', 2, 'align', 'right', 'indent', -1.5, 'text',format('rb Euclidian:')];
|
shapes += ['label', 'pos',to+[0,0.2,0], 'height', 2, 'align', 'right', 'indent', -1.5, 'text',format('rb Euclidean:')];
|
||||||
shapes += ['label', 'pos',to+[0,0.2,0], 'height', 2, 'align', 'left', 'text',_round(_euclidean(from,to),0.001)];
|
shapes += ['label', 'pos',to+[0,0.2,0], 'height', 2, 'align', 'left', 'text',_round(_euclidean(from,to),0.001)];
|
||||||
map(shapes, put(_, 1, [20, 'player', player()], 'extend'); _);
|
map(shapes, put(_, 1, [20, 'player', player()], 'extend'); _);
|
||||||
);
|
);
|
||||||
@@ -77,9 +77,8 @@ set_start(pos)->(
|
|||||||
);
|
);
|
||||||
|
|
||||||
set_mode(mode)->(
|
set_mode(mode)->(
|
||||||
if (global_display_modes ~ mode,
|
global_current_mode = mode;
|
||||||
global_current_mode = mode
|
print(player(),format('gi Set display mode to '+mode))
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
calculate(end)->(
|
calculate(end)->(
|
||||||
|
|||||||
Reference in new issue
Block a user