Exemplo n.º 1
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.º 2
0
    void Awake()
    {
        _game = GlobalObject.Instance;
        _events = GUIEventManager.Instance;
        _cameraFade = CameraFading.Instance;
        _effectManager = ScreenEffectManager.Instance;

        _mainMenu.InitializeWindow(_guiproperties);
        _optionsMenu.InitializeWindow(_guiproperties);
        _systemWindow.InitializeWindow(_guiproperties);
        _shopWindowComplex.InitializeWindow(_guiproperties);
        _shopMenuUnchangebleParts.InitializeWindow(_guiproperties);
        _shopMenuWeaponUpgradeZone.InitializeWindow(_guiproperties);
        lastScreenHeight = Screen.height;
        lastScreenWidth = Screen.width;
    }
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();
    }