70 using System.Collections.Generic;
130 GUILayout.BeginHorizontal();
131 GUILayout.FlexibleSpace();
133 GUILayout.FlexibleSpace();
134 GUILayout.EndHorizontal();
154 GUILayout.BeginHorizontal();
155 GUILayout.FlexibleSpace();
157 bool keepOpen = true ;
160 GUILayout.FlexibleSpace();
161 if(GUILayout.Button(
new GUIContent(
"X",
"Close window")))
164 GUILayout.EndHorizontal();
217 return (
new Texture2D(20,10,TextureFormat.ARGB32,
false));
244 GUIStyle currentStyle = GUI.skin.label;
245 GUIContent strContent =
new GUIContent(
"str");
246 float deadZone = currentStyle.CalcSize(strContent).y;
267 GUILayout.BeginHorizontal();
269 if (GUILayout.Button (
new GUIContent (
"PDB File",
"Open the File Open dialogue"))) {
305 if (GUILayout.Button (
new GUIContent (
"Reaction",
"Opens reaction menu")))
337 if (GUILayout.Button (
new GUIContent (
"Animation",
"Opens animation menu")))
370 if (GUILayout.Button (
new GUIContent (
"Atoms",
"Open the Atom appearance dialogue"))) {
385 if(GUILayout.Button(
new GUIContent(
"Sec. Structures",
"Open the secondary structures dialogue"))){
390 if (GUILayout.Button (
new GUIContent (
"Surface",
"Open the Surface rendering dialogue"))) {
421 if (GUILayout.Button (
new GUIContent (
"Electrostat.",
"Open the electrostatics field lines dialogue"))) {
438 if (GUILayout.Button(
new GUIContent(
"Advanced",
"Opens the advanced options menu"))){
443 if (GUILayout.Button (
new GUIContent (
"Guided Nav.",
"Opens the guided navigation menu"))){
448 if (GUILayout.Button(
new GUIContent(
"Sugar",
"Opens the Sugar visualisation menu"))) {
453 if (GUILayout.Button (
new GUIContent(
"Artemis",
"Configure and run a molecular dynamics simulation"))) {
458 if (GUILayout.Button (
new GUIContent(
"HiRE-RNA",
"Setup HiRE-RNA visualization options."))) {
463 if (GUILayout.Button (
new GUIContent(
"Contest",
"Participe to the HiRE-RNA Contest."))) {
468 if (GUILayout.Button (
new GUIContent(
"Reset",
"Resets the molecule to its original position"))) {
474 GameObject hbManagerObj = GameObject.FindGameObjectWithTag(
"HBallManager");
482 lightrans = GameObject.Find(
"Directional light").transform;
484 lightrans.localPosition = Vector3.zero;
485 lightrans.localRotation = Quaternion.identity;
491 GUILayout.EndHorizontal();
509 if (Event.current.type == EventType.Repaint)
static bool showSetAtomScales
override void ResetPositions()
Resets the positions of all balls.
static bool showElectrostaticsMenu
static bool showBackgroundType
static void openCloseSurfaceMenu()
Opens or closes the surface menu.
static bool showArtemisMenu
static ColorPicker m_colorPicker
static Quaternion NA_SCCROT
static bool InDeadZone(Rect rect, Vector3 mpos)
Returns true if the mouse cursor is lower than the Window title.
static bool showSurfaceButton
static bool showAtomsExtendedMenu
static bool showHiRERNAMenu
static bool showSurfaceMenu
static Texture2D MakeButtonTex(Texture2D tex)
Creates a new texture of the appropriate size for a button, unless it already exists.
static bool cutPlaneIsDraggable
static bool showBfactorMenu
static bool toggle_NA_MAXCAM
static bool showReactionMenu
static GameObject scenecontroller
static bool showSurfaceCut
static bool showSugarChainMenu
!WiP Includes FLAGS of GUI.
static bool showPanelsMenu
static void MainFun(int a)
Defines the main menu of the GUI.
static bool SetTitleExit(string s)
This is a somewhat odd but very convenient function.
!WiP manage GUI, and provide static strings for the GUI.
static bool showAnimationMenu
static bool fieldLineColorGradient
static bool toggle_NA_AUTOMOVE
static bool toggle_LIGHTCAM
static void SetTitle(string s)
Sets the title of the current window.
static bool showSurfaceMobileCut
static bool hasMoleculeDisplay
static bool showGuidedMenu
static bool toggle_NA_SWITCH
static bool showChainsMenu
static bool showWebContestMenu
static bool showSurfaceTexture
static bool showSecStructMenu
Triggers the secondary structure menu display.
static bool showResiduesMenu
static bool showGrayColor