| | 1 | | using System; |
| | 2 | | using System.Collections.Generic; |
| | 3 | | using System.Linq; |
| | 4 | | using DCL.Emotes; |
| | 5 | | using UnityEngine; |
| | 6 | |
|
| | 7 | | namespace DCL.EmotesCustomization |
| | 8 | | { |
| | 9 | | public class EmotesCustomizationComponentController : IEmotesCustomizationComponentController |
| | 10 | | { |
| | 11 | | internal const int NUMBER_OF_SLOTS = 10; |
| | 12 | | internal string bodyShapeId; |
| | 13 | |
|
| | 14 | | internal DataStore_EmotesCustomization emotesCustomizationDataStore; |
| | 15 | | internal DataStore_Emotes emotesDataStore; |
| 62 | 16 | | internal BaseDictionary<string, EmoteCardComponentView> emotesInLoadingState = new BaseDictionary<string, EmoteC |
| | 17 | | internal InputAction_Hold equipInputAction; |
| | 18 | | internal DataStore_ExploreV2 exploreV2DataStore; |
| | 19 | | internal DataStore_HUDs hudsDataStore; |
| 62 | 20 | | internal Dictionary<string, WearableItem> ownedEmotes = new Dictionary<string, WearableItem>(); |
| | 21 | | // internal InputAction_Hold showInfoInputAction; |
| | 22 | | internal InputAction_Trigger shortcut0InputAction; |
| | 23 | | internal InputAction_Trigger shortcut1InputAction; |
| | 24 | | internal InputAction_Trigger shortcut2InputAction; |
| | 25 | | internal InputAction_Trigger shortcut3InputAction; |
| | 26 | | internal InputAction_Trigger shortcut4InputAction; |
| | 27 | | internal InputAction_Trigger shortcut5InputAction; |
| | 28 | | internal InputAction_Trigger shortcut6InputAction; |
| | 29 | | internal InputAction_Trigger shortcut7InputAction; |
| | 30 | | internal InputAction_Trigger shortcut8InputAction; |
| | 31 | | internal InputAction_Trigger shortcut9InputAction; |
| | 32 | |
|
| | 33 | | internal IEmotesCustomizationComponentView view; |
| | 34 | |
|
| 0 | 35 | | internal bool isEmotesCustomizationSectionOpen => exploreV2DataStore.isOpen.Get() && view.isActive; |
| | 36 | |
|
| | 37 | | public event Action<string> onEmotePreviewed; |
| | 38 | | public event Action<string> onEmoteEquipped; |
| | 39 | | public event Action<string> onEmoteUnequipped; |
| | 40 | | public event Action<string> onEmoteSell; |
| | 41 | |
|
| | 42 | | public IEmotesCustomizationComponentView Initialize( |
| | 43 | | DataStore_EmotesCustomization emotesCustomizationDataStore, |
| | 44 | | DataStore_Emotes emotesDataStore, |
| | 45 | | DataStore_ExploreV2 exploreV2DataStore, |
| | 46 | | DataStore_HUDs hudsDataStore) |
| | 47 | | { |
| 62 | 48 | | this.emotesCustomizationDataStore = emotesCustomizationDataStore; |
| 62 | 49 | | this.emotesDataStore = emotesDataStore; |
| 62 | 50 | | this.exploreV2DataStore = exploreV2DataStore; |
| 62 | 51 | | this.hudsDataStore = hudsDataStore; |
| | 52 | |
|
| 62 | 53 | | IEmotesCustomizationComponentView view = ConfigureView(); |
| 62 | 54 | | ConfigureShortcuts(); |
| | 55 | |
|
| 62 | 56 | | emotesCustomizationDataStore.equippedEmotes.OnSet += OnEquippedEmotesSet; |
| 62 | 57 | | OnEquippedEmotesSet(emotesCustomizationDataStore.equippedEmotes.Get()); |
| | 58 | |
|
| 62 | 59 | | emotesDataStore.animations.OnAdded -= OnAnimationAdded; |
| 62 | 60 | | emotesDataStore.animations.OnAdded += OnAnimationAdded; |
| | 61 | |
|
| 62 | 62 | | return view; |
| | 63 | | } |
| | 64 | |
|
| | 65 | | public void SetEmotes(WearableItem[] ownedEmotes) |
| | 66 | | { |
| | 67 | | //Find loaded emotes that are not contained in emotesToSet |
| 9079 | 68 | | List<string> idsToRemove = emotesCustomizationDataStore.currentLoadedEmotes.Get().Where(x => ownedEmotes.All |
| | 69 | |
|
| 184 | 70 | | foreach (string emoteId in idsToRemove) |
| | 71 | | { |
| 0 | 72 | | RemoveEmote(emoteId); |
| | 73 | | } |
| | 74 | |
|
| 92 | 75 | | this.ownedEmotes.Clear(); |
| 3646 | 76 | | for (int i = 0; i < ownedEmotes.Length; i++) |
| | 77 | | { |
| 1731 | 78 | | WearableItem emote = ownedEmotes[i]; |
| | 79 | | //emotes owned multiple times will be received as separated entities, overriding by emote.id removes tha |
| | 80 | | //if we want to show the amount of ocurrences we can modify this |
| 1731 | 81 | | this.ownedEmotes[emote.id] = emote; |
| | 82 | | } |
| 3646 | 83 | | foreach (WearableItem emote in this.ownedEmotes.Values) |
| | 84 | | { |
| 1731 | 85 | | AddEmote(emote); |
| | 86 | | } |
| 92 | 87 | | UpdateEmoteSlots(); |
| 92 | 88 | | } |
| | 89 | |
|
| | 90 | | public void SetEquippedBodyShape(string bodyShapeId) |
| | 91 | | { |
| 63 | 92 | | if (bodyShapeId == this.bodyShapeId) |
| 0 | 93 | | return; |
| | 94 | |
|
| 63 | 95 | | this.bodyShapeId = bodyShapeId; |
| 2482 | 96 | | foreach (string emoteId in this.ownedEmotes.Keys) |
| | 97 | | { |
| 1178 | 98 | | RefreshEmoteLoadingState(emoteId); |
| | 99 | | } |
| 63 | 100 | | } |
| | 101 | |
|
| | 102 | | public void RestoreEmoteSlots() |
| | 103 | | { |
| 1 | 104 | | emotesCustomizationDataStore.unsavedEquippedEmotes.Set(emotesCustomizationDataStore.equippedEmotes.Get()); |
| 1 | 105 | | UpdateEmoteSlots(); |
| 1 | 106 | | } |
| | 107 | |
|
| | 108 | | public void Dispose() |
| | 109 | | { |
| 14 | 110 | | view.onEmoteEquipped -= OnEmoteEquipped; |
| 14 | 111 | | view.onEmoteUnequipped -= OnEmoteUnequipped; |
| 14 | 112 | | view.onSellEmoteClicked -= OnSellEmoteClicked; |
| 14 | 113 | | view.onSlotSelected -= OnSlotSelected; |
| 14 | 114 | | exploreV2DataStore.isOpen.OnChange -= IsStarMenuOpenChanged; |
| 14 | 115 | | hudsDataStore.avatarEditorVisible.OnChange -= OnAvatarEditorVisibleChanged; |
| 14 | 116 | | emotesCustomizationDataStore.equippedEmotes.OnSet -= OnEquippedEmotesSet; |
| 14 | 117 | | emotesDataStore.animations.OnAdded -= OnAnimationAdded; |
| 14 | 118 | | equipInputAction.OnFinished -= OnEquipInputActionTriggered; |
| | 119 | | // showInfoInputAction.OnFinished -= OnShowInfoInputActionTriggered; |
| 14 | 120 | | shortcut0InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 121 | | shortcut1InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 122 | | shortcut2InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 123 | | shortcut3InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 124 | | shortcut4InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 125 | | shortcut5InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 126 | | shortcut6InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 127 | | shortcut7InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 128 | | shortcut8InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 129 | | shortcut9InputAction.OnTriggered -= OnNumericShortcutInputActionTriggered; |
| 14 | 130 | | } |
| | 131 | |
|
| | 132 | | internal void OnEquippedEmotesSet(IEnumerable<EquippedEmoteData> equippedEmotes) |
| | 133 | | { |
| 65 | 134 | | emotesCustomizationDataStore.unsavedEquippedEmotes.Set(equippedEmotes); |
| 65 | 135 | | UpdateEmoteSlots(); |
| 65 | 136 | | } |
| | 137 | |
|
| | 138 | | internal IEmotesCustomizationComponentView ConfigureView() |
| | 139 | | { |
| 62 | 140 | | view = CreateView(); |
| 62 | 141 | | view.onEmoteEquipped += OnEmoteEquipped; |
| 62 | 142 | | view.onEmoteUnequipped += OnEmoteUnequipped; |
| 62 | 143 | | view.onSellEmoteClicked += OnSellEmoteClicked; |
| 62 | 144 | | view.onSlotSelected += OnSlotSelected; |
| 62 | 145 | | exploreV2DataStore.isOpen.OnChange += IsStarMenuOpenChanged; |
| 62 | 146 | | hudsDataStore.avatarEditorVisible.OnChange += OnAvatarEditorVisibleChanged; |
| | 147 | |
|
| 62 | 148 | | return view; |
| | 149 | | } |
| | 150 | |
|
| 2 | 151 | | internal void IsStarMenuOpenChanged(bool currentIsOpen, bool previousIsOpen) { view.SetEmoteInfoPanelActive(fals |
| | 152 | |
|
| 92 | 153 | | internal void OnAvatarEditorVisibleChanged(bool current, bool previous) { view.SetActive(current); } |
| | 154 | |
|
| | 155 | | internal void AddEmote(WearableItem emote) |
| | 156 | | { |
| 1731 | 157 | | var emoteId = emote.id; |
| 1731 | 158 | | if (!emote.IsEmote() || emotesCustomizationDataStore.currentLoadedEmotes.Contains(emoteId)) |
| 817 | 159 | | return; |
| | 160 | |
|
| 914 | 161 | | emotesCustomizationDataStore.currentLoadedEmotes.Add(emoteId); |
| 914 | 162 | | emotesDataStore.emotesOnUse.IncreaseRefCount((WearableLiterals.BodyShapes.FEMALE, emoteId)); |
| 914 | 163 | | emotesDataStore.emotesOnUse.IncreaseRefCount((WearableLiterals.BodyShapes.MALE, emoteId)); |
| 914 | 164 | | EmoteCardComponentModel emoteToAdd = ParseWearableItemIntoEmoteCardModel(emote); |
| 914 | 165 | | EmoteCardComponentView newEmote = view.AddEmote(emoteToAdd); |
| | 166 | |
|
| 914 | 167 | | if (newEmote != null) |
| 912 | 168 | | newEmote.SetAsLoading(true); |
| | 169 | |
|
| 914 | 170 | | if (!emotesInLoadingState.ContainsKey(emoteId)) |
| 914 | 171 | | emotesInLoadingState.Add(emoteId, newEmote); |
| | 172 | |
|
| 914 | 173 | | RefreshEmoteLoadingState(emoteId); |
| 914 | 174 | | } |
| | 175 | |
|
| | 176 | | internal void RemoveEmote(string emoteId) |
| | 177 | | { |
| 0 | 178 | | emotesDataStore.emotesOnUse.DecreaseRefCount((WearableLiterals.BodyShapes.FEMALE, emoteId)); |
| 0 | 179 | | emotesDataStore.emotesOnUse.DecreaseRefCount((WearableLiterals.BodyShapes.MALE, emoteId)); |
| 0 | 180 | | emotesCustomizationDataStore.currentLoadedEmotes.Remove(emoteId); |
| 0 | 181 | | view.RemoveEmote(emoteId); |
| 0 | 182 | | UpdateEmoteSlots(); |
| 0 | 183 | | } |
| | 184 | |
|
| 2 | 185 | | internal void OnAnimationAdded((string bodyshapeId, string emoteId) values, EmoteClipData emoteClipData) { Refre |
| | 186 | |
|
| | 187 | | internal void RefreshEmoteLoadingState(string emoteId) |
| | 188 | | { |
| 2094 | 189 | | if (emotesDataStore.animations.ContainsKey((bodyShapeId, emoteId))) |
| | 190 | | { |
| 2 | 191 | | emotesInLoadingState.TryGetValue(emoteId, out EmoteCardComponentView emote); |
| 2 | 192 | | if (emote != null) |
| | 193 | | { |
| 1 | 194 | | emote.SetAsLoading(false); |
| 1 | 195 | | emotesInLoadingState.Remove(emoteId); |
| | 196 | | } |
| | 197 | | } |
| 2094 | 198 | | } |
| | 199 | |
|
| | 200 | | internal EmoteCardComponentModel ParseWearableItemIntoEmoteCardModel(WearableItem wearable) |
| | 201 | | { |
| 915 | 202 | | return new EmoteCardComponentModel |
| | 203 | | { |
| | 204 | | id = wearable.id, |
| | 205 | | name = wearable.GetName(), |
| | 206 | | description = wearable.description, |
| | 207 | | pictureUri = wearable.ComposeThumbnailUrl(), |
| | 208 | | pictureSprite = wearable.thumbnailSprite, |
| | 209 | | isAssignedInSelectedSlot = false, |
| | 210 | | isSelected = false, |
| | 211 | | assignedSlot = -1, |
| | 212 | | rarity = wearable.rarity, |
| | 213 | | isInL2 = wearable.IsInL2(), |
| | 214 | | isLoading = false, |
| | 215 | | isCollectible = wearable.IsCollectible() |
| | 216 | | }; |
| | 217 | | } |
| | 218 | |
|
| | 219 | | internal void UpdateEmoteSlots() |
| | 220 | | { |
| 3434 | 221 | | for (int i = 0; i < emotesCustomizationDataStore.unsavedEquippedEmotes.Count(); i++) |
| | 222 | | { |
| 1558 | 223 | | if (i > NUMBER_OF_SLOTS) |
| | 224 | | break; |
| | 225 | |
|
| 1558 | 226 | | if (emotesCustomizationDataStore.unsavedEquippedEmotes[i] == null) //empty slot |
| | 227 | | { |
| 1550 | 228 | | EmoteSlotCardComponentView existingEmoteIntoSlot = view.GetSlot(i); |
| 1550 | 229 | | if (existingEmoteIntoSlot != null) |
| 1400 | 230 | | view.UnequipEmote(existingEmoteIntoSlot.model.emoteId, i, false); |
| | 231 | |
|
| 1400 | 232 | | continue; |
| | 233 | | } |
| | 234 | |
|
| 8 | 235 | | ownedEmotes.TryGetValue(emotesCustomizationDataStore.unsavedEquippedEmotes[i].id, out WearableItem emote |
| 8 | 236 | | if (emoteItem != null && emotesCustomizationDataStore.currentLoadedEmotes.Contains(emoteItem.id)) |
| 2 | 237 | | view.EquipEmote(emoteItem.id, emoteItem.GetName(), i, false, false); |
| | 238 | | } |
| 159 | 239 | | } |
| | 240 | |
|
| | 241 | | internal void StoreEquippedEmotes() |
| | 242 | | { |
| 2 | 243 | | List<EquippedEmoteData> newEquippedEmotesList = new List<EquippedEmoteData> { null, null, null, null, null, |
| | 244 | |
|
| 2 | 245 | | if (view.currentSlots != null) |
| | 246 | | { |
| 0 | 247 | | foreach (EmoteSlotCardComponentView slot in view.currentSlots) |
| | 248 | | { |
| 0 | 249 | | if (!string.IsNullOrEmpty(slot.model.emoteId)) |
| 0 | 250 | | newEquippedEmotesList[slot.model.slotNumber] = new EquippedEmoteData |
| | 251 | | { |
| | 252 | | id = slot.model.emoteId, |
| | 253 | | cachedThumbnail = slot.model.pictureSprite |
| | 254 | | }; |
| | 255 | | } |
| | 256 | | } |
| | 257 | |
|
| 2 | 258 | | emotesCustomizationDataStore.unsavedEquippedEmotes.Set(newEquippedEmotesList); |
| 2 | 259 | | } |
| | 260 | |
|
| | 261 | | internal void OnEmoteEquipped(string emoteId, int slotNumber) |
| | 262 | | { |
| 1 | 263 | | StoreEquippedEmotes(); |
| 1 | 264 | | onEmotePreviewed?.Invoke(emoteId); |
| 1 | 265 | | onEmoteEquipped?.Invoke(emoteId); |
| 1 | 266 | | } |
| | 267 | |
|
| | 268 | | internal void OnEmoteUnequipped(string emoteId, int slotNumber) |
| | 269 | | { |
| 1 | 270 | | StoreEquippedEmotes(); |
| 1 | 271 | | onEmoteUnequipped?.Invoke(emoteId); |
| 1 | 272 | | } |
| | 273 | |
|
| 2 | 274 | | internal void OnSellEmoteClicked(string emoteId) { onEmoteSell?.Invoke(emoteId); } |
| | 275 | |
|
| 2 | 276 | | internal void OnSlotSelected(string emoteId, int slotNumber) { onEmotePreviewed?.Invoke(emoteId); } |
| | 277 | |
|
| | 278 | | internal void ConfigureShortcuts() |
| | 279 | | { |
| 62 | 280 | | equipInputAction = Resources.Load<InputAction_Hold>("DefaultConfirmAction"); |
| 62 | 281 | | equipInputAction.OnFinished += OnEquipInputActionTriggered; |
| | 282 | |
|
| | 283 | | // showInfoInputAction = Resources.Load<InputAction_Hold>("ZoomIn"); |
| | 284 | | // showInfoInputAction.OnFinished += OnShowInfoInputActionTriggered; |
| | 285 | |
|
| 62 | 286 | | shortcut0InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut0"); |
| 62 | 287 | | shortcut0InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 288 | |
|
| 62 | 289 | | shortcut1InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut1"); |
| 62 | 290 | | shortcut1InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 291 | |
|
| 62 | 292 | | shortcut2InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut2"); |
| 62 | 293 | | shortcut2InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 294 | |
|
| 62 | 295 | | shortcut3InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut3"); |
| 62 | 296 | | shortcut3InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 297 | |
|
| 62 | 298 | | shortcut4InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut4"); |
| 62 | 299 | | shortcut4InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 300 | |
|
| 62 | 301 | | shortcut5InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut5"); |
| 62 | 302 | | shortcut5InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 303 | |
|
| 62 | 304 | | shortcut6InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut6"); |
| 62 | 305 | | shortcut6InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 306 | |
|
| 62 | 307 | | shortcut7InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut7"); |
| 62 | 308 | | shortcut7InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 309 | |
|
| 62 | 310 | | shortcut8InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut8"); |
| 62 | 311 | | shortcut8InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| | 312 | |
|
| 62 | 313 | | shortcut9InputAction = Resources.Load<InputAction_Trigger>("ToggleShortcut9"); |
| 62 | 314 | | shortcut9InputAction.OnTriggered += OnNumericShortcutInputActionTriggered; |
| 62 | 315 | | } |
| | 316 | |
|
| | 317 | | internal void OnEquipInputActionTriggered(DCLAction_Hold action) |
| | 318 | | { |
| 0 | 319 | | if (!isEmotesCustomizationSectionOpen || view.selectedCard == null || view.selectedCard.model.isLoading) |
| 0 | 320 | | return; |
| | 321 | |
|
| 0 | 322 | | if (!view.selectedCard.model.isAssignedInSelectedSlot) |
| | 323 | | { |
| 0 | 324 | | view.EquipEmote( |
| | 325 | | view.selectedCard.model.id, |
| | 326 | | view.selectedCard.model.name, |
| | 327 | | view.selectedSlot); |
| 0 | 328 | | } |
| | 329 | | else |
| | 330 | | { |
| 0 | 331 | | view.UnequipEmote( |
| | 332 | | view.selectedCard.model.id, |
| | 333 | | view.selectedSlot); |
| | 334 | | } |
| 0 | 335 | | } |
| | 336 | |
|
| | 337 | | internal void OnShowInfoInputActionTriggered(DCLAction_Hold action) |
| | 338 | | { |
| 0 | 339 | | if (!isEmotesCustomizationSectionOpen || view.selectedCard == null || !view.selectedCard.model.isCollectible |
| 0 | 340 | | return; |
| | 341 | |
|
| 0 | 342 | | view.OpenEmoteInfoPanel( |
| | 343 | | view.selectedCard.model, |
| | 344 | | view.selectedCard.rarityMark.gameObject.activeSelf ? view.selectedCard.rarityMark.color : Color.grey, |
| | 345 | | view.selectedCard.emoteInfoAnchor); |
| 0 | 346 | | } |
| | 347 | |
|
| | 348 | | internal void OnNumericShortcutInputActionTriggered(DCLAction_Trigger action) |
| | 349 | | { |
| 0 | 350 | | if (!isEmotesCustomizationSectionOpen || view.selectedCard == null || view.selectedCard.model.isLoading) |
| 0 | 351 | | return; |
| | 352 | |
|
| | 353 | | switch (action) |
| | 354 | | { |
| | 355 | | case DCLAction_Trigger.ToggleShortcut0: |
| 0 | 356 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 0); |
| 0 | 357 | | break; |
| | 358 | | case DCLAction_Trigger.ToggleShortcut1: |
| 0 | 359 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 1); |
| 0 | 360 | | break; |
| | 361 | | case DCLAction_Trigger.ToggleShortcut2: |
| 0 | 362 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 2); |
| 0 | 363 | | break; |
| | 364 | | case DCLAction_Trigger.ToggleShortcut3: |
| 0 | 365 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 3); |
| 0 | 366 | | break; |
| | 367 | | case DCLAction_Trigger.ToggleShortcut4: |
| 0 | 368 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 4); |
| 0 | 369 | | break; |
| | 370 | | case DCLAction_Trigger.ToggleShortcut5: |
| 0 | 371 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 5); |
| 0 | 372 | | break; |
| | 373 | | case DCLAction_Trigger.ToggleShortcut6: |
| 0 | 374 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 6); |
| 0 | 375 | | break; |
| | 376 | | case DCLAction_Trigger.ToggleShortcut7: |
| 0 | 377 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 7); |
| 0 | 378 | | break; |
| | 379 | | case DCLAction_Trigger.ToggleShortcut8: |
| 0 | 380 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 8); |
| 0 | 381 | | break; |
| | 382 | | case DCLAction_Trigger.ToggleShortcut9: |
| 0 | 383 | | view.EquipEmote(view.selectedCard.model.id, view.selectedCard.model.name, 9); |
| | 384 | | break; |
| | 385 | | } |
| 0 | 386 | | } |
| | 387 | |
|
| 48 | 388 | | internal virtual IEmotesCustomizationComponentView CreateView() => EmotesCustomizationComponentView.Create(); |
| | 389 | | } |
| | 390 | | } |