AllowTool.Designator_MassSelect.DrawMouseAttachedLabel C# (CSharp) Метод

DrawMouseAttachedLabel() приватный Метод

private DrawMouseAttachedLabel ( string text ) : void
text string
Результат void
		private void DrawMouseAttachedLabel(string text) {
			const float CursorOffset = 12f;
			const float AttachedIconHeight = 32f;
			const float LabelWidth = 200f;
			var mousePosition = Event.current.mousePosition;
			if (text != string.Empty) {
				var rect = new Rect(mousePosition.x + CursorOffset, mousePosition.y + CursorOffset + AttachedIconHeight, LabelWidth, 9999f);
				Text.Font = GameFont.Small;
				Widgets.Label(rect, text);
			}
		}