Пример #1
0
        public TargetSpecific addTarget(
            Color4 color,
            FetchTextFunc fetchTextBelow = null,
            FetchTextFunc fetchTextAbove = null,
            SSObject target = null)
        {
            var newTarget = new TargetSpecific (_main3dScene, _hud2dScene);
            newTarget.target = target;
            newTarget.color = color;
            newTarget.fetchTextBelow = fetchTextBelow ?? _defaultFetchText;
            newTarget.fetchTextAbove = fetchTextAbove ?? _defaultFetchText;

            return newTarget;
        }
Пример #2
0
        public TargetSpecific addTarget(
            FetchColorFunc fetchColor    = null,
            FetchTextFunc fetchTextBelow = null,
            FetchTextFunc fetchTextAbove = null,
            SSObject target = null)
        {
            var newTarget = new TargetSpecific(_main3dScene, _hud2dScene);

            newTarget.targetObj      = target;
            newTarget.fetchColor     = fetchColor ?? _defaultFetchColor;
            newTarget.fetchTextBelow = fetchTextBelow ?? _defaultFetchText;
            newTarget.fetchTextAbove = fetchTextAbove ?? _defaultFetchText;

            _targets.Add(newTarget);

            return(newTarget);
        }