Exemplo n.º 1
0
    public void CheckWindowSnapping(ET_GUIWindow window)        // Window snapping
    {
        Vector2 closestSnapPos;

        foreach (ET_GUIWindow win in m_AllWindows)
        {
            //if( win.m_WindowGUI_Rect)
        }
    }
Exemplo n.º 2
0
 public void SoloToggle(ET_GUIWindow win)
 {
     if (m_SoloWindow == win && m_SoloMode)          // Incase solo is already active then it deactivates. So the solo
     {
         DisableSoloMode();
     }
     else
     {
         m_SoloMode   = true;
         m_SoloWindow = win;
     }
 }
    void Start()
    {
        m_GUIWindow = gameObject.GetComponent <ET_GUIWindow>() as ET_GUIWindow; // Add GUI window componant
        m_GUIWindow.Init("OSC Settings", gameObject, KeyCode.O);                // Initalize GUI Window

        m_OSCMute = new OSCListener("/osc/mute");                               // Setup the osc muste listener
        Debug.Log("My IP: " + Network.player.ipAddress);

        if (m_AutoSaveLoad)
        {
            Load("AutoSave");
        }
        else
        {
            StartServer(m_ServerPort);  // Start server
        }
        m_ServerPort = m_Server.LocalPort;
        tempPortIn   = m_Server.LocalPort.ToString();   // Set the temp port in to display in GUI
    }
Exemplo n.º 4
0
    /*
     * public void RegisterMenu( GUI_Menu menu )
     * {
     *      m_Menus.Add( menu );
     * }
     */

    public void RegisterWindow(ET_GUIWindow window)
    {
        m_AllWindows.Add(window);
    }