Exemple #1
0
 private void DrawItemMetaData(MarketItemMetaData metaData)
 {
     metaData.Title       = EditorGUILayout.TextField("Title", metaData.Title);
     metaData.Description = EditorGUILayout.TextField("Description", metaData.Description);
     DrawImageData(metaData.ItemImages);
     DrawTagData(metaData.Tags);
 }
        private void DrawItemMetaData(MarketItemMetaData metaData)
        {
            metaData.Title       = EditorGUILayout.TextField("Title", metaData.Title);
            metaData.GameId      = EditorGUILayout.TextField("Game Id", metaData.GameId);
            metaData.Category    = EditorGUILayout.TextField("Category", metaData.Category);
            metaData.Description = EditorGUILayout.TextField("Description", metaData.Description);

            List <MarketItemImageData> imagesList = metaData.ItemImages;

            foreach (var imageData in imagesList)
            {
                DrawItemImageData(imageData);
            }

            if (GUILayout.Button("Add image data"))
            {
                imagesList.Add(new MarketItemImageData());
            }

            if (imagesList.Count > 0 && GUILayout.Button("Remove image data"))
            {
                imagesList.Remove(metaData.ItemImages.Last());
            }
        }
Exemple #3
0
 public MarketItemData()
 {
     Id       = "Item type";
     MetaData = new MarketItemMetaData();
 }