Exemplo n.º 1
0
    void Awake()
    {
        if (!_Properties)
        {
            _Properties = this;
        }

        _Properties.gameObject.SetActive(false);
    }
Exemplo n.º 2
0
    public void InitializeWindow(GUIProperties properties)
    {
        this._properties = properties;
        _events = GUIEventManager.Instance;
        _game = GlobalObject.Instance;

        textBoxStyle = new GUIStyle(_properties.UserInterface.label);
        buttonStyle = new GUIStyle(_properties.UserInterface.button);

        menuTexture = _properties.UserInterface.window.normal.background;
        windowHeaderTexture = _properties.UserInterface.label.normal.background;
        menuButtonTexture = _properties.UserInterface.button.normal.background;

        RecalculateRect();
    }
Exemplo n.º 3
0
    public void InitializeWindow(GUIProperties properties)
    {
        this._properties = properties;
        events = GUIEventManager.Instance;
        _game = GlobalObject.Instance;

        textBoxStyle = new GUIStyle(_properties.UserInterface.label);
        buttonStyle = new GUIStyle(_properties.UserInterface.button);

        menuTexture = _properties.UserInterface.window.normal.background;
        windowHeaderTexture = _properties.UserInterface.label.normal.background;
        menuButtonTexture = _properties.UserInterface.button.normal.background;

        for (int i = 0; i < _properties.BTNButtonTexturesArray.Length; i++)
        {
            BTNButtonTexturesArray[i] = _properties.BTNButtonTexturesArray[i];
            _WeaponTitlesArray[i] = _properties.WeaponTitlesArray[i];
        }
        for (int i = 0; i < _properties.DBTNButtonTexturesArray.Length; i++)
        {
            DBTNButtonTexturesArray[i] = _properties.DBTNButtonTexturesArray[i];
        }

        RecalculateRect();
    }
Exemplo n.º 4
0
    public void InitializeWindow(GUIProperties properties)
    {
        this._properties = properties;

                textBoxStyle = new GUIStyle (_properties.UserInterface.label);
                buttonStyle = new GUIStyle (_properties.UserInterface.button);

                menuTexture = _properties.UserInterface.window.normal.background;
                windowHeaderTexture = _properties.UserInterface.label.normal.background;
                menuButtonTexture = _properties.UserInterface.button.normal.background;
    }