예제 #1
0
    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";
    }
예제 #2
0
    //    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;
 }
예제 #4
0
    // 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");
    }
예제 #5
0
 public static void ShowWindow()
 {
     instance = EditorWindow.GetWindow <AudioWindow>();
     instance.Show();
 }