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(); }
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; }
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(); }