/// <summary> Remove the property with the given id from the given property list </summary> /// <param name="deleteGuid"> Guid of the property that needs to be deleted from the given property list </param> /// <param name="propertyList"> Property list where the property can be found </param> private static void RemoveProperty(Guid deleteGuid, List <LabelId> propertyList) { for (int i = propertyList.Count - 1; i >= 0; i--) { LabelId property = propertyList[i]; if (!property.Id.Equals(deleteGuid)) { continue; } propertyList.RemoveAt(i); break; } }
private void SyncFontIdsToLabelIds(List <LabelId> fontLabels) { for (int i = 0; i < fontLabels.Count; i++) { LabelId label = fontLabels[i]; if (Fonts.Count < i + 1) { Fonts.Add(new FontId(label.Id, DefaultFont)); continue; } Fonts[i].SetId(label.Id); } }
private void SyncTextureIdsToLabelIds(List <LabelId> textureLabels) { for (int i = 0; i < textureLabels.Count; i++) { LabelId label = textureLabels[i]; if (Textures.Count < i + 1) { Textures.Add(new TextureId(label.Id, null)); continue; } Textures[i].SetId(label.Id); } }
private void SyncSpriteIdsToLabelIds(List <LabelId> spriteLabels) { for (int i = 0; i < spriteLabels.Count; i++) { LabelId label = spriteLabels[i]; if (Sprites.Count < i + 1) { Sprites.Add(new SpriteId(label.Id, null)); continue; } Sprites[i].SetId(label.Id); } }
private void SyncColorIdsToLabelIds(List <LabelId> colorLabels) { for (int i = 0; i < colorLabels.Count; i++) { LabelId label = colorLabels[i]; if (Colors.Count < i + 1) { Colors.Add(new ColorId(label.Id, Color.white)); continue; } Colors[i].SetId(label.Id); } }
private void SyncFontAssetIdsToLabelIds(List <LabelId> fontAssetLabels) { #if dUI_TextMeshPro for (int i = 0; i < fontAssetLabels.Count; i++) { LabelId label = fontAssetLabels[i]; if (FontAssets.Count < i + 1) { FontAssets.Add(new FontAssetId(label.Id, null)); continue; } FontAssets[i].SetId(label.Id); } #endif }