浏览代码

[Bot] Automated dotnet-format update

/UI
uChema 4 年前
当前提交
f025e662
共有 4 个文件被更改,包括 9 次插入9 次删除
  1. 8
      UOP1_Project/Assets/Scripts/Inventory/InventoryItemFiller.cs
  2. 6
      UOP1_Project/Assets/Scripts/UI/IngredientFiller.cs
  3. 2
      UOP1_Project/Assets/Scripts/UI/InspectorDescriptionFiller.cs
  4. 2
      UOP1_Project/Assets/Scripts/UI/RecipeIngredientsFiller.cs

8
UOP1_Project/Assets/Scripts/Inventory/InventoryItemFiller.cs


_currentItem = itemStack;
_imgSelected.gameObject.SetActive(isSelected);
if(itemStack.Item.IsLocalized)
if (itemStack.Item.IsLocalized)
_bgLocalizedImage.AssetReference = itemStack.Item.LocalizePreviewImage;
_bgLocalizedImage.AssetReference = itemStack.Item.LocalizePreviewImage;
_bgLocalizedImage.enabled = false;
_itemPreviewImage.sprite = itemStack.Item.PreviewImage;
_bgLocalizedImage.enabled = false;
_itemPreviewImage.sprite = itemStack.Item.PreviewImage;
}
_itemCount.text = itemStack.Amount.ToString();
_bgImage.color = itemStack.Item.ItemType.TypeColor;

6
UOP1_Project/Assets/Scripts/UI/IngredientFiller.cs


_ingredientAmount.text = ingredient.Amount.ToString();
_tooltipMessage.StringReference = ingredient.Item.Name;
_tooltipMessage.StringReference.Arguments = new [] {new { Amount = ingredient.Amount} };
_tooltipMessage.StringReference.Arguments = new[] { new { Amount = ingredient.Amount } };
_ingredientIcon.sprite = ingredient.Item.PreviewImage;
_availableCheckMark.SetActive(isAvailable);
_unavailableCheckMark.SetActive(!isAvailable);

{
_tooltip.SetActive(true);
_tooltip.SetActive(true);
}
public void UnHoveredItem()
{

2
UOP1_Project/Assets/Scripts/UI/InspectorDescriptionFiller.cs


{
_textName.StringReference = itemToInspect.Name;
_textName.StringReference.Arguments = new[] { new { Purpose = 0, Amount=1} };
_textName.StringReference.Arguments = new[] { new { Purpose = 0, Amount = 1 } };
_textDescription.StringReference = itemToInspect.Description;
_textName.gameObject.SetActive(true);

2
UOP1_Project/Assets/Scripts/UI/RecipeIngredientsFiller.cs


}
}
正在加载...
取消
保存