UI HUGE UPDATE
This commit is contained in:
@@ -2602,9 +2602,11 @@ MonoBehaviour:
|
||||
contentParent: {fileID: 7793515376401301540}
|
||||
editorStoreItemPath: Assets/Resources/so/storeSO
|
||||
runtimeStoreItemPath: so/storeSO
|
||||
coinSprite: {fileID: 21300000, guid: 16f0765cc15fce04f828ecd44d1dbf91, type: 3}
|
||||
materialSprite: {fileID: 6715946385295466332, guid: ca0e5cf97b068b64abd9c8a036bac2e7, type: 3}
|
||||
coinSprite: {fileID: 8139719423079072813, guid: 16f0765cc15fce04f828ecd44d1dbf91, type: 3}
|
||||
materialSprite: {fileID: 6309817061271938796, guid: 6fd4dd33d986d824d95f7b01579acc4d, type: 3}
|
||||
cannotBuySprite: {fileID: 21300000, guid: 31a50f150f27159408988fc7f06b2f9e, type: 3}
|
||||
memoryBuyPlanSprite: {fileID: 21300000, guid: ddce9ea8759b6ca47b6d177982d1ed1e, type: 3}
|
||||
memorySellPlanSprite: {fileID: 21300000, guid: 9753216db376a75409e917958811eb28, type: 3}
|
||||
p_itemName: {fileID: 367982752364813130}
|
||||
p_itemImage: {fileID: 8550183957802516248}
|
||||
p_sumCostImage: {fileID: 7523113498768858079}
|
||||
@@ -2613,6 +2615,7 @@ MonoBehaviour:
|
||||
p_iAmount_minus: {fileID: 4136180758778255167}
|
||||
p_iAmount_input: {fileID: 8736896944012560947}
|
||||
purchaseButton: {fileID: 3776779056132822371}
|
||||
p_itemUsageText: {fileID: 0}
|
||||
p_detailedDescriptionText: {fileID: 8225140069678777211}
|
||||
ctasPrefab: {fileID: 3429255239314582862, guid: 4094c58a53fbfea47a443249662f8a7f, type: 3}
|
||||
ctasParent: {fileID: 5921857076690932212}
|
||||
@@ -4810,14 +4813,14 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0.41960785}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 22b72b44a57134c4496c1c373dc433cd, type: 3}
|
||||
m_Sprite: {fileID: 21300000, guid: 0c3b4c298d90db745a9a539b47de6e34, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
@@ -6003,7 +6006,7 @@ MonoBehaviour:
|
||||
m_HandleRect: {fileID: 946030816342223727}
|
||||
m_Direction: 0
|
||||
m_Value: 0
|
||||
m_Size: 1
|
||||
m_Size: 0.99999994
|
||||
m_NumberOfSteps: 0
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
|
||||
@@ -16,6 +16,7 @@ public class equipmentConsumableSO : ScriptableObject
|
||||
public string consumableName;
|
||||
public Sprite consumableSprite;
|
||||
public ItemRarity itemRarity = ItemRarity.Uncommon;
|
||||
public ItemUsageTag usageTag = ItemUsageTag.Auto;
|
||||
public string consumableUsage;
|
||||
[TextArea(3, 3)] public string consumableDescription;
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ public class expBottlesSO : ScriptableObject
|
||||
public string expBottleName;
|
||||
public Sprite expBottleSprite;
|
||||
public ItemRarity itemRarity = ItemRarity.Common;
|
||||
public ItemUsageTag usageTag = ItemUsageTag.CharacterCultivation;
|
||||
public string expBottleUsage;
|
||||
|
||||
[TextArea(3, 3)] public string expBottleDescription;
|
||||
@@ -47,4 +48,4 @@ public class expBottlesSO : ScriptableObject
|
||||
[Header("Rain All Gameplay")]
|
||||
[Min(0)] public int rainAllTargetCount = 0;
|
||||
[Min(0)] public int rainAllGrantedExpPerHero = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ public class growthMaterialSO : ScriptableObject
|
||||
public string growthMaterialName;
|
||||
public Sprite growthMaterialSprite;
|
||||
public ItemRarity itemRarity = ItemRarity.Uncommon;
|
||||
public ItemUsageTag usageTag = ItemUsageTag.CharacterBreakthrough;
|
||||
public string growthMaterialUsage;
|
||||
[TextArea(3, 3)] public string growthMaterialDescription;
|
||||
|
||||
|
||||
@@ -8,13 +8,16 @@ public class storeItemSO : ScriptableObject
|
||||
[Header("Basic Info")]
|
||||
public string itemName;
|
||||
public Sprite itemIcon;
|
||||
public ItemRarity itemRarity = ItemRarity.None;
|
||||
public ItemRarity itemRarity = ItemRarity.Common;
|
||||
public int itemID; // Unique identifier for the item
|
||||
public int itemSinglePurchaseQty; // 物品单次购买数量
|
||||
public int itemPurchaseQuota; // 物品限购配额,-1为不限购
|
||||
[TextArea(3, 3)] public string itemDescription;
|
||||
[TextArea(3, 10)] public string itemDetailedDescription; // 这个是用来在物品详情界面显示的更详细的描述文本的
|
||||
|
||||
[Header("Usage")]
|
||||
public ItemUsageTag itemUsageTag = ItemUsageTag.Auto;
|
||||
|
||||
[Header("Item Type")]
|
||||
public bool isOnShelf = true; // Indicates if the item is currently available for purchase
|
||||
public bool canbepurchased = true; // Indicates if the item can be purchased with coins
|
||||
|
||||
@@ -43,6 +43,8 @@ public class storeSystem : MonoBehaviour
|
||||
public Sprite coinSprite;
|
||||
public Sprite materialSprite;
|
||||
public Sprite cannotBuySprite;
|
||||
public Sprite memoryBuyPlanSprite;
|
||||
public Sprite memorySellPlanSprite;
|
||||
|
||||
[Header("selecting item purchase")]
|
||||
public Text p_itemName;
|
||||
@@ -53,6 +55,7 @@ public class storeSystem : MonoBehaviour
|
||||
public Button p_iAmount_minus;
|
||||
public InputField p_iAmount_input;
|
||||
public Button purchaseButton;
|
||||
public Text p_itemUsageText;
|
||||
public Text p_detailedDescriptionText;
|
||||
|
||||
[Header("selectable equipment reward")]
|
||||
@@ -347,7 +350,7 @@ public class storeSystem : MonoBehaviour
|
||||
}
|
||||
|
||||
var playerSkillItems = new List<storeItemSO>();
|
||||
PlayerSkillService.AppendDynamicStoreItems(playerSkillItems, coinSprite, materialSprite);
|
||||
PlayerSkillService.AppendDynamicStoreItems(playerSkillItems, coinSprite, materialSprite, memoryBuyPlanSprite, memorySellPlanSprite);
|
||||
for (int i = 0; i < playerSkillItems.Count; i++)
|
||||
{
|
||||
var itemSO = playerSkillItems[i];
|
||||
@@ -763,6 +766,11 @@ public class storeSystem : MonoBehaviour
|
||||
: itemSO.itemDetailedDescription;
|
||||
}
|
||||
|
||||
if (p_itemUsageText != null)
|
||||
{
|
||||
p_itemUsageText.text = ItemUsageTagUtility.ResolveDisplayName(itemSO);
|
||||
}
|
||||
|
||||
if (resetAmount || IsSelectableEquipmentRewardItem(itemSO))
|
||||
{
|
||||
SetPurchaseAmount(MinPurchaseAmount, false);
|
||||
@@ -795,6 +803,11 @@ public class storeSystem : MonoBehaviour
|
||||
p_detailedDescriptionText.text = string.Empty;
|
||||
}
|
||||
|
||||
if (p_itemUsageText != null)
|
||||
{
|
||||
p_itemUsageText.text = string.Empty;
|
||||
}
|
||||
|
||||
if (p_sumCostText != null)
|
||||
{
|
||||
p_sumCostText.text = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user