Example #1
0
        public EntityItem(VisualElementAsset entityAsset, FileInfo fileInfo)
        {
            EntityElement = entityAsset.GetElement("entity");

            SetInformation(fileInfo);
            RegisterButtons();
        }
Example #2
0
        public ProgressBar(string name)
        {
            if (_progressBarAsset == null)
            {
                _progressBarAsset = AssetManager.GetAsset <VisualElementAsset>("/modules/synthesis_core/UI/uxml/ProgressBar.uxml");
            }

            ProgressBarElement = _progressBarAsset.GetElement(name);
        }