2using System.Collections.Generic;
4using UnityEngine.EventSystems;
82 InvokeRepeating(
"RefreshMarkers", 0f,
interval);
133 Vector2 size =
rectMap.rect.size;
134 RectTransformUtility.ScreenPointToLocalPointInRectangle(
rectMap, e.position, e.pressEventCamera, out var localPoint);
135 if (localPoint.x < 0f)
139 else if (localPoint.x >= size.x)
141 localPoint.x = size.x;
143 if (localPoint.y < 0f)
147 else if (localPoint.y >= size.y)
149 localPoint.y = size.y;
151 pos.
Set((
int)((
float)
Size * localPoint.x / size.x), (
int)((
float)
Size * localPoint.y / size.y));
174 ped.useDragThreshold =
false;
186 extra.scale = (int)a;
188 }, 5f, 20f, isInt:
true);
189 uIContextMenu.
AddSlider(
"width", (
float a) => 100 + extra.width +
"%",
extra.
width, delegate(
float a)
191 extra.width = (int)a;
193 }, -25f, 25f, isInt:
true);
196 extra.alpha = (int)a;
198 }, 0f, 255f, isInt:
true);
206 extra.monoColor = (preview.monoColor = a);
215 rectAll.localEulerAngles = ((extra.rotate && !
EMono.
_zone.
IsRegion) ?
new Vector3(60f, 0f, -45f) : Vector3.zero);
231 transBound.localPosition =
new Vector3(x, y, 50f);
237 if (!base.gameObject.activeInHierarchy)
260 float z = (c.IsPCFactionOrMinion ? 9f : (10f + 0.01f * (float)(c.
pos.
z * 200 + c.
pos.
x)));
266 float x = (float)num / (
float)
Size - 0.5f;
267 float y = (float)num2 / (
float)
Size - 0.5f;
269 ParticleSystem.EmitParams emitParams =
default(ParticleSystem.EmitParams);
270 emitParams.position =
new Vector3(x, y, z);
271 emitParams.startSize =
psSize;
273 emitParams.startColor = col;
274 ParticleSystem.EmitParams emitParams2 = emitParams;
275 psAlly.Emit(emitParams2, 1);
void SetAIImmediate(AIAct g)
static BaseGameScreen screen
Point Set(int _x, int _z)
Point Clamp(bool useBounds=false)
void UpdateMap(int x, int z)