private void drawWindow(int windowID)
 {
     GUILayout.Box(_camera.Texture2D);
     GUI.DrawTexture(GUILayoutUtility.GetLastRect(), viewfinder);
     GUILayout.BeginHorizontal();
     _saveToFile = GUILayout.Toggle(_saveToFile, new GUIContent(cacheautoLOC_TST_0031, cacheautoLOC_TST_0032));
     if (GUILayout.Button(new GUIContent(cacheautoLOC_TST_0033, cacheautoLOC_TST_0034)))
     {
         StartCoroutine(fireCamera(_saveToFile));
     }
     if (GUILayout.Button(windowState == WindowSate.Small ? new GUIContent(cacheautoLOC_TST_0035, cacheautoLOC_TST_0036) : new GUIContent(cacheautoLOC_TST_0037, cacheautoLOC_TST_0038)))
     {
         windowState = windowState == WindowSate.Small ? WindowSate.Large : WindowSate.Small;
         int w = (windowState == WindowSate.Small ? GUI_WIDTH_SMALL : GUI_WIDTH_LARGE);
         _camera.changeSize(w, w);
         _windowRect.height = 0;
     }
     GUILayout.EndHorizontal();
     if (TSTMstStgs.Instance.TSTsettings.Tooltips)
     {
         Utilities.SetTooltipText();
     }
     GUI.DragWindow();
 }
Exemple #2
0
 private void drawWindow(int windowID)
 {
     GUILayout.Box(_camera.Texture2D);
     GUI.DrawTexture(GUILayoutUtility.GetLastRect(), viewfinder);
     GUILayout.BeginHorizontal();
     _saveToFile = GUILayout.Toggle(_saveToFile, new GUIContent("Save To File", "If this is on, picture files will be saved to GameData/TarsierSpaceTech/PluginData/TarsierSpaceTech"));
     if (GUILayout.Button(new GUIContent("Fire", "Fire the Laser!")))
     {
         StartCoroutine(fireCamera(_saveToFile));
     }
     if (GUILayout.Button(windowState == WindowSate.Small ? new GUIContent("Large", "Set Large Window Size") : new GUIContent("Small", "set Small Window Size")))
     {
         windowState = windowState == WindowSate.Small ? WindowSate.Large : WindowSate.Small;
         int w = (windowState == WindowSate.Small ? GUI_WIDTH_SMALL : GUI_WIDTH_LARGE);
         _camera.changeSize(w, w);
         _windowRect.height = 0;
     }
     GUILayout.EndHorizontal();
     if (TSTMstStgs.Instance.TSTsettings.Tooltips)
     {
         Utilities.SetTooltipText();
     }
     GUI.DragWindow();
 }
 private void drawWindow(int windowID)
 {
     GUILayout.Box(_camera.Texture2D);
     GUI.DrawTexture(GUILayoutUtility.GetLastRect(), viewfinder);
     GUILayout.BeginHorizontal();
     _saveToFile = GUILayout.Toggle(_saveToFile, new GUIContent("Save To File", "If this is on, picture files will be saved to GameData/TarsierSpaceTech/PluginData/TarsierSpaceTech"));
     if (GUILayout.Button(new GUIContent("Fire", "Fire the Laser!"))) StartCoroutine(fireCamera(_saveToFile));
     if (GUILayout.Button(windowState == WindowSate.Small ? new GUIContent("Large", "Set Large Window Size") : new GUIContent("Small", "set Small Window Size")))
     {
         windowState = windowState == WindowSate.Small ? WindowSate.Large : WindowSate.Small;
         int w = (windowState == WindowSate.Small ? GUI_WIDTH_SMALL : GUI_WIDTH_LARGE);
         _camera.changeSize(w, w);
         _windowRect.height = 0;
     }
     GUILayout.EndHorizontal();
     if (TSTMstStgs.Instance.TSTsettings.Tooltips)
         Utilities.SetTooltipText();
     GUI.DragWindow();
 }