Beispiel #1
0
 public void RMSshow_FS(string hashCode, messageSystemValue first, messageSystemValue second)
 {
     RMSshow_clear();
     currentMShash   = hashCode;
     currentMStype   = messageSystemType.yesOrNo;
     currentMSwindow = create
                       (
         Program.I().ES_FS,
         MSentre(),
         Vector3.zero,
         true,
         Program.ui_main_2d,
         true,
         new Vector3(((float)Screen.height) / 700f, ((float)Screen.height) / 700f, ((float)Screen.height) / 700f)
                       );
     UIHelper.InterGameObject(currentMSwindow);
     UIHelper.registEvent(currentMSwindow, "yes_", ES_RMSpremono, first);
     UIHelper.registEvent(currentMSwindow, "no_", ES_RMSpremono, second);
 }
Beispiel #2
0
 public void RMSshow_onlyYes(string hashCode, string hint, messageSystemValue yes)
 {
     RMSshow_clear();
     currentMShash   = hashCode;
     currentMStype   = messageSystemType.onlyYes;
     currentMSwindow = create
                       (
         Program.I().ES_1,
         MSentre(),
         Vector3.zero,
         true,
         Program.ui_main_2d,
         true,
         new Vector3(((float)Screen.height) / 700f, ((float)Screen.height) / 700f, ((float)Screen.height) / 700f)
                       );
     UIHelper.InterGameObject(currentMSwindow);
     UIHelper.trySetLableText(currentMSwindow, "hint_", hint);
     UIHelper.registEvent(currentMSwindow, "yes_", ES_RMSpremono, yes);
 }
Beispiel #3
0
 public void RMSshow_tp(string hashCode, messageSystemValue jiandao, messageSystemValue shitou, messageSystemValue bu)
 {
     RMSshow_clear();
     currentMShash   = hashCode;
     currentMStype   = messageSystemType.tp;
     currentMSwindow = create
                       (
         Program.I().ES_Tp,
         MSentre(),
         Vector3.zero,
         true,
         Program.ui_main_2d,
         true,
         new Vector3(((float)Screen.height) / 700f, ((float)Screen.height) / 700f, ((float)Screen.height) / 700f)
                       );
     UIHelper.InterGameObject(currentMSwindow);
     UIHelper.registEvent(currentMSwindow, "jiandao_", ES_RMSpremono, jiandao);
     UIHelper.registEvent(currentMSwindow, "shitou_", ES_RMSpremono, shitou);
     UIHelper.registEvent(currentMSwindow, "bu_", ES_RMSpremono, bu);
 }
Beispiel #4
0
 public void RMSshow_menu(string hashCode, messageSystemValue left, messageSystemValue right)
 {
     RMSshow_clear();
     currentMShash   = hashCode;
     currentMStype   = messageSystemType.tp;
     currentMSwindow = create
                       (
         Program.I().ES_Menu,
         MSentre(),
         Vector3.zero,
         true,
         Program.ui_main_2d,
         true,
         new Vector3(((float)Screen.height) / 700f, ((float)Screen.height) / 700f, ((float)Screen.height) / 700f)
                       );
     UIHelper.InterGameObject(currentMSwindow);
     UIHelper.registEvent(currentMSwindow, "left_", ES_RMSpremono, left);
     UIHelper.registEvent(currentMSwindow, "right_", ES_RMSpremono, right);
     UIHelper.registEvent(currentMSwindow, "exit_", ES_RMSpremono, new messageSystemValue());
 }
Beispiel #5
0
    public void RMSshow_position(string hashCode, int code, messageSystemValue atk, messageSystemValue def)
    {
        RMSshow_clear();
        currentMShash   = hashCode;
        currentMStype   = messageSystemType.position;
        currentMSwindow = create
                          (
            Program.I().ES_position,
            MSentre(),
            Vector3.zero,
            true,
            Program.ui_main_2d,
            true,
            new Vector3(((float)Screen.height) / 700f, ((float)Screen.height) / 700f, ((float)Screen.height) / 700f)
                          );
        UIHelper.InterGameObject(currentMSwindow);
        UIHelper.registEvent(currentMSwindow, "atk_", ES_RMSpremono, atk);
        UIHelper.registEvent(currentMSwindow, "def_", ES_RMSpremono, def);

        UITexture atkpic    = UIHelper.getByName <UITexture>(currentMSwindow, "atkPic_");
        UIButton  defbutton = UIHelper.getByName <UIButton>(currentMSwindow, "def_");

        if (Int32.Parse(atk.value) == (int)CardPosition.FaceUpDefence)
        {
            atkpic.transform.localRotation    = Quaternion.Euler(0f, 0f, 90f);
            defbutton.transform.localPosition = new Vector3(72.8f, 2f, 0f);
        }
        else
        {
            atkpic.transform.localRotation    = Quaternion.Euler(0f, 0f, 0f);
            defbutton.transform.localPosition = new Vector3(62.8f, 0f, 0f);
        }

        cardPicLoader cardPicLoader_ = currentMSwindow.AddComponent <cardPicLoader>();

        cardPicLoader_.code      = code;
        cardPicLoader_.uiTexture = atkpic;
        cardPicLoader_           = currentMSwindow.AddComponent <cardPicLoader>();
        cardPicLoader_.code      = (Int32.Parse(def.value) == (int)CardPosition.FaceDownDefence) ? 0 : code;
        cardPicLoader_.uiTexture = UIHelper.getByName <UITexture>(currentMSwindow, "defPic_");
    }
Beispiel #6
0
 public virtual void ES_RMS_ForcedYesNo(messageSystemValue result)
 {
     destroy(yesOrNoForce, 0.6f, true, true);
 }
Beispiel #7
0
 void ES_RMSpremonoForceYesNo(GameObject gameObjectClicked, messageSystemValue value)
 {
     ES_RMS_ForcedYesNo(value);
 }