public override bool FinishedLaunching(UIApplication app, NSDictionary options) { DefaultFrames.Initialize(Device.DeviceType); window = new UIWindow(UIScreen.MainScreen.Bounds); _controller = new MainViewController(); window.RootViewController = _controller; window.MakeKeyAndVisible(); return(true); }
internal static void FrameCtrl_Load_Postfix(string _file) { if (SaveFrame.Value && !_file.IsNullOrEmpty() && !DefaultFrames.Contains(_file.ToLower())) { //Save the frame to the scene data string filePath = $"{UserData.Path}frame/{_file}"; GetSceneController().SetFrameTex(filePath); } else { GetSceneController().ClearFrameTex(); } }
internal static void FrameCtrlLoadHook(string _file) { if (SaveFrame.Value && !_file.IsNullOrEmpty() && !DefaultFrames.Contains(_file.ToLower())) { //Save the frame to the scene data string filePath = UserData.Path + "frame/" + _file; Logger.LogDebug($"Saving frame image to scene data."); GetSceneController().SetFrameTex(filePath); } else { GetSceneController().ClearFrameTex(); } }