public void OnGUI() { GUILayout.BeginVertical(); { viewLoopPlayer.OnGUI(); viewLoopDisplay.OnGUI(); viewLoopPlaylist.OnGUI(); viewChangeDirectory.OnGUI(); } GUILayout.EndVertical(); }
public void OnGUI() { viewMenu.OnGUI(); viewLoopPlayer.OnGUI(); float lHeightMenu = GuiStyleSet.StyleMenu.button.CalcSize(new GUIContent("")).y; float lHeightTitle = GuiStyleSet.StylePlayer.labelTitle.CalcSize(new GUIContent("")).y; float lY = lHeightMenu + lHeightTitle + GuiStyleSet.StyleGeneral.box.margin.top + GuiStyleSet.StyleGeneral.box.padding.top + GuiStyleSet.StylePlayer.seekbar.fixedHeight; GUILayout.BeginArea(new Rect(Screen.width / 2 - 150.0f, lY, 300.0f, 200.0f)); { GUILayout.Label(new GUIContent("", "StylePlayer.ToogleLoop"), GuiStyleSet.StylePlayer.toggleLoop); //viewLoopDisplay.OnGUI(); } GUILayout.EndArea(); GUILayout.BeginHorizontal(); { GUILayout.BeginVertical(GuiStyleSet.StyleGeneral.box); //, GUILayout.Width( Screen.width / 2.0f ) ); { viewLoopSearch.OnGUI(); GUILayout.Label(new GUIContent("Input", "StyleLoopTool.LabelInput"), GuiStyleSet.StyleLoopTool.labelInput); GUILayout.Label(new GUIContent("", "StyleLoopTool.BackgroundInput"), GuiStyleSet.StyleLoopTool.backgroundInput); viewChangeDirectoryInput.OnGUI(); viewLoopInputlist.OnGUI(); } GUILayout.EndVertical(); GUILayout.BeginVertical(GuiStyleSet.StyleGeneral.box); //, GUILayout.Width( Screen.width / 2.0f ) ); { GUILayout.BeginHorizontal(); { GUILayout.FlexibleSpace(); GUILayout.Button(new GUIContent("Save", "StyleLoopTool.ButtonSave"), GuiStyleSet.StyleLoopTool.buttonSave); } GUILayout.EndVertical(); GUILayout.Label(new GUIContent("Output", "StyleLoopTool.LabelOutput"), GuiStyleSet.StyleLoopTool.labelOutput); GUILayout.Label(new GUIContent("", "StyleLoopTool.BackgroundOutput"), GuiStyleSet.StyleLoopTool.backgroundOutput); viewChangeDirectoryOutput.OnGUI(); viewLoopPlaylist.OnGUI(); } GUILayout.EndVertical(); } GUILayout.EndHorizontal(); }