static void Init() { // Get existing open window or if none, make a new one: _window = (AudioWindow)GetWindow(typeof(AudioWindow)); // Set window title _window.title = "Audio Manager"; }
// private bool enabled; (ya existe en la clase padre // Use this for initialization void Start() { x = 0; y = 0; width = 500; height = 400; xMenu = x; yMenu = y; widthMenu = width/3; heightMenu = height; enabled = true; xPanel=xMenu + widthMenu; yPanel=y; widthPanel = width - (x+widthMenu); heightPanel = height; title = "Menu de configuracion"; videoPanel = new VideoWindow(xPanel,yPanel,widthPanel, heightPanel, "Video", gSkin); audioPanel = new AudioWindow(xPanel,yPanel,widthPanel, heightPanel, "Audio", gSkin); socialNetworkPanel = new SocialNetworkWindow(xPanel,yPanel,widthPanel, heightPanel, "Redes Sociales", gSkin); //menuPanel = new TabWindow(xMenu,yMenu,widthMenu, heightMenu, "", gSkin); currentPanel = Panel.Video; }
public AudioCreatorGUI(AudioWindow window) : base(window) { this.window = window; }
// Use this for initialization void Start() { smartFox = SmartFoxConnection.Connection; width = 500; height = 400; x = (Screen.width / 2) - width / 2; Debug.Log("x " + x); y = (Screen.height / 2) - height / 2; Debug.Log("y " + y); xMenu = x; Debug.Log("xMenu " + xMenu); yMenu = y; Debug.Log("yMenu " + yMenu); widthMenu = width / 3; Debug.Log("widthMenu " + widthMenu); heightMenu = height; Debug.Log("heightMenu " + heightMenu); xPanel = xMenu + widthMenu; Debug.Log("xPanel " + xPanel); yPanel = y; Debug.Log("yPanel " + yPanel); widthPanel = (width) - (widthMenu); Debug.Log("widthPanel " + widthPanel); heightPanel = height; Debug.Log("heightPanel " + heightPanel); title = "Menu de configuracion"; videoPanel = new VideoWindow(xPanel,yPanel,widthPanel, heightPanel, "Video", gSkin); jugabilidadPanel = new JugabilidadWindow(xPanel,yPanel,widthPanel, heightPanel, "Video", gSkin); audioPanel = new AudioWindow(xPanel,yPanel,widthPanel, heightPanel, "Audio", gSkin); socialNetworkPanel = new SocialNetworkWindow(xPanel,yPanel,widthPanel, heightPanel, "Redes Sociales", gSkin); videoCallPanel = new VideoCallWindow(xPanel,yPanel,widthPanel, heightPanel, "Video Llamada", gSkin); //menuPanel = new TabWindow(xMenu,yMenu,widthMenu, heightMenu, "", gSkin); currentPanel = Panel.Video; enable = false; Debug.Log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> termino start"); }
public static void ShowWindow() { instance = EditorWindow.GetWindow <AudioWindow>(); instance.Show(); }