public MyGuiScreenWorkshopTags(string typeTag, MySteamWorkshop.Category[] categories, string[] tags, Action<MyGuiScreenMessageBox.ResultEnum, string[]> callback) : base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, GetScreenSize(categories)) { Static = this; m_typeTag = typeTag ?? ""; m_activeTags = new Dictionary<string, MyStringId>(categories.Length); foreach (var category in categories) { m_activeTags.Add(category.Id, category.LocalizableName); } m_callback = callback; EnabledBackgroundFade = true; RecreateControls(true); SetSelectedTags(tags); }
public MyGuiScreenWorkshopTags(string typeTag, MySteamWorkshop.Category[] categories, string[] tags, Action <MyGuiScreenMessageBox.ResultEnum, string[]> callback) : base(new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, GetScreenSize(categories)) { Static = this; m_typeTag = typeTag ?? ""; m_activeTags = new Dictionary <string, MyStringId>(categories.Length); foreach (var category in categories) { m_activeTags.Add(category.Id, category.LocalizableName); } m_callback = callback; EnabledBackgroundFade = true; RecreateControls(true); SetSelectedTags(tags); }