コード例 #1
0
        private void DrawSelectedObjectIndicator()
        {
            if (!_isInMapEditorMode || _selectedMapObject == null)
            {
                return;
            }

            new TextElement
            {
                Message = _selectedMapObject.ModelName,
                NormalizedScreenPosition = NativeUtility.WorldToScreen(_selectedMapObject.Position),
                FontSizeInPixels         = 16,
                Color      = Color.White,
                IsCentered = true,
            }.Draw();
        }