示例#1
0
        public void Draw(Transform2 parentTransform)
        {
            var absoluteTransform = parentTransform + _transform;

            Branch.ParentLocation = absoluteTransform.Location;
            _current.Draw(parentTransform + _transform);
        }
示例#2
0
 public void Draw(Transform2 parentTransform)
 {
     if (_showsHoveredPathDirections)
     {
         _currentPathTransforms.ToList().ForEach(x => _highlight.Draw(parentTransform + x));
     }
 }
示例#3
0
 public void Draw(Transform2 parentTransform)
 {
     if (_isRunning)
     {
         _current.Draw(parentTransform);
     }
     else
     {
         _visual.Draw(parentTransform);
     }
 }
示例#4
0
        public void Draw(Transform2 parentTransform)
        {
            if (!_scanningIsAllowed())
            {
                return;
            }

            _scanAnimation.Draw(parentTransform);
            if (!_startedScanning)
            {
                _startScanButton.Draw(parentTransform);
            }
            if (_isShowingScanData)
            {
                _reader.Draw();
                _nameDataLabel.Draw();
            }
        }
示例#5
0
 public void Draw()
 {
     if (_isInTheMiddleOfDialog)
     {
         UI.FillScreen(_locationMemory);
         if (_isCharacterTalking)
         {
             _personImage.Draw();
         }
         _personName.Draw();
         _player.Draw();
         _reader.Draw();
     }
     else
     {
         _characterOptions.ForEach(c => c.Draw(Transform2.Zero));
         _dialogOptions.ForEachIndex((d, i) => d.Draw(new Transform2(new Vector2(0, -300 + i * 100))));
         GameObjects.Hud.Draw(Transform2.Zero);
     }
 }
示例#6
0
        public void Draw()
        {
            UI.FillScreen(_locationImage);

            _visuals.ForEach(x => x.Draw());
            if (_isLoitering)
            {
                _objectives.Draw();
                GameObjects.Hud.Draw();
            }

            if (_isPresentingToUser)
            {
                _reader.Draw();
            }
            _subview.Draw();

            UI.FillScreen("UI/ScreenOverlay-Purple");
            _locationNameLabel.Draw();
        }
示例#7
0
 public void Draw(IVisual visual)
 {
     visual.Draw(new Transform2(_position));
 }
示例#8
0
 protected override void DrawForeground()
 {
     UI.FillScreen("Pondering/PonderingOverlay");
     _header.Draw();
 }
示例#9
0
 public void Draw(IVisual visual)
 {
     visual.Draw(_position);
 }
示例#10
0
 public void Draw(IVisual visual, Transform2 parentTransform)
 {
     visual.Draw(parentTransform + _bobbingEffect[_index]);
 }
示例#11
0
 public void Draw(Transform2 parentTransform)
 {
     IfRunning(() => _visual.Draw(parentTransform));
 }
 public void Draw(Transform2 parentTransform)
 {
     BobbingEffect.Draw(_imageBox, parentTransform);
     _nameLabel.Draw(parentTransform);
 }
 public void Draw(Transform2 parentTransform)
 {
     _visual.Draw(parentTransform + _offset);
 }
示例#14
0
 protected override void DrawForeground()
 {
     UI.FillScreen("UI/ScreenOverlay");
     _headerText.Draw();
 }
 public void Draw(Transform2 parentTransform)
 {
     IfRunning(() => _visual.Draw(new Transform2(_currentPosition)));
 }
示例#16
0
 public void Draw(Transform2 parentTransform)
 {
     _toDraw.Draw(parentTransform);
 }
示例#17
0
 public void Draw(Transform2 parentTransform)
 {
     Branch.ParentLocation = parentTransform.Location;
     _visual.Draw(parentTransform);
 }
示例#18
0
 public static void Draw(this IVisual visual)
 {
     visual.Draw(Transform2.Zero);
 }