public static UIRect getRect(string control) { try { if (A_Collection.Environment.Scene.GameTick > 1 && A_Collection.Environment.Scene.Counter_CurrentFrame != 0) { UXItemsControl _control = UXHelper.GetControl <UXItemsControl>(control); UIRect rect = _control.x468_UIRect.TranslateToClientRect(Engine.Current.VideoPreferences.x0C_DisplayMode.x20_Width, Engine.Current.VideoPreferences.x0C_DisplayMode.x24_Height); return(rect); } return(default(UIRect)); } catch { return(default(UIRect)); } }
public static UIRect getRect(string control) { try { if (A_Collection.Environment.Scene.GameTick > 1 && A_Collection.Environment.Scene.Counter_CurrentFrame != 0) { UXItemsControl _control = UXHelper.GetControl <UXItemsControl>(control); int video_width = A_Collection.D3Client.Window.D3ClientRect.Width; int video_height = A_Collection.D3Client.Window.D3ClientRect.Height; UIRect rect = _control.x468_UIRect.TranslateToClientRect(video_width, video_height); return(rect); } return(default(UIRect)); } catch { return(default(UIRect)); } }