9 public override float TargetZoom
13 return 0.01f * (float)
EClass.game.config.regionZoom;
18 public override void OnRenderTile(
Point point, HitResult result,
int dir)
20 EClass.screen.tileSelector.OnRenderTile(point, result, base.ShouldHideTile);
24 public override void RefreshArrow()
26 this.posOrigin = CursorSystem.posOrigin;
27 this.posArrow = CursorSystem.position;
29 if (this.cursorMove ||
EClass.pc.pos.Distance(base.hit) > 1)
31 num = Util.GetAngle(this.posArrow.x -
this.posOrigin.x,
this.posArrow.y -
this.posOrigin.y) + 90f + 22.5f;
35 num = Util.GetAngle((
float)(
EClass.pc.pos.x - base.hit.x), (
float)(
EClass.pc.pos.z - base.hit.z)) - 45f - 22.5f;
45 if (this.clickPos != Vector3.zero)
47 if (Vector3.Distance(Input.mousePosition,
this.clickPos) <
EClass.core.config.game.angleMargin)
51 this.clickPos = Vector3.zero;
53 this.vArrow = Vector2.zero;
55 Action<int, int, int, int> action = delegate(
int x,
int y,
int i,
int a)
57 this.vArrow.x = (float)x;
58 this.vArrow.y = (float)y;
62 if (num < 45f || num >= 360f)
89 action(1, -1, 5, 215);
94 action(0, -1, 6, 270);
97 action(-1, -1, 7, 325);
101 public Point posHighlight;