Пример #1
0
        public override void Update(GameTime gameTime)
        {
            if (!_loading && _ready)
            {
                _modInfo.SetText(_info);

                if (!string.IsNullOrEmpty(_url))
                {
                    _uIElement.Append(_modHomepageButton);
                }

                if (_localMod != null)
                {
                    _uIElement.AddOrRemoveChild(_deleteButton, ModLoader.Mods.All(x => x.Name != _localMod.Name));
                    _uIElement.Append(_extractButton);
                }
                Recalculate();
                _modInfo.RemoveChild(_loaderElement);
                _ready = false;
            }
        }