| | 1 | | using DCL; |
| | 2 | | using System; |
| | 3 | | using System.Collections; |
| | 4 | | using System.Collections.Generic; |
| | 5 | | using UnityEngine; |
| | 6 | |
|
| | 7 | | public interface IExploreV2MenuComponentView : IDisposable |
| | 8 | | { |
| | 9 | | /// <summary> |
| | 10 | | /// It will be triggered when the close button is clicked. |
| | 11 | | /// </summary> |
| | 12 | | event Action<bool> OnCloseButtonPressed; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// It will be triggered when a section is open. |
| | 16 | | /// </summary> |
| | 17 | | event Action<ExploreSection> OnSectionOpen; |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// It will be triggered after the show animation has finished. |
| | 21 | | /// </summary> |
| | 22 | | event Action OnAfterShowAnimation; |
| | 23 | |
|
| | 24 | | /// <summary> |
| | 25 | | /// Real viewer component. |
| | 26 | | /// </summary> |
| | 27 | | IRealmViewerComponentView currentRealmViewer { get; } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Realm Selector component. |
| | 31 | | /// </summary> |
| | 32 | | IRealmSelectorComponentView currentRealmSelectorModal { get; } |
| | 33 | |
|
| | 34 | | /// <summary> |
| | 35 | | /// Profile card component. |
| | 36 | | /// </summary> |
| | 37 | | IProfileCardComponentView currentProfileCard { get; } |
| | 38 | |
|
| | 39 | | /// <summary> |
| | 40 | | /// Places and Events section component. |
| | 41 | | /// </summary> |
| | 42 | | IPlacesAndEventsSectionComponentView currentPlacesAndEventsSection { get; } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// Transform used to positionate the top menu tooltips. |
| | 46 | | /// </summary> |
| | 47 | | RectTransform currentTopMenuTooltipReference { get; } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Transform used to positionate the places and events section tooltips. |
| | 51 | | /// </summary> |
| | 52 | | RectTransform currentPlacesAndEventsTooltipReference { get; } |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Transform used to positionate the backpack section tooltips. |
| | 56 | | /// </summary> |
| | 57 | | RectTransform currentBackpackTooltipReference { get; } |
| | 58 | |
|
| | 59 | | /// <summary> |
| | 60 | | /// Transform used to positionate the map section tooltips. |
| | 61 | | /// </summary> |
| | 62 | | RectTransform currentMapTooltipReference { get; } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// Transform used to positionate the builder section tooltips. |
| | 66 | | /// </summary> |
| | 67 | | RectTransform currentBuilderTooltipReference { get; } |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Transform used to positionate the quest section tooltips. |
| | 71 | | /// </summary> |
| | 72 | | RectTransform currentQuestTooltipReference { get; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Transform used to positionate the settings section tooltips. |
| | 76 | | /// </summary> |
| | 77 | | RectTransform currentSettingsTooltipReference { get; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Transform used to positionate the profile section tooltips. |
| | 81 | | /// </summary> |
| | 82 | | RectTransform currentProfileCardTooltipReference { get; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Shows/Hides the game object of the explore menu. |
| | 86 | | /// </summary> |
| | 87 | | /// <param name="isActive">True to show it.</param> |
| | 88 | | void SetVisible(bool isActive); |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// It is called after the show animation has finished. |
| | 92 | | /// </summary> |
| | 93 | | void OnAfterShowAnimationCompleted(); |
| | 94 | |
|
| | 95 | | /// <summary> |
| | 96 | | /// Open a section. |
| | 97 | | /// </summary> |
| | 98 | | /// <param name="section">Section to go.</param> |
| | 99 | | void GoToSection(ExploreSection section); |
| | 100 | |
|
| | 101 | | /// <summary> |
| | 102 | | /// Activates/Deactivates a section in the selector. |
| | 103 | | /// </summary> |
| | 104 | | /// <param name="section">Section to activate/deactivate.</param> |
| | 105 | | /// <param name="isActive">True for activating.</param> |
| | 106 | | void SetSectionActive(ExploreSection section, bool isActive); |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Check if a section is actived or not. |
| | 110 | | /// </summary> |
| | 111 | | /// <param name="section">Section to check.</param> |
| | 112 | | /// <returns></returns> |
| | 113 | | bool IsSectionActive(ExploreSection section); |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// Configures a encapsulated section. |
| | 117 | | /// </summary> |
| | 118 | | /// <param name="section">Section to configure.</param> |
| | 119 | | /// <param name="featureConfiguratorFlag">Flag used to configurates the feature.</param> |
| | 120 | | void ConfigureEncapsulatedSection(ExploreSection section, BaseVariable<Transform> featureConfiguratorFlag); |
| | 121 | |
|
| | 122 | | /// <summary> |
| | 123 | | /// Shows the Realm Selector modal. |
| | 124 | | /// </summary> |
| | 125 | | void ShowRealmSelectorModal(); |
| | 126 | | } |
| | 127 | |
|
| | 128 | | public class ExploreV2MenuComponentView : BaseComponentView, IExploreV2MenuComponentView |
| | 129 | | { |
| | 130 | | [Header("Assets References")] |
| | 131 | | [SerializeField] internal RealmSelectorComponentView realmSelectorModalPrefab; |
| | 132 | |
|
| | 133 | | [Header("Top Menu")] |
| | 134 | | [SerializeField] internal SectionSelectorComponentView sectionSelector; |
| | 135 | | [SerializeField] internal ProfileCardComponentView profileCard; |
| | 136 | | [SerializeField] internal RealmViewerComponentView realmViewer; |
| | 137 | | [SerializeField] internal ButtonComponentView closeMenuButton; |
| | 138 | | [SerializeField] internal InputAction_Trigger closeAction; |
| | 139 | |
|
| | 140 | | [Header("Sections")] |
| | 141 | | [SerializeField] internal PlacesAndEventsSectionComponentView placesAndEventsSection; |
| | 142 | | [SerializeField] internal FeatureEncapsulatorComponentView backpackSection; |
| | 143 | | [SerializeField] internal FeatureEncapsulatorComponentView mapSection; |
| | 144 | | [SerializeField] internal FeatureEncapsulatorComponentView builderSection; |
| | 145 | | [SerializeField] internal FeatureEncapsulatorComponentView questSection; |
| | 146 | | [SerializeField] internal FeatureEncapsulatorComponentView settingsSection; |
| | 147 | |
|
| | 148 | | [Header("Tutorial References")] |
| | 149 | | [SerializeField] internal RectTransform profileCardTooltipReference; |
| | 150 | |
|
| | 151 | | internal const ExploreSection DEFAULT_SECTION = ExploreSection.Explore; |
| | 152 | | internal const string REALM_SELECTOR_MODAL_ID = "RealmSelector_Modal"; |
| | 153 | |
|
| 0 | 154 | | public IRealmViewerComponentView currentRealmViewer => realmViewer; |
| 0 | 155 | | public IRealmSelectorComponentView currentRealmSelectorModal => realmSelectorModal; |
| 0 | 156 | | public IProfileCardComponentView currentProfileCard => profileCard; |
| 0 | 157 | | public IPlacesAndEventsSectionComponentView currentPlacesAndEventsSection => placesAndEventsSection; |
| 0 | 158 | | public RectTransform currentTopMenuTooltipReference => sectionSelector.GetSection((int) ExploreSection.Explore).pivo |
| 0 | 159 | | public RectTransform currentPlacesAndEventsTooltipReference => sectionSelector.GetSection((int)ExploreSection.Explor |
| 0 | 160 | | public RectTransform currentBackpackTooltipReference => sectionSelector.GetSection((int)ExploreSection.Backpack).piv |
| 0 | 161 | | public RectTransform currentMapTooltipReference => sectionSelector.GetSection((int)ExploreSection.Map).pivot; |
| 0 | 162 | | public RectTransform currentBuilderTooltipReference => sectionSelector.GetSection((int)ExploreSection.Builder).pivot |
| 0 | 163 | | public RectTransform currentQuestTooltipReference => sectionSelector.GetSection((int)ExploreSection.Quest).pivot; |
| 0 | 164 | | public RectTransform currentSettingsTooltipReference => sectionSelector.GetSection((int)ExploreSection.Settings).piv |
| 0 | 165 | | public RectTransform currentProfileCardTooltipReference => profileCardTooltipReference; |
| | 166 | |
|
| | 167 | | public event Action<bool> OnCloseButtonPressed; |
| | 168 | | public event Action<ExploreSection> OnSectionOpen; |
| | 169 | | public event Action OnAfterShowAnimation; |
| | 170 | |
|
| | 171 | | internal RectTransform profileCardRectTranform; |
| | 172 | | internal RealmSelectorComponentView realmSelectorModal; |
| | 173 | |
|
| | 174 | | public override void Awake() |
| | 175 | | { |
| 40 | 176 | | base.Awake(); |
| | 177 | |
|
| 40 | 178 | | profileCardRectTranform = profileCard.GetComponent<RectTransform>(); |
| 40 | 179 | | realmSelectorModal = ConfigureRealmSelectorModal(); |
| 40 | 180 | | } |
| | 181 | |
|
| | 182 | | public override void Start() |
| | 183 | | { |
| 40 | 184 | | DataStore.i.exploreV2.currentSectionIndex.Set((int)DEFAULT_SECTION, false); |
| | 185 | |
|
| 40 | 186 | | DataStore.i.exploreV2.isInitialized.OnChange += IsInitialized_OnChange; |
| 40 | 187 | | IsInitialized_OnChange(DataStore.i.exploreV2.isInitialized.Get(), false); |
| | 188 | |
|
| 40 | 189 | | ConfigureCloseButton(); |
| 40 | 190 | | } |
| | 191 | |
|
| | 192 | | private void IsInitialized_OnChange(bool current, bool previous) |
| | 193 | | { |
| 40 | 194 | | if (!current) |
| 0 | 195 | | return; |
| | 196 | |
|
| 40 | 197 | | DataStore.i.exploreV2.isInitialized.OnChange -= IsInitialized_OnChange; |
| 40 | 198 | | StartCoroutine(CreateSectionSelectorMappingsAfterDelay()); |
| 40 | 199 | | } |
| | 200 | |
|
| 0 | 201 | | public override void Update() { CheckIfProfileCardShouldBeClosed(); } |
| | 202 | |
|
| | 203 | | public override void RefreshControl() |
| | 204 | | { |
| 0 | 205 | | placesAndEventsSection.RefreshControl(); |
| 0 | 206 | | backpackSection.RefreshControl(); |
| 0 | 207 | | mapSection.RefreshControl(); |
| 0 | 208 | | builderSection.RefreshControl(); |
| 0 | 209 | | questSection.RefreshControl(); |
| 0 | 210 | | settingsSection.RefreshControl(); |
| 0 | 211 | | } |
| | 212 | |
|
| | 213 | | public override void Dispose() |
| | 214 | | { |
| 80 | 215 | | base.Dispose(); |
| | 216 | |
|
| 80 | 217 | | RemoveSectionSelectorMappings(); |
| 80 | 218 | | closeMenuButton.onClick.RemoveAllListeners(); |
| 80 | 219 | | closeAction.OnTriggered -= OnCloseActionTriggered; |
| 80 | 220 | | DataStore.i.exploreV2.isSomeModalOpen.OnChange -= IsSomeModalOpen_OnChange; |
| 80 | 221 | | DataStore.i.exploreV2.isInitialized.OnChange -= IsInitialized_OnChange; |
| | 222 | |
|
| 80 | 223 | | if (realmSelectorModal != null) |
| 47 | 224 | | realmSelectorModal.Dispose(); |
| 80 | 225 | | } |
| | 226 | |
|
| | 227 | | public void SetVisible(bool isActive) |
| | 228 | | { |
| 2 | 229 | | if (isActive) |
| | 230 | | { |
| 1 | 231 | | DataStore.i.exploreV2.isInShowAnimationTransiton.Set(true); |
| 1 | 232 | | Show(); |
| | 233 | |
|
| 1 | 234 | | ISectionToggle sectionToGo = sectionSelector.GetSection(DataStore.i.exploreV2.currentSectionIndex.Get()); |
| 1 | 235 | | if (sectionToGo != null && sectionToGo.IsActive()) |
| 1 | 236 | | GoToSection((ExploreSection)DataStore.i.exploreV2.currentSectionIndex.Get()); |
| | 237 | | else |
| | 238 | | { |
| 0 | 239 | | List<ISectionToggle> allSections = sectionSelector.GetAllSections(); |
| 0 | 240 | | foreach (ISectionToggle section in allSections) |
| | 241 | | { |
| 0 | 242 | | if (section != null && section.IsActive()) |
| | 243 | | { |
| 0 | 244 | | section.SelectToggle(true); |
| 0 | 245 | | break; |
| | 246 | | } |
| | 247 | | } |
| | 248 | | } |
| | 249 | | } |
| | 250 | | else |
| | 251 | | { |
| 1 | 252 | | Hide(); |
| 1 | 253 | | AudioScriptableObjects.dialogClose.Play(true); |
| | 254 | | } |
| 1 | 255 | | } |
| | 256 | |
|
| | 257 | | public void OnAfterShowAnimationCompleted() |
| | 258 | | { |
| 0 | 259 | | DataStore.i.exploreV2.isInShowAnimationTransiton.Set(false); |
| 0 | 260 | | OnAfterShowAnimation?.Invoke(); |
| 0 | 261 | | } |
| | 262 | |
|
| | 263 | | public void GoToSection(ExploreSection section) |
| | 264 | | { |
| 7 | 265 | | if (DataStore.i.exploreV2.currentSectionIndex.Get() != (int)section) |
| 6 | 266 | | DataStore.i.exploreV2.currentSectionIndex.Set((int)section); |
| | 267 | |
|
| 7 | 268 | | sectionSelector.GetSection((int)section)?.SelectToggle(true); |
| | 269 | |
|
| 7 | 270 | | AudioScriptableObjects.dialogOpen.Play(true); |
| 7 | 271 | | AudioScriptableObjects.listItemAppear.ResetPitch(); |
| 7 | 272 | | } |
| | 273 | |
|
| 24 | 274 | | public void SetSectionActive(ExploreSection section, bool isActive) { sectionSelector.GetSection((int)section).SetAc |
| | 275 | |
|
| 0 | 276 | | public bool IsSectionActive(ExploreSection section) { return sectionSelector.GetSection((int)section).IsActive(); } |
| | 277 | |
|
| | 278 | | public void ConfigureEncapsulatedSection(ExploreSection section, BaseVariable<Transform> featureConfiguratorFlag) |
| | 279 | | { |
| 5 | 280 | | FeatureEncapsulatorComponentView sectionView = null; |
| | 281 | | switch (section) |
| | 282 | | { |
| | 283 | | case ExploreSection.Backpack: |
| 1 | 284 | | sectionView = backpackSection; |
| 1 | 285 | | break; |
| | 286 | | case ExploreSection.Map: |
| 1 | 287 | | sectionView = mapSection; |
| 1 | 288 | | break; |
| | 289 | | case ExploreSection.Builder: |
| 1 | 290 | | sectionView = builderSection; |
| 1 | 291 | | break; |
| | 292 | | case ExploreSection.Quest: |
| 1 | 293 | | sectionView = questSection; |
| 1 | 294 | | break; |
| | 295 | | case ExploreSection.Settings: |
| 1 | 296 | | sectionView = settingsSection; |
| | 297 | | break; |
| | 298 | | } |
| | 299 | |
|
| 5 | 300 | | sectionView?.EncapsulateFeature(featureConfiguratorFlag); |
| 5 | 301 | | } |
| | 302 | |
|
| | 303 | | public IEnumerator CreateSectionSelectorMappingsAfterDelay() |
| | 304 | | { |
| 40 | 305 | | yield return null; |
| 0 | 306 | | CreateSectionSelectorMappings(); |
| 0 | 307 | | } |
| | 308 | |
|
| | 309 | | internal void CreateSectionSelectorMappings() |
| | 310 | | { |
| 12 | 311 | | sectionSelector.GetSection((int)ExploreSection.Explore) |
| | 312 | | ?.onSelect.AddListener((isOn) => |
| | 313 | | { |
| 1 | 314 | | if (isOn) |
| | 315 | | { |
| 1 | 316 | | DataStore.i.exploreV2.currentSectionIndex.Set((int)ExploreSection.Explore, false); |
| 1 | 317 | | OnSectionOpen?.Invoke(ExploreSection.Explore); |
| | 318 | | } |
| 1 | 319 | | }); |
| | 320 | |
|
| 12 | 321 | | sectionSelector.GetSection((int)ExploreSection.Backpack) |
| | 322 | | ?.onSelect.AddListener((isOn) => |
| | 323 | | { |
| 1 | 324 | | if (isOn) |
| | 325 | | { |
| 1 | 326 | | backpackSection.Show(); |
| 1 | 327 | | DataStore.i.exploreV2.currentSectionIndex.Set((int)ExploreSection.Backpack, false); |
| 1 | 328 | | OnSectionOpen?.Invoke(ExploreSection.Backpack); |
| 1 | 329 | | } |
| | 330 | | else |
| 0 | 331 | | backpackSection.Hide(); |
| 0 | 332 | | }); |
| | 333 | |
|
| 12 | 334 | | sectionSelector.GetSection((int)ExploreSection.Map) |
| | 335 | | ?.onSelect.AddListener((isOn) => |
| | 336 | | { |
| 1 | 337 | | if (isOn) |
| | 338 | | { |
| 1 | 339 | | mapSection.Show(); |
| 1 | 340 | | DataStore.i.exploreV2.currentSectionIndex.Set((int)ExploreSection.Map, false); |
| 1 | 341 | | OnSectionOpen?.Invoke(ExploreSection.Map); |
| 1 | 342 | | } |
| | 343 | | else |
| 0 | 344 | | mapSection.Hide(); |
| 0 | 345 | | }); |
| | 346 | |
|
| 12 | 347 | | sectionSelector.GetSection((int)ExploreSection.Builder) |
| | 348 | | ?.onSelect.AddListener((isOn) => |
| | 349 | | { |
| 1 | 350 | | if (isOn) |
| | 351 | | { |
| 1 | 352 | | builderSection.Show(); |
| 1 | 353 | | DataStore.i.exploreV2.currentSectionIndex.Set((int)ExploreSection.Builder, false); |
| 1 | 354 | | OnSectionOpen?.Invoke(ExploreSection.Builder); |
| 1 | 355 | | } |
| | 356 | | else |
| 0 | 357 | | builderSection.Hide(); |
| 0 | 358 | | }); |
| | 359 | |
|
| 12 | 360 | | sectionSelector.GetSection((int)ExploreSection.Quest) |
| | 361 | | ?.onSelect.AddListener((isOn) => |
| | 362 | | { |
| 1 | 363 | | if (isOn) |
| | 364 | | { |
| 1 | 365 | | questSection.Show(); |
| 1 | 366 | | DataStore.i.exploreV2.currentSectionIndex.Set((int)ExploreSection.Quest, false); |
| 1 | 367 | | OnSectionOpen?.Invoke(ExploreSection.Quest); |
| 1 | 368 | | } |
| | 369 | | else |
| 0 | 370 | | questSection.Hide(); |
| 0 | 371 | | }); |
| | 372 | |
|
| 12 | 373 | | sectionSelector.GetSection((int)ExploreSection.Settings) |
| | 374 | | ?.onSelect.AddListener((isOn) => |
| | 375 | | { |
| 1 | 376 | | if (isOn) |
| | 377 | | { |
| 1 | 378 | | settingsSection.Show(); |
| 1 | 379 | | DataStore.i.exploreV2.currentSectionIndex.Set((int)ExploreSection.Settings, false); |
| 1 | 380 | | OnSectionOpen?.Invoke(ExploreSection.Settings); |
| 1 | 381 | | } |
| | 382 | | else |
| 0 | 383 | | settingsSection.Hide(); |
| 0 | 384 | | }); |
| 12 | 385 | | } |
| | 386 | |
|
| | 387 | | internal void RemoveSectionSelectorMappings() |
| | 388 | | { |
| 86 | 389 | | sectionSelector.GetSection((int)ExploreSection.Explore)?.onSelect.RemoveAllListeners(); |
| 86 | 390 | | sectionSelector.GetSection((int)ExploreSection.Backpack)?.onSelect.RemoveAllListeners(); |
| 86 | 391 | | sectionSelector.GetSection((int)ExploreSection.Map)?.onSelect.RemoveAllListeners(); |
| 86 | 392 | | sectionSelector.GetSection((int)ExploreSection.Builder)?.onSelect.RemoveAllListeners(); |
| 86 | 393 | | sectionSelector.GetSection((int)ExploreSection.Quest)?.onSelect.RemoveAllListeners(); |
| 86 | 394 | | sectionSelector.GetSection((int)ExploreSection.Settings)?.onSelect.RemoveAllListeners(); |
| 86 | 395 | | } |
| | 396 | |
|
| | 397 | | internal void ConfigureCloseButton() |
| | 398 | | { |
| 44 | 399 | | closeMenuButton.onClick.AddListener(() => OnCloseButtonPressed?.Invoke(false)); |
| 42 | 400 | | closeAction.OnTriggered += OnCloseActionTriggered; |
| 42 | 401 | | DataStore.i.exploreV2.isSomeModalOpen.OnChange += IsSomeModalOpen_OnChange; |
| 42 | 402 | | } |
| | 403 | |
|
| | 404 | | internal void IsSomeModalOpen_OnChange(bool current, bool previous) |
| | 405 | | { |
| 0 | 406 | | closeAction.OnTriggered -= OnCloseActionTriggered; |
| | 407 | |
|
| 0 | 408 | | if (!current) |
| 0 | 409 | | closeAction.OnTriggered += OnCloseActionTriggered; |
| 0 | 410 | | } |
| | 411 | |
|
| 6 | 412 | | internal void OnCloseActionTriggered(DCLAction_Trigger action) { OnCloseButtonPressed?.Invoke(true); } |
| | 413 | |
|
| | 414 | | internal void CheckIfProfileCardShouldBeClosed() |
| | 415 | | { |
| 0 | 416 | | if (!DataStore.i.exploreV2.profileCardIsOpen.Get()) |
| 0 | 417 | | return; |
| | 418 | |
|
| 0 | 419 | | if (Input.GetMouseButton(0) && |
| | 420 | | !RectTransformUtility.RectangleContainsScreenPoint(profileCardRectTranform, Input.mousePosition, Camera.main |
| | 421 | | !RectTransformUtility.RectangleContainsScreenPoint(HUDController.i.profileHud.view.expandedMenu, Input.mouse |
| | 422 | | { |
| 0 | 423 | | DataStore.i.exploreV2.profileCardIsOpen.Set(false); |
| | 424 | | } |
| 0 | 425 | | } |
| | 426 | |
|
| | 427 | | /// <summary> |
| | 428 | | /// Instantiates (if does not already exists) a realm selector modal from the given prefab. |
| | 429 | | /// </summary> |
| | 430 | | /// <returns>An instance of a realm modal modal.</returns> |
| | 431 | | internal RealmSelectorComponentView ConfigureRealmSelectorModal() |
| | 432 | | { |
| 41 | 433 | | RealmSelectorComponentView realmSelectorModal = null; |
| | 434 | |
|
| 41 | 435 | | GameObject existingModal = GameObject.Find(REALM_SELECTOR_MODAL_ID); |
| 41 | 436 | | if (existingModal != null) |
| 34 | 437 | | realmSelectorModal = existingModal.GetComponent<RealmSelectorComponentView>(); |
| | 438 | | else |
| | 439 | | { |
| 7 | 440 | | realmSelectorModal = GameObject.Instantiate(realmSelectorModalPrefab); |
| 7 | 441 | | realmSelectorModal.name = REALM_SELECTOR_MODAL_ID; |
| | 442 | | } |
| | 443 | |
|
| 41 | 444 | | realmSelectorModal.Hide(true); |
| | 445 | |
|
| 41 | 446 | | return realmSelectorModal; |
| | 447 | | } |
| | 448 | |
|
| 0 | 449 | | public void ShowRealmSelectorModal() { realmSelectorModal.Show(); } |
| | 450 | |
|
| | 451 | | internal static ExploreV2MenuComponentView Create() |
| | 452 | | { |
| 0 | 453 | | ExploreV2MenuComponentView exploreV2View = Instantiate(Resources.Load<GameObject>("MainMenu/ExploreV2Menu")).Get |
| 0 | 454 | | exploreV2View.name = "_ExploreV2"; |
| | 455 | |
|
| 0 | 456 | | return exploreV2View; |
| | 457 | | } |
| | 458 | | } |