private void ListBox6_MouseClick(object sender, EventArgs eventArgs) { if (listBox6.SelectedItem != null) { IM = InspectMode.AnimFrame; } }
public void SwitchToMode(InspectMode mode, bool force = false) { if (mode == m_Mode && !force) { return; } m_Mode = mode; }
void textView_MouseHover(object sender, MouseHoverEventArgs e) { if (InspectMode.IsInspectModeEnabled) { var doc = WebEssentialsPackage.DTE.ActiveDocument; if (doc != null) { InspectMode.Select(e.View.TextDataModel.DocumentBuffer.GetFileName(), e.Position); } } }
private void ShowPic(InspectMode mode) { string path; switch (mode) { case InspectMode.Animation: path = folderpath + "\\" + Anim + "\\" + Clip + "\\" + Frame; break; case InspectMode.Collection: path = folderpath + "\\" + Anim + "\\0.Atlases\\" + Oriatlas; break; case InspectMode.GenCollection: path = folderpath + "\\" + Anim + "\\0.Atlases\\" + Genatlas; break; case InspectMode.AnimFrame: path = folderpath + "\\" + Anim + "\\" + Clip + "\\" + Frame; break; case InspectMode.CollFrame: path = Collection.GetCollectionByName(Oriatlas).frames.First(f => f.info.Name == Frame).info.FullName; Anim = path.Replace(new DirectoryInfo(folderpath).FullName + "\\", "").Split('\\')[0]; Clip = path.Replace(new DirectoryInfo(folderpath).FullName + "\\", "").Split('\\')[1]; break; case InspectMode.Backup: path = _backups.First(b => b.info.Name == Backup).info.FullName; Anim = path.Replace(new DirectoryInfo(folderpath).FullName + "\\", "").Split('\\')[0]; Clip = path.Replace(new DirectoryInfo(folderpath).FullName + "\\", "").Split('\\')[1]; Frame = path.Replace(new DirectoryInfo(folderpath).FullName + "\\", "").Split('\\')[2].Remove(10, 14); break; default: path = ""; break; } if (File.Exists(path)) { if (pictureBox1.Image != null) { pictureBox1.Image.Dispose(); } pictureBox1.Image = Image.FromFile(path); } }
private static void InspectLayers() { inspectMode = InspectMode.Layers; EditorApplication.DirtyHierarchyWindowSorting(); }
private static void InspectComponents() { inspectMode = InspectMode.Components; EditorApplication.DirtyHierarchyWindowSorting(); }
private void ListBox8_MouseClick(object sender, EventArgs eventArgs) { IM = InspectMode.AnimFrame; }
private void ListBox7_MouseClick(object sender, EventArgs eventArgs) { IM = InspectMode.Backup; }
private void ListBox5_MouseClick(object sender, EventArgs eventArgs) { IM = InspectMode.GenCollection; }
private void ListBox2_MouseClick(object sender, EventArgs eventArgs) { IM = InspectMode.Animation; }
public static VisibilityAttribute Visibility(InspectMode mode) { return(new VisibilityAttribute { Mode = mode }); }