33 GUILayout.BeginHorizontal();
35 new GUIContent(
"Enable RingBlending",
"enable RingBlending visualisation"));
37 if(!ssToggled && toggle_RING_BLENDING) {
40 if (ssToggled && !toggle_RING_BLENDING) {
44 GUILayout.EndHorizontal();
50 GUILayout.BeginHorizontal();
52 new GUIContent(
"Enable SugarRibbons",
"Switch between all-atoms and SugarRibbons representation"));
55 if(!twToggled && toggle_TWISTER) {
67 toggle_SHOW_HB_NOT_SUGAR =
false;
68 toggle_SHOW_HB_W_SR =
false;
72 }
else if (twToggled && !toggle_TWISTER) {
82 GUILayout.EndHorizontal();
85 GUILayout.BeginHorizontal();
88 new GUIContent(
"Hide Hydrogens",
"hide hydrogens atoms"));
93 GUILayout.EndHorizontal();
95 GUILayout.BeginHorizontal();
96 GUILayout.Label(
">> Hiding atoms");
97 GUILayout.EndHorizontal();
100 GUILayout.BeginHorizontal();
103 new GUIContent(
"Sugar",
"Hide sugar atoms"));
107 new GUIContent(
"Non Sugar",
"Hide Non sugar Atoms"));
115 if(!hb_w_sb_toggled && toggle_SHOW_HB_W_SR)
117 else if (hb_w_sb_toggled && !toggle_SHOW_HB_W_SR)
120 if(!hb_not_sugar_toggled && toggle_SHOW_HB_NOT_SUGAR)
122 else if (hb_not_sugar_toggled && !toggle_SHOW_HB_NOT_SUGAR)
125 GUILayout.EndHorizontal();
129 GUILayout.BeginHorizontal();
130 if(GUILayout.Button(
new GUIContent(
"Tune Menu"))) {
135 GUILayout.EndHorizontal();
139 GUILayout.FlexibleSpace();
146 if (!showSugarChainMenu)
147 showSugarRibbonsTuneMenu =
false;
153 GUILayout.BeginHorizontal();
156 new GUIContent(
"Show Oxygens",
"show ring oxygens with a red sphere"));
158 if (toggle_TWISTER && toggle_OXYGEN && !oxyToggled) {
161 }
else if (toggle_RING_BLENDING && toggle_OXYGEN && !oxyToggled) {
165 if (oxyToggled && !toggle_OXYGEN){
171 new GUIContent(
"Sugar Only?",
"use only sugar for RingBlending and SugarRibbons"));
173 GUILayout.EndHorizontal();
175 GUILayout.BeginHorizontal();
176 if(GUILayout.Button(
new GUIContent(
"Change Coloration"))) {
181 GUILayout.EndHorizontal();
184 GUILayout.BeginHorizontal();
185 GUILayout.Label(
"Oxygen Sphere Size");
186 GUILayout.EndHorizontal();
187 GUILayout.BeginHorizontal();
199 GUILayout.EndHorizontal();
202 GUILayout.BeginHorizontal();
203 GUILayout.Label(
"Ribbons Thickness");
204 GUILayout.EndHorizontal();
205 GUILayout.BeginHorizontal();
208 GUILayout.EndHorizontal();
211 GUILayout.BeginHorizontal();
212 GUILayout.Label(
"Inner Ring Thickness");
213 GUILayout.EndHorizontal();
214 GUILayout.BeginHorizontal();
217 GUILayout.EndHorizontal();
220 GUILayout.BeginHorizontal();
221 GUILayout.Label(
"Outer Ring Thickness");
222 GUILayout.EndHorizontal();
223 GUILayout.BeginHorizontal();
226 GUILayout.EndHorizontal();
229 GUILayout.BeginHorizontal();
230 GUILayout.Label(
"Pyranose (6) : C1,C4 Bond Thickness");
231 GUILayout.EndHorizontal();
232 GUILayout.BeginHorizontal();
235 GUILayout.EndHorizontal();
238 GUILayout.BeginHorizontal();
239 GUILayout.Label(
"Pyranose (6) : Other Bond Thickness");
240 GUILayout.EndHorizontal();
241 GUILayout.BeginHorizontal();
244 GUILayout.EndHorizontal();
247 GUILayout.BeginHorizontal();
248 GUILayout.Label(
"Furanose (5) : Bond Thickness");
249 GUILayout.EndHorizontal();
250 GUILayout.BeginHorizontal();
253 GUILayout.EndHorizontal();
258 GUILayout.BeginHorizontal();
259 if(GUILayout.Button(
new GUIContent(
"Apply changes"))) {
264 GUILayout.EndHorizontal();
267 GUILayout.BeginHorizontal();
268 if(GUILayout.Button(
new GUIContent(
"Reset parameters"))) {
272 GUILayout.EndHorizontal();
275 GUILayout.FlexibleSpace();
282 if (!showSugarChainMenu)
283 showColorTuneMenu =
false;
289 GUILayout.BeginHorizontal();
290 GUILayout.Label(
"OXYGEN SPHERE");
291 GUILayout.EndHorizontal();
292 GUILayout.BeginHorizontal ();
293 if (GUILayout.Button (
new GUIContent (
"Sugar",
"Coloration by sugar Type"))) {
300 if (GUILayout.Button (
new GUIContent (
"Chain",
"Coloration by Chain"))) {
306 GUILayout.EndHorizontal();
307 GUILayout.BeginHorizontal ();
308 if (GUILayout.Button (
new GUIContent (
"Custom",
"Choose a custom Color"))) {
314 GUILayout.EndHorizontal ();
329 GUILayout.BeginHorizontal();
330 GUILayout.Label(
"RINGS");
331 GUILayout.EndHorizontal();
334 GUILayout.BeginHorizontal();
335 if (GUILayout.Button (
new GUIContent (
"Sugar",
"Coloration by sugar Type"))) {
341 if (GUILayout.Button (
new GUIContent (
"Chain",
"Coloration by Chain"))) {
346 GUILayout.EndHorizontal();
349 GUILayout.BeginHorizontal ();
350 if (GUILayout.Button (
new GUIContent (
"Custom Color",
"Choose a custom Color"))) {
357 GUILayout.EndHorizontal ();
366 GUILayout.BeginHorizontal();
367 GUILayout.Label(
"Lighter Color Factor");
368 GUILayout.EndHorizontal();
369 GUILayout.BeginHorizontal();
372 GUILayout.EndHorizontal();
387 GUILayout.BeginHorizontal();
388 GUILayout.Label(
"BONDS");
389 GUILayout.EndHorizontal();
393 GUILayout.BeginHorizontal();
394 if (GUILayout.Button (
new GUIContent (
"Sugar",
"Coloration by sugar Type"))) {
400 if (GUILayout.Button (
new GUIContent (
"Chain",
"Coloration by Chain"))) {
404 GUILayout.EndHorizontal ();
407 GUILayout.BeginHorizontal ();
408 if (GUILayout.Button (
new GUIContent (
"Custom Color",
"Choose a custom Color"))) {
414 GUILayout.EndHorizontal ();
423 GUILayout.BeginHorizontal();
424 GUILayout.Label(
"Lighter Color Factor");
425 GUILayout.EndHorizontal();
426 GUILayout.BeginHorizontal();
429 GUILayout.EndHorizontal();
444 GUILayout.FlexibleSpace();
static bool toggle_NA_HIDE
static void UpdateOxySphereSize()
static void ShowRingOxySphere()
static void CreateRingBlending()
static bool toggle_TWISTER
static void DestroyOxySphere()
static int ColorationModeBond
static float OxySphereSizeCheck
static int ColorTuneWidth
static void ResetSugarRibbons(bool sugaronly=false)
static void HideMolecule()
float LIGHTER_COLOR_FACTOR_BOND
static float lighter_color_factor_bond
static void DestroySugarRibs()
static float thickness_6_other
static bool toggle_OXYGEN
static float thickness_bond_6_C1_C4
static Rect colorPickerRect
static bool showColorTuneMenu
static void UpdateSugarRibsBondColor(int mode=-1)
static ColorPicker m_colorPicker
static void ShowOxySphere(int colotype=0)
static bool toggle_SHOW_HB_W_SR
static void show_HyperBalls_Sugar(bool show)
static void UpdateSugarRibsRingColor(int mode=-1)
static void DestroyRingBlending()
static ColorObject OxySphereColorCheck
static ColorObject RingColorcheck
static void SugarRibbonsTune(int a)
static int OxySphereCount()
static ColorObject BondColor
static float RibbonsThickness
static void showHydrogens(bool hide)
static void CreateSugarRibs(bool sugaronly)
static float lighter_color_factor_bond_check
static float thickness_bond_5
static float LabelSlider(float sliderValue, float sliderMinValue, float sliderMaxValue, string labelText, string toolTip, bool enable, int sliderwidth, int labelwidth=100, bool newLine=false)
static bool toggle_RING_BLENDING
static bool toggle_HIDE_HYDROGEN
static float lighter_color_factor_ring
static bool showSugarRibbonsTuneMenu
static void SugarM(int a)
static void ColorTuneMenu(int a)
static bool showSugarChainMenu
!WiP Includes FLAGS of GUI.
static void ChangeRepresentation(UIData.AtomType newAtomType, UIData.BondType newBondType=UIData.BondType.nobond)
static bool SetTitleExit(string s)
This is a somewhat odd but very convenient function.
static ColorObject RingColor
static void UpdateOxySphereColor()
static ColorObject OxySphereColor
static void ResetDefaultParametersSugarRibbons()
static int SugarRibbonsTuneWidth
static bool hasMoleculeDisplay
static float thickness_BIG
static float lighter_color_factor_ring_check
static float thickness_Little
static void Hide_No_Sugar_Hyperballs(bool show)
static void ShowMolecule()
static float OxySphereSize
static int ColorationModeRing
static ColorObject BondColorcheck
static bool toggle_SUGAR_ONLY
static bool toggle_SHOW_HB_NOT_SUGAR
float LIGHTER_COLOR_FACTOR_RING