// Token: 0x06004EB3 RID: 20147 RVA: 0x00145CD8 File Offset: 0x00143ED8 private static void TextDrag(global::UICamera camera, global::UIInput input, UnityEngine.Event @event, global::UILabel label) { if (input == global::UIUnityEvents.lastInput && camera == global::UIUnityEvents.lastInputCamera) { global::UIUnityEvents.lastLabel = label; TextEditor te = null; if (!global::UIUnityEvents.GetTextEditor(out te)) { return; } if (global::UIUnityEvents.controlID == GUIUtility.hotControl) { global::UITextPosition uitextPosition = camera.RaycastText(Input.mousePosition, label); if ([email protected]) { global::UIUnityEvents.SelectTextPosition(@event, te, ref uitextPosition); } else { global::UIUnityEvents.MoveTextPosition(@event, te, ref uitextPosition); } @event.Use(); } global::UIUnityEvents.TextSharedEnd(false, te, @event); } }
// Token: 0x06004EAF RID: 20143 RVA: 0x00145B2C File Offset: 0x00143D2C private static void TextClickDown(global::UICamera camera, global::UIInput input, UnityEngine.Event @event, global::UILabel label) { global::UITextPosition uitextPosition = ([email protected]) ? camera.RaycastText(Input.mousePosition, label) : default(global::UITextPosition); TextEditor textEditor = null; global::UIUnityEvents.ChangeFocus(camera, input, label); if (!global::UIUnityEvents.GetTextEditor(out textEditor)) { Debug.LogError("Null Text Editor"); } else { GUIUtility.hotControl = global::UIUnityEvents.controlID; global::UIUnityEvents.SetKeyboardControl(); global::UIUnityEvents.MoveTextPosition(@event, textEditor, ref uitextPosition); int clickCount = @event.clickCount; if (clickCount != 2) { if (clickCount == 3) { if (input.trippleClickSelect) { textEditor.SelectCurrentParagraph(); textEditor.MouseDragSelectsWholeWords(true); textEditor.DblClickSnap(1); } } } else { textEditor.SelectCurrentWord(); textEditor.DblClickSnap(0); textEditor.MouseDragSelectsWholeWords(true); } @event.Use(); } global::UIUnityEvents.TextSharedEnd(false, textEditor, @event); }