82 public static int mainWidth = (int) (sWidth * 0.8f);
96 public static Rect
mainRect =
new Rect (mainXstart, mainYstart, mainWidth, mainHeight) ;
98 public static Rect
helpRect =
new Rect (helpXstart, helpYstart, helpWidth, helpHeight) ;
100 public static Rect
exitRect =
new Rect (exitXstart, exitYstart, exitWidth, exitHeight);
107 public static Rect
fileBrowserRect =
new Rect(fileBrowserXstart, fileBrowserYstart, fileBrowserWidth, fileBrowserHeight);
115 public static Rect
atomScalesRect =
new Rect (atomScalesXstart, atomScalesYstart, atomScalesWidth, atomScalesHeight);
118 public static Rect
panelsMenuRect =
new Rect (atomScalesXstart, Screen.height/2, atomScalesWidth, atomScalesHeight/2);
126 public static Rect
openRect =
new Rect(openXstart, openYstart, openWidth, openHeight);
135 public static Rect
atomMenuRect =
new Rect (atomMenuXstart, atomMenuYstart, atomMenuWidth, atomMenuHeight) ;
143 public static Rect
atomStyleRect =
new Rect(atomStyleXstart, atomStyleYstart, atomStyleWidth, atomStyleHeight);
151 public static Rect
bondTypeRect =
new Rect(bondTypeXstart, bondTypeYstart, bondTypeWidth, bondTypeHeight);
158 public static Rect
secStructMenuRect =
new Rect(secStructMenuXstart, secStructMenuYstart, secStructMenuWidth, secStructMenuHeight);
166 public static Rect
surfaceMenuRect =
new Rect(surfaceMenuXstart, surfaceMenuYstart, surfaceMenuWidth, surfaceMenuHeight);
174 public static Rect
surfaceParametersRect =
new Rect(surfaceParametersXstart, surfaceParametersYstart, surfaceParametersWidth, surfaceParametersHeight);
182 public static Rect
hydroMenuRect =
new Rect (hydroMenuXstart, hydroMenuYstart, hydroMenuWidth, hydroMenuHeight);
190 public static Rect
surfaceCutRect =
new Rect(surfaceCutXstart, surfaceCutYstart, surfaceCutWidth, surfaceCutHeight);
198 public static Rect
surfaceMobileCutRect =
new Rect(surfaceMobileCutXstart, surfaceMobileCutYstart, surfaceMobileCutWidth, surfaceMobileCutHeight);
206 public static Rect
movePlaneRect =
new Rect(moveCutPlaneXstart, moveCutPlaneYstart, moveCutPlaneWidth, moveCutPlaneHeight);
214 public static Rect
electroMenuRect =
new Rect (electroMenuXstart, electroMenuYstart, electroMenuWidth, electroMenuHeight);
222 public static Rect
fieldLinesRect =
new Rect (fieldLinesXstart, fieldLinesYstart, fieldLinesWidth, fieldLinesHeight);
230 public static Rect
manipulatorRect =
new Rect(manipulatorXstart, manipulatorYstart, manipulatorWidth, manipulatorHeight);
238 public static Rect
manipulatorMoveRect =
new Rect(manipulatorXstart, manipulatorMoveYstart, manipulatorWidth, manipulatorMoveHeight);
246 public static Rect
colorPickerRect =
new Rect(colorPickerXstart, colorPickerYstart, colorPickerWidth, colorPickerHeight);
254 public static Rect
advOptionsRect =
new Rect(advOptXstart, advOptYstart, advOptWidth, advOptHeight);
267 public static Rect
SugarMenuRect =
new Rect(SugarMenuTypeXstart, SugarMenuTypeYstart, SugarMenuTypeWidth, SugarMenuTypeHeight);
276 public static Rect
SugarRibbonsTuneRect =
new Rect(SugarRibbonsTuneXstart, SugarRibbonsTuneYstart, SugarRibbonsTuneWidth, SugarRibbonsTuneHeight);
285 public static Rect
ColorTuneRect =
new Rect(ColorTuneXstart, ColorTuneYstart, ColorTuneWidth, ColorTuneHeight);
293 public static Rect
GuidedNavRect =
new Rect(GuidedNavXstart, GuidedNavYstart, GuidedNavWidth, GuidedNavHeight);
296 public static Rect
cubeLineBondRect =
new Rect(cubeLineBondTypeXstart, cubeLineBondTypeYstart, cubeLineBondTypeWidth, cubeLineBondTypeHeight) ;
304 public static Rect
hyperballRect =
new Rect(hyperballXstart, hyperballYstart, hyperballWidth, hyperballHeight);
312 public static Rect
textureRect =
new Rect (textureXstart, textureYstart, textureWidth, textureHeight);
321 public static Rect
metaphorRect =
new Rect(metaphorXstart, metaphorYstart, metaphorWidth, metaphorHeight);
329 public static Rect
effectTypeRect =
new Rect(effectTypeXstart, effectTypeYstart, effectTypeWidth, effectTypeHeight);
344 public static Rect
expUIRect =
new Rect(webHelpXstart, webHelpYstart - 90, webHelpWidth * 2, webHelpHeight);
346 public static Rect
webHelpRect =
new Rect(webHelpXstart, webHelpYstart, webHelpWidth, webHelpHeight);
350 public static int fpsInfosYstart = (int) (Screen.height - webHelpHeight - fpsInfosHeight);
354 public static Rect
fpsInfosRect =
new Rect(fpsInfosXstart, fpsInfosYstart, fpsInfosWidth, fpsInfosHeight);
362 public static Rect
residuesMenuRect =
new Rect(residuesMenuXstart, residuesMenuYstart, residuesMenuWidth, residuesMenuHeight);
365 public static Rect
atomsExtendedMenuRect =
new Rect(residuesMenuXstart, residuesMenuYstart, residuesMenuWidth, residuesMenuHeight);
368 public static Rect
chainsMenuRect =
new Rect(residuesMenuXstart, residuesMenuYstart, residuesMenuWidth, residuesMenuHeight);
375 public static Rect
artemisMenuRect =
new Rect(artemisMenuXstart, artemisMenuYstart, artemisMenuWidth, artemisMenuHeight);
394 public static Rect
hirernaMenuRect =
new Rect(hirernaMenuXstart, hirernaMenuYstart, hirernaMenuWidth, hirernaMenuHeight);
400 public static Rect
webContestMenuRect =
new Rect(webContestMenuXstart, webContestMenuYstart, webContestMenuWidth, webContestMenuHeight);
406 GUISkin mySkin = GUI.skin;
410 int fontSize = (int) ( ((Screen.width / BASE_SCREEN_WIDTH) * BASE_FONT_SIZE) *
UI.
GUIDisplay.
guiScale);
417 mySkin.box.fontSize = fontSize;
418 mySkin.button.fontSize = fontSize;
419 mySkin.horizontalSlider.fontSize = fontSize;
420 mySkin.textArea.fontSize = fontSize;
421 mySkin.textField.fontSize = fontSize;
422 mySkin.toggle.fontSize = fontSize;
423 mySkin.window.fontSize = fontSize;
424 mySkin.label.fontSize = fontSize;
427 GUIStyle subStyle = mySkin.customStyles[0] ;
428 if (subStyle != null)
429 subStyle.fontSize = fontSize;
444 mainWidth = (int) (sWidth * 0.5f);
445 mainHeight = sHeight / 20;
449 helpWidth = sWidth / 50 ;
452 exitWidth = sWidth / 12 ;
458 mainRect =
new Rect (mainXstart, mainYstart, mainWidth, mainHeight) ;
459 helpRect =
new Rect (helpXstart, helpYstart, helpWidth, helpHeight) ;
460 exitRect =
new Rect (exitXstart, exitYstart, exitWidth, exitHeight);
462 fileBrowserWidth = sWidth / 3;
463 fileBrowserHeight = (int) (sHeight * 0.60f);
465 fileBrowserRect =
new Rect(fileBrowserRect.x, fileBrowserRect.y, fileBrowserWidth, fileBrowserHeight);
467 atomScalesWidth = sWidth / 3;
468 atomScalesHeight = (int) (sHeight * 0.73f) ;
471 atomScalesRect =
new Rect (atomScalesXstart, atomScalesYstart, atomScalesWidth, atomScalesHeight);
473 openWidth = sWidth / 4;
474 openHeight = sHeight / 2;
476 openRect =
new Rect(openRect.x, openRect.y, openWidth, openHeight);
478 atomMenuWidth = (int) (sWidth * 0.14f);
480 atomMenuHeight = (int) (sHeight * 0.44f);
482 atomMenuRect =
new Rect (atomMenuRect.x, atomMenuRect.y, atomMenuWidth, atomMenuHeight) ;
485 atomStyleHeight = (int) (sHeight / 6);
487 atomStyleRect =
new Rect(atomStyleRect.x, atomStyleRect.y, atomStyleWidth, atomStyleHeight);
489 secStructMenuWidth = (int)(sWidth * 0.23f);
490 secStructMenuHeight = (int) (sHeight * 0.6f);
492 secStructMenuRect =
new Rect(secStructMenuRect.x, secStructMenuRect.y, secStructMenuWidth, secStructMenuHeight);
494 surfaceMenuWidth = sWidth / 8;
495 surfaceMenuHeight = sHeight / 5;
497 surfaceMenuRect =
new Rect(surfaceMenuRect.x, surfaceMenuRect.y, surfaceMenuWidth, surfaceMenuHeight);
500 surfaceParametersHeight = (int)(sHeight * 0.40f);
502 surfaceParametersRect =
new Rect(surfaceParametersRect.x, surfaceParametersRect.y, surfaceParametersWidth, surfaceParametersHeight);
505 surfaceCutHeight = (int) (sHeight * 0.32f);
507 surfaceCutRect =
new Rect(surfaceCutRect.x, surfaceCutRect.y, surfaceCutWidth, surfaceCutHeight);
510 surfaceMobileCutHeight = sHeight / 6;
512 surfaceMobileCutRect =
new Rect(surfaceMobileCutRect.x, surfaceMobileCutRect.y, surfaceMobileCutWidth, surfaceMobileCutHeight);
514 moveCutPlaneWidth = (int)(sWidth * 0.18f);
517 movePlaneRect =
new Rect(movePlaneRect.x, movePlaneRect.y, moveCutPlaneWidth, moveCutPlaneHeight);
519 electroMenuWidth = sWidth / 8;
520 electroMenuHeight = (int) (sHeight *0.36f);
522 electroMenuRect =
new Rect (electroMenuRect.x, electroMenuRect.y, electroMenuWidth, electroMenuHeight);
525 fieldLinesHeight = (int) (sHeight * 0.36f);
527 fieldLinesRect =
new Rect (fieldLinesRect.x, fieldLinesRect.y, fieldLinesWidth, fieldLinesHeight);
529 manipulatorWidth = sWidth / 6;
530 manipulatorHeight = (int) (sHeight * 0.30f);
532 manipulatorRect =
new Rect(manipulatorRect.x, manipulatorRect.y, manipulatorWidth, manipulatorHeight);
535 manipulatorMoveHeight = (int) (sHeight * 0.22f);
537 manipulatorMoveRect =
new Rect(manipulatorMoveRect.x, manipulatorMoveRect.y, manipulatorWidth, manipulatorMoveHeight);
539 colorPickerWidth = 238;
540 colorPickerHeight = 308;
542 colorPickerRect =
new Rect(colorPickerRect.x, colorPickerRect.y, colorPickerWidth, colorPickerHeight);
544 advOptWidth = sWidth / 4 ;
545 advOptHeight = (int) (sHeight * 0.30f) ;
547 advOptionsRect =
new Rect(advOptionsRect.x, advOptionsRect.y, advOptWidth, advOptHeight);
550 cubeLineBondTypeHeight = sHeight / 8 ;
552 cubeLineBondRect =
new Rect(cubeLineBondRect.x, cubeLineBondRect.y, cubeLineBondTypeWidth, cubeLineBondTypeHeight) ;
555 hyperballHeight = (int) (sHeight * 0.40f);
557 hyperballRect =
new Rect(hyperballRect.x, hyperballRect.y, hyperballWidth, hyperballHeight);
560 bondTypeHeight = sHeight / 6;
562 bondTypeRect =
new Rect(bondTypeXstart, bondTypeYstart, bondTypeWidth, bondTypeHeight);
564 textureWidth = sWidth / 3;
565 textureHeight = (int) (sHeight * 0.40f);
567 textureRect =
new Rect (textureRect.x, textureRect.y, textureWidth, textureHeight);
569 metaphorWidth = sWidth / 8;
570 metaphorHeight = (int) (sHeight * 0.26f);
572 metaphorRect =
new Rect(metaphorRect.x, metaphorRect.y, metaphorWidth, metaphorHeight);
574 effectTypeWidth = sWidth / 5;
575 effectTypeHeight = (int) (sHeight * 0.38f);
580 backTypeHeight = sHeight / 4;
582 backTypeRect =
new Rect(backTypeRect.x, backTypeRect.y,
backTypeWidth, backTypeHeight);
static int fileBrowserXstart
static int fpsInfosXstart
static int electroMenuYstart
static int moveCutPlaneYstart
static Rect artemisTotalEnergyPlotTextureRect
static int bondTypeHeight
static Rect artemisStackingEnergyPlotTextureRect
static int manipulatorMoveWidth
static int manipulatorHeight
static int surfaceMenuHeight
static int atomStyleYstart
static int plotWindowHeight
static Rect webContestMenuRect
static float BASE_SCREEN_WIDTH
static int fileBrowserYstart
static Rect surfaceMenuRect
static int GuidedNavWidth
static int atomMenuYstart
static Rect hyperballRect
static Rect artemisMenuRect
static int ColorTuneWidth
static int hirernaMenuWidth
static int fieldLinesHeight
static int atomScalesYstart
static int webContestMenuHeight
static int surfaceMobileCutWidth
static int webContestMenuWidth
static int secStructMenuWidth
static int atomStyleWidth
static int surfaceCutWidth
static int plotWindowWidth
static int SugarRibbonsTuneYstart
static int effectTypeYstart
static int surfaceCutHeight
static int bondTypeXstart
static int fileBrowserHeight
static int surfaceMobileCutXstart
static Rect colorPickerRect
static int backTypeXstart
static int hirernaMenuHeight
static int metaphorXstart
static int effectTypeXstart
static int ColorTuneXstart
static Rect surfaceCutRect
static int hydroMenuXstart
static int GuidedNavXstart
static int fieldLinesXstart
static int GuidedNavYstart
static Rect panelsMenuRect
static Rect manipulatorRect
static int electroMenuXstart
static int manipulatorMoveYstart
static int SugarRibbonsTuneHeight
static void Scale()
Scales all rectangles according to the new guiScale value input by the user.
static int colorPickerWidth
static Rect GuidedNavRect
static int hyperballYstart
static int atomMenuXstart
static int manipulatorXstart
static int surfaceMenuWidth
static int SugarMenuTypeXstart
static Rect atomStyleRect
static Rect manipulatorMoveRect
static Rect artemisHBondsEnergyPlotTextureRect
static int residuesMenuXstart
static int surfaceCutXstart
static int atomMenuHeight
static int fileBrowserWidth
static int hydroMenuHeight
static int hydroMenuWidth
static int moveCutPlaneHeight
static Rect hydroMenuRect
static int colorPickerYstart
static int electroMenuHeight
static int artemisMenuWidth
static int effectTypeWidth
static int ColorTuneHeight
static float BASE_FONT_SIZE
static int fpsInfosHeight
static int moveCutPlaneXstart
static int surfaceMobileCutHeight
static int moveCutPlaneWidth
static int manipulatorMoveHeight
static int hyperballWidth
static Rect artemisStackingEnergyPlotWindowRect
static Rect hirernaMenuRect
static int surfaceCutYstart
static int atomStyleXstart
static int SugarMenuTypeYstart
static int cubeLineBondTypeWidth
static Rect artemisTotalEnergyPlotWindowRect
static Rect fieldLinesRect
static int surfaceParametersXstart
static Rect electroMenuRect
static int webContestMenuXstart
static int atomScalesXstart
static Rect SugarRibbonsTuneRect
static int SugarRibbonsTuneXstart
static int secStructMenuXstart
static int fpsInfosYstart
static int GuidedNavHeight
static int metaphorHeight
static int electroMenuWidth
static int SugarMenuTypeHeight
static int surfaceMenuYstart
static int surfaceMobileCutYstart
static int residuesMenuHeight
!WiP manage GUI, and provide static strings for the GUI.
static int artemisMenuHeight
static int colorPickerHeight
static int cubeLineBondTypeXstart
static Rect artemisHBondsEnergyPlotWindowRect
static Rect ColorTuneRect
static int atomScalesHeight
static Rect surfaceMobileCutRect
static int backTypeHeight
static int ColorTuneYstart
static int manipulatorMoveXstart
static int artemisMenuYstart
static int surfaceParametersWidth
static int fieldLinesWidth
static Rect residuesMenuRect
static Rect fileBrowserRect
static Rect surfaceParametersRect
static int colorPickerXstart
static Rect secStructMenuRect
static int artemisMenuXstart
static int atomButtonWidth
static Rect movePlaneRect
static int hyperballXstart
static int hydroMenuYstart
static int bondTypeYstart
static int residuesMenuYstart
static Rect effectTypeRect
static int SugarRibbonsTuneWidth
static int cubeLineBondTypeHeight
static int surfaceMenuXstart
static int surfaceParametersHeight
static Rect SugarMenuRect
static int atomScalesWidth
static Rect cubeLineBondRect
static Rect atomScalesRect
static int effectTypeHeight
static int hirernaMenuYstart
static int atomStyleHeight
static int backTypeYstart
static Rect advOptionsRect
static int surfaceParametersYstart
static int metaphorYstart
static int manipulatorWidth
static int hyperballHeight
static int residuesMenuWidth
static int SugarMenuTypeWidth
static int webContestMenuYstart
static int manipulatorYstart
static Rect chainsMenuRect
static int secStructMenuHeight
static int hirernaMenuXstart
static int secStructMenuYstart
static void SetFontSize()
Sets the size of the font.
static int cubeLineBondTypeYstart
static int fieldLinesYstart
static Rect atomsExtendedMenuRect