Commit f97d77de authored by 赤子奈落's avatar 赤子奈落

fix ui card detail bug

parent 89a9d7c1
......@@ -6,7 +6,7 @@ using YGOSharp.OCGWrapper.Enums;
public class CardDetail : MonoBehaviour
{
public UIWidget widge;
public UIPanel Panel;
public UITexture pic;
public UILabel label_name;
public UILabel label_property;
......@@ -41,10 +41,10 @@ public class CardDetail : MonoBehaviour
private void Start()
{
widge.alpha = 0f;
Panel.alpha = 0f;
UIHelper.registEvent(gameObject, "exit_", Hide);
widge.alpha = 1f;
Panel.alpha = 1f;
gameObject.SetActive(false);
}
......@@ -54,7 +54,7 @@ public class CardDetail : MonoBehaviour
return;
Card origin = CardsManager.Get(card.Id);
isShowed = true;
widge.alpha = 1f;
Panel.alpha = 1f;
SEHandler.PlayInternalAudio("se_sys/SE_DECK_WINDOW_OPEN");
pic.mainTexture = GameTextureManager.GetCardPictureNow(origin.Id);
label_name.text = origin.Name;
......@@ -266,7 +266,7 @@ public class CardDetail : MonoBehaviour
public void Hide()
{
isShowed = false;
widge.alpha=0f;
Panel.alpha=0f;
gameObject.SetActive(false);
SEHandler.PlayInternalAudio("se_sys/SE_MENU_CANCEL");
}
......
Assets/MD/Texture/mask_airoom.png

4.61 KB | W: | H:

Assets/MD/Texture/mask_airoom.png

5.15 KB | W: | H:

Assets/MD/Texture/mask_airoom.png
Assets/MD/Texture/mask_airoom.png
Assets/MD/Texture/mask_airoom.png
Assets/MD/Texture/mask_airoom.png
  • 2-up
  • Swipe
  • Onion skin
Assets/MD/Texture/mask_card detail.png

4.49 KB | W: | H:

Assets/MD/Texture/mask_card detail.png

8.51 KB | W: | H:

Assets/MD/Texture/mask_card detail.png
Assets/MD/Texture/mask_card detail.png
Assets/MD/Texture/mask_card detail.png
Assets/MD/Texture/mask_card detail.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
......@@ -396,7 +396,7 @@ public class UIDrawCall : MonoBehaviour
if (mFilter == null) mFilter = gameObject.AddComponent<MeshFilter>();
if (verts.size < 65000)
{
{
// Populate the index buffer
int indexCount = (count >> 1) * 3;
bool setIndices = (mIndices == null || mIndices.Length != indexCount);
......
......@@ -8717,6 +8717,18 @@ public class Ocgcore : ServantWithCardDescription
gameField.hideSpButtons(gameObject);
gameField.btn_decide.hide();
}
else if (gameObject.name == "pic_button")
{
Debug.Log("Mark1");
gameField.hideSpButtons(gameObject);
gameField.btn_decide.hide();
}
else if (gameObject.name == "back_cardDetail")
{
Debug.Log("Mark2");
gameField.hideSpButtons(gameObject);
gameField.btn_decide.hide();
}
else if (gameObject.name == "duelLog_")
{
gameField.hideSpButtons(gameObject);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment