public void ViewMessageOnScreen(string msg) { HelpersMan.ShowPanel(messageBoxPanel); if (messageBoxPanel) { messageBoxPanel.GetComponentsInChildren <Text>()[0].text = msg; } }
public void ViewCartItemDetails() { Debug.Log("Viewing item details ... "); HelpersMan.ShowPanel(UIMan.cartItemDetailsPanel); if (UIMan.cartItemDetailsPanel) { if (Globals.userLanguage == "AR") { // Setting the item name UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[0].text = slotItem.itemName.ToString() + ArabicFixer.Fix("الاسم: "); // Setting the item Category UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[1].text = slotItem.itemCategory.ToString() + ArabicFixer.Fix("الفئة: "); // Setting the item type UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[2].text = slotItem.itemType.ToString() + ArabicFixer.Fix("النوع: "); // Setting the item Description UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[3].text = slotItem.itemDescription.ToString() + ArabicFixer.Fix("الوصف: "); // Setting the item Price UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[4].text = " EGP." + slotItem.itemPrice.ToString() + ArabicFixer.Fix("السعر: "); // Setting the item quantity UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[5].text = slotItem.itemQuantity.ToString() + ArabicFixer.Fix("الكمية: "); // Setting the item seller UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[6].text = slotItem.itemSeller.ToString() + ArabicFixer.Fix("البائع: "); // Setting the item status UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[7].text = slotItem.itemStatus.ToString() + ArabicFixer.Fix("الحالة: "); // Setting the item post date UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[8].text = slotItem.itemPostDate.ToString() + ArabicFixer.Fix("التاريخ: "); //FixCartItems(); UIMan.itemSnapshotsPanel.GetComponent <ItemSnapshotPanelMan>().item = slotItem.ShallowCopy(); UIMan.cartItemDetailsPanel.GetComponent <CartItemDetailsPanelMan>().currentItem = slotItem.ShallowCopy(); } else { // Setting the item name UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[0].text = "Name: " + slotItem.itemName.ToString(); // Setting the item Category UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[1].text = "Category: " + slotItem.itemCategory.ToString(); // Setting the item type UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[2].text = "Type: " + slotItem.itemType.ToString(); // Setting the item Description UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[3].text = "Description: " + slotItem.itemDescription.ToString(); // Setting the item Price UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[4].text = "Price: " + slotItem.itemPrice.ToString() + " EGP."; // Setting the item quantity UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[5].text = "Quantity: " + slotItem.itemQuantity.ToString(); // Setting the item seller UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[6].text = "Seller: " + slotItem.itemSeller.ToString(); // Setting the item status UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[7].text = "Status: " + slotItem.itemStatus.ToString(); // Setting the item post date UIMan.cartItemDetailsPanel.GetComponentsInChildren <Text>()[8].text = "Date: " + slotItem.itemPostDate.ToString(); UIMan.itemSnapshotsPanel.GetComponent <ItemSnapshotPanelMan>().item = slotItem.ShallowCopy(); UIMan.cartItemDetailsPanel.GetComponent <CartItemDetailsPanelMan>().currentItem = slotItem.ShallowCopy(); } } }
public void OnEnable() { HelpersMan.HidePanel(messageBoxPanel); }
public void CloseMessageBoxBtn() { HelpersMan.HidePanel(messageBoxPanel); }