update detail and status produce items
This commit is contained in:
@@ -10,6 +10,8 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using CSNetwork;
|
||||
using System.Text;
|
||||
using TMPro;
|
||||
|
||||
namespace BrewMonster
|
||||
{
|
||||
@@ -30,10 +32,19 @@ namespace BrewMonster
|
||||
[Header("Result Slot")]
|
||||
[SerializeField] private Transform itemResult;
|
||||
|
||||
[Header("Item Info Panel")]
|
||||
public Transform itemInfoRoot;
|
||||
public TMPro.TextMeshProUGUI infoNameText;
|
||||
public TMPro.TextMeshProUGUI infoDescText;
|
||||
public TMPro.TextMeshProUGUI infoExtraText;
|
||||
|
||||
private NPC_MAKE_SERVICE? cachedMakeService = null;
|
||||
private int currentTabIndex = 0;
|
||||
private uint selectedRecipeId = 0; // Track the currently selected recipe
|
||||
|
||||
static readonly Color COLOR_NOT_ENOUGH = new Color32(145, 145, 145, 255);
|
||||
static readonly Color COLOR_ENOUGH = Color.white;
|
||||
|
||||
[SerializeField] private Button startProduceBtn;
|
||||
[SerializeField] private Button cancelProduceBtn;
|
||||
|
||||
@@ -133,7 +144,7 @@ namespace BrewMonster
|
||||
pageTitle = $"Page {pageIndex + 1}";
|
||||
|
||||
TMPro.TextMeshProUGUI tabTMP = null;
|
||||
Text tabText = null;
|
||||
TextMeshProUGUI tabText = null;
|
||||
|
||||
Transform textTf = tabObj.transform.Find(tabButtonTextComponentName);
|
||||
if (textTf != null)
|
||||
@@ -141,7 +152,7 @@ namespace BrewMonster
|
||||
tabTMP = textTf.GetComponent<TMPro.TextMeshProUGUI>();
|
||||
if (tabTMP == null)
|
||||
{
|
||||
tabText = textTf.GetComponent<Text>();
|
||||
tabText = textTf.GetComponent<TextMeshProUGUI>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +161,7 @@ namespace BrewMonster
|
||||
tabTMP = tabObj.GetComponentInChildren<TMPro.TextMeshProUGUI>();
|
||||
if(tabTMP == null)
|
||||
{
|
||||
tabText = tabObj.GetComponentInChildren<Text>();
|
||||
tabText = tabObj.GetComponentInChildren<TextMeshProUGUI>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,6 +231,29 @@ namespace BrewMonster
|
||||
{
|
||||
Debug.LogWarning("[DlgProduce] ProduceItemPanel component not found on item prefab");
|
||||
}
|
||||
|
||||
var trigger = item.AddComponent<UnityEngine.EventSystems.EventTrigger>();
|
||||
|
||||
var entryEnter = new UnityEngine.EventSystems.EventTrigger.Entry
|
||||
{
|
||||
eventID = UnityEngine.EventSystems.EventTriggerType.PointerEnter
|
||||
};
|
||||
entryEnter.callback.AddListener((_) =>
|
||||
{
|
||||
ShowItemInfoByRecipe(recipeId);
|
||||
});
|
||||
trigger.triggers.Add(entryEnter);
|
||||
|
||||
var entryExit = new UnityEngine.EventSystems.EventTrigger.Entry
|
||||
{
|
||||
eventID = UnityEngine.EventSystems.EventTriggerType.PointerExit
|
||||
};
|
||||
entryExit.callback.AddListener((_) =>
|
||||
{
|
||||
HideItemInfo();
|
||||
});
|
||||
trigger.triggers.Add(entryExit);
|
||||
|
||||
}
|
||||
|
||||
void ClearContainer(Transform container)
|
||||
@@ -252,7 +286,7 @@ namespace BrewMonster
|
||||
Transform qtyTf = slot.Find("text_quantity");
|
||||
if (qtyTf != null)
|
||||
{
|
||||
Text txt = qtyTf.GetComponent<Text>();
|
||||
TextMeshProUGUI txt = qtyTf.GetComponent<TextMeshProUGUI>();
|
||||
if (txt != null)
|
||||
txt.text = "";
|
||||
}
|
||||
@@ -273,7 +307,7 @@ namespace BrewMonster
|
||||
Transform qtyTf = itemResult.Find("text_quantity");
|
||||
if (qtyTf != null)
|
||||
{
|
||||
Text txt = qtyTf.GetComponent<Text>();
|
||||
TextMeshProUGUI txt = qtyTf.GetComponent<TextMeshProUGUI>();
|
||||
if (txt != null)
|
||||
txt.text = "";
|
||||
}
|
||||
@@ -324,7 +358,7 @@ namespace BrewMonster
|
||||
Transform qtyTf = itemResult.Find("text_quantity");
|
||||
if (qtyTf != null)
|
||||
{
|
||||
Text txt = qtyTf.GetComponent<Text>();
|
||||
TextMeshProUGUI txt = qtyTf.GetComponent<TextMeshProUGUI>();
|
||||
if (txt != null)
|
||||
txt.text = "1";
|
||||
}
|
||||
@@ -333,6 +367,7 @@ namespace BrewMonster
|
||||
if (recipe.materials == null)
|
||||
return;
|
||||
|
||||
bool allEnough = true;
|
||||
int slotIndex = 0;
|
||||
foreach (var mat in recipe.materials)
|
||||
{
|
||||
@@ -342,6 +377,12 @@ namespace BrewMonster
|
||||
if (mat.id == 0 || mat.num <= 0)
|
||||
continue;
|
||||
|
||||
int owned = GetInventoryItemCount(mat.id);
|
||||
bool enough = owned >= mat.num;
|
||||
|
||||
if (!enough)
|
||||
allEnough = false;
|
||||
|
||||
Transform slot = materialSlots[slotIndex];
|
||||
slot.gameObject.SetActive(true);
|
||||
|
||||
@@ -352,25 +393,47 @@ namespace BrewMonster
|
||||
if (img != null)
|
||||
{
|
||||
Sprite sp = EC_IvtrItemUtils.Instance.ResolveItemIconSprite((int)mat.id);
|
||||
if (sp != null)
|
||||
{
|
||||
img.sprite = sp;
|
||||
img.enabled = true;
|
||||
img.preserveAspect = true;
|
||||
}
|
||||
img.sprite = sp;
|
||||
img.enabled = true;
|
||||
img.preserveAspect = true;
|
||||
img.color = enough ? COLOR_ENOUGH : COLOR_NOT_ENOUGH;
|
||||
}
|
||||
}
|
||||
|
||||
Transform qtyTf = slot.Find("text_quantity");
|
||||
if (qtyTf != null)
|
||||
{
|
||||
Text txt = qtyTf.GetComponent<Text>();
|
||||
if (txt != null)
|
||||
txt.text = mat.num.ToString();
|
||||
var tmp = qtyTf.GetComponent<TMPro.TextMeshProUGUI>();
|
||||
if (tmp != null)
|
||||
tmp.text = $"{mat.num}";
|
||||
else
|
||||
{
|
||||
TextMeshProUGUI txt = qtyTf.GetComponent<TextMeshProUGUI>();
|
||||
if (txt != null)
|
||||
txt.text = $"{mat.num}";
|
||||
}
|
||||
}
|
||||
|
||||
slotIndex++;
|
||||
}
|
||||
|
||||
if (itemResult != null)
|
||||
{
|
||||
Transform iconTf = itemResult.Find("item");
|
||||
if (iconTf != null)
|
||||
{
|
||||
Image img = iconTf.GetComponent<Image>();
|
||||
if (img != null)
|
||||
{
|
||||
img.color = allEnough ? COLOR_ENOUGH : COLOR_NOT_ENOUGH;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(startProduceBtn != null)
|
||||
{
|
||||
startProduceBtn.interactable = allEnough;
|
||||
}
|
||||
}
|
||||
|
||||
void OnStartProduceClicked()
|
||||
@@ -458,6 +521,85 @@ namespace BrewMonster
|
||||
}
|
||||
}
|
||||
|
||||
public void ShowItemInfoByRecipe(uint recipeId)
|
||||
{
|
||||
if (itemInfoRoot == null)
|
||||
return;
|
||||
|
||||
var edm = ElementDataManProvider.GetElementDataMan();
|
||||
if (edm == null)
|
||||
return;
|
||||
|
||||
DATA_TYPE dt = DATA_TYPE.DT_INVALID;
|
||||
object data = edm.get_data_ptr(recipeId, ID_SPACE.ID_SPACE_RECIPE, ref dt);
|
||||
|
||||
if (data is not RECIPE_ESSENCE recipe ||
|
||||
recipe.targets == null ||
|
||||
recipe.targets.Length == 0)
|
||||
return;
|
||||
|
||||
uint itemId = recipe.targets[0].id_to_make;
|
||||
if (itemId == 0)
|
||||
return;
|
||||
|
||||
EC_IvtrItem item = null;
|
||||
try
|
||||
{
|
||||
item = EC_IvtrItem.CreateItem((int)itemId, 0, 1);
|
||||
item?.GetDetailDataFromLocal();
|
||||
}
|
||||
catch { }
|
||||
|
||||
if (item == null)
|
||||
return;
|
||||
|
||||
itemInfoRoot.gameObject.SetActive(true);
|
||||
|
||||
if (infoNameText != null)
|
||||
infoNameText.text = EC_Utility.ProcessColorCodes(new StringBuilder (item.GetName()));
|
||||
|
||||
if (infoDescText != null)
|
||||
infoDescText.text = EC_Utility.ProcessColorCodes(new StringBuilder (item.GetDesc()?.Replace("\\r", "\n") ?? ""));
|
||||
|
||||
if (infoExtraText != null)
|
||||
{
|
||||
infoExtraText.text = $"Item ID: {itemId}";
|
||||
}
|
||||
}
|
||||
|
||||
public void HideItemInfo()
|
||||
{
|
||||
if (itemInfoRoot != null)
|
||||
itemInfoRoot.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
// Helper to get total count of an item in player's inventory
|
||||
int GetInventoryItemCount(uint itemId)
|
||||
{
|
||||
var host = CECGameRun.Instance?.GetHostPlayer();
|
||||
if (host == null)
|
||||
return 0;
|
||||
|
||||
var inv = host.GetInventory(0); // 0 = inventory bag
|
||||
if (inv == null)
|
||||
return 0;
|
||||
|
||||
int total = 0;
|
||||
int size = inv.GetSize();
|
||||
|
||||
for (int i = 0; i < size; i++)
|
||||
{
|
||||
var item = inv.GetItem(i, false);
|
||||
if (item != null && item.m_tid == itemId)
|
||||
{
|
||||
total += item.m_iCount;
|
||||
}
|
||||
}
|
||||
|
||||
return total;
|
||||
}
|
||||
|
||||
|
||||
public void OnDestroy()
|
||||
{
|
||||
ClearContainer(tabBtnContainer);
|
||||
|
||||
@@ -941,6 +941,7 @@ RectTransform:
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children:
|
||||
- {fileID: 6565748030615029312}
|
||||
- {fileID: 3517887537669938751}
|
||||
m_Father: {fileID: 8062547726938481465}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
@@ -2474,6 +2475,126 @@ MonoBehaviour:
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &1753167144210994885
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3517887537669938751}
|
||||
- component: {fileID: 1044286488259006771}
|
||||
- component: {fileID: 1799523097550107519}
|
||||
- component: {fileID: 7817565192392270890}
|
||||
- component: {fileID: 6724562490210074474}
|
||||
m_Layer: 5
|
||||
m_Name: item_info
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3517887537669938751
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1753167144210994885}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.625, y: 0.625, z: 0.625}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 6895235938223632510}
|
||||
- {fileID: 4405228381132588255}
|
||||
- {fileID: 3206398536376007879}
|
||||
m_Father: {fileID: 6993523375080496617}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 428, y: -66}
|
||||
m_SizeDelta: {x: -28.472656, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1044286488259006771
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1753167144210994885}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1799523097550107519
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1753167144210994885}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
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: 31724268aed254d4c9a0523e647a6c71, type: 3}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &7817565192392270890
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1753167144210994885}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Padding:
|
||||
m_Left: 21
|
||||
m_Right: 0
|
||||
m_Top: 0
|
||||
m_Bottom: 19
|
||||
m_ChildAlignment: 0
|
||||
m_Spacing: 0
|
||||
m_ChildForceExpandWidth: 1
|
||||
m_ChildForceExpandHeight: 1
|
||||
m_ChildControlWidth: 0
|
||||
m_ChildControlHeight: 0
|
||||
m_ChildScaleWidth: 0
|
||||
m_ChildScaleHeight: 0
|
||||
m_ReverseArrangement: 0
|
||||
--- !u!114 &6724562490210074474
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1753167144210994885}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 0
|
||||
m_VerticalFit: 2
|
||||
--- !u!1 &1794005209542767278
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3123,6 +3244,157 @@ MonoBehaviour:
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &2081095572000580542
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3206398536376007879}
|
||||
- component: {fileID: 1818387876938764521}
|
||||
- component: {fileID: 1996316989654343692}
|
||||
- component: {fileID: 6600332483280231534}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP) (2)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3206398536376007879
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2081095572000580542}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3517887537669938751}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 21, y: -55.426666}
|
||||
m_SizeDelta: {x: 465.7476, y: 0}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!222 &1818387876938764521
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2081095572000580542}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1996316989654343692
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2081095572000580542}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
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_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_sharedMaterial: {fileID: 9092487103257209053, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!114 &6600332483280231534
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2081095572000580542}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 0
|
||||
m_VerticalFit: 2
|
||||
--- !u!1 &2100761114601032195
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -7167,6 +7439,10 @@ MonoBehaviour:
|
||||
- {fileID: 7749576438893503211}
|
||||
- {fileID: 4622013364428910847}
|
||||
itemResult: {fileID: 8891250597797895463}
|
||||
itemInfoRoot: {fileID: 3517887537669938751}
|
||||
infoNameText: {fileID: 7304082661431364846}
|
||||
infoDescText: {fileID: 4926468606842631984}
|
||||
infoExtraText: {fileID: 1996316989654343692}
|
||||
startProduceBtn: {fileID: 104721682242719380}
|
||||
cancelProduceBtn: {fileID: 786694399164181467}
|
||||
--- !u!1 &5819068069398175026
|
||||
@@ -9181,6 +9457,157 @@ MonoBehaviour:
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &7065765475504083612
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6895235938223632510}
|
||||
- component: {fileID: 3740296715539855320}
|
||||
- component: {fileID: 7304082661431364846}
|
||||
- component: {fileID: 3354868495046016993}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6895235938223632510
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7065765475504083612}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3517887537669938751}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 21, y: -0}
|
||||
m_SizeDelta: {x: 472.5032, y: 0}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!222 &3740296715539855320
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7065765475504083612}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7304082661431364846
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7065765475504083612}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
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_text:
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_sharedMaterial: {fileID: 9092487103257209053, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!114 &3354868495046016993
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7065765475504083612}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 0
|
||||
m_VerticalFit: 2
|
||||
--- !u!1 &7194157230881184597
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -10871,6 +11298,159 @@ MonoBehaviour:
|
||||
cashTextsLegacy: []
|
||||
cashTextsTMP: []
|
||||
currentDragImage: {fileID: 0}
|
||||
--- !u!1 &8531818128743034073
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4405228381132588255}
|
||||
- component: {fileID: 2671266570269560597}
|
||||
- component: {fileID: 4926468606842631984}
|
||||
- component: {fileID: 2280907093372436396}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP) (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4405228381132588255
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8531818128743034073}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3517887537669938751}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 21, y: -27.713333}
|
||||
m_SizeDelta: {x: 465.7476, y: 0}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!222 &2671266570269560597
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8531818128743034073}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &4926468606842631984
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8531818128743034073}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
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_text: 'abcdegtiklm
|
||||
|
||||
'
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_sharedMaterial: {fileID: 9092487103257209053, guid: 369c2e14814cc9a4b8e3ad4e37769134, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!114 &2280907093372436396
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8531818128743034073}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_HorizontalFit: 0
|
||||
m_VerticalFit: 2
|
||||
--- !u!1 &8621192307041985883
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
Reference in New Issue
Block a user