Commit 4856fc7f authored by mercury233's avatar mercury233

add RMSshow_position3

parent 9071f00b
Pipeline #15178 passed with stages
in 27 minutes and 20 seconds
......@@ -3313,6 +3313,10 @@ public class Ocgcore : ServantWithCardDescription
binaryMaster.writer.Write(positions);
sendReturn(binaryMaster.get());
}
if (positions == (0x1 | 0x4 | 0x8))
{
RMSshow_position3("return", code);
}
else
{
if ((positions & 0x1) > 0) op1 = 0x1;
......
......@@ -143,6 +143,7 @@ public class Program : MonoBehaviour
public GameObject ES_multiple_option;
public GameObject ES_input;
public GameObject ES_position;
public GameObject ES_position3;
public GameObject ES_Tp;
public GameObject ES_Face;
public GameObject ES_FS;
......
......@@ -652,6 +652,40 @@ public class Servant
cardPicLoader.uiTexture = UIHelper.getByName<UITexture>(currentMSwindow, "defPic_");
cardPicLoader.code = int.Parse(def.value) == (int) CardPosition.FaceDownDefence ? 0 : code;
}
public void RMSshow_position3(string hashCode, int code)
{
RMSshow_clear();
currentMShash = hashCode;
currentMStype = messageSystemType.position;
currentMSwindow = create
(
Program.I().ES_position3,
MSentre(),
Vector3.zero,
true,
Program.I().ui_main_2d,
true,
new Vector3(((float)Screen.height) / 700f, ((float)Screen.height) / 700f, ((float)Screen.height) / 700f)
);
UIHelper.InterGameObject(currentMSwindow);
UIHelper.registEvent(currentMSwindow, "upAtk_", ES_RMSpremono, new messageSystemValue { value = "1", hint = "Face-Up Attack" });
UIHelper.registEvent(currentMSwindow, "upDef_", ES_RMSpremono, new messageSystemValue { value = "4", hint = "Face-Up Defense" });
UIHelper.registEvent(currentMSwindow, "downDef_", ES_RMSpremono, new messageSystemValue { value = "8", hint = "Face-Down Defense" });
UITexture upatkpic = UIHelper.getByName<UITexture>(currentMSwindow, "upAtkPic_");
UITexture updefpic = UIHelper.getByName<UITexture>(currentMSwindow, "upDefPic_");
UITexture downdefpic = UIHelper.getByName<UITexture>(currentMSwindow, "downDefPic_");
cardPicLoader cardPicLoader_ = currentMSwindow.AddComponent<cardPicLoader>();
cardPicLoader_.uiTexture = upatkpic;
cardPicLoader_.code = code;
cardPicLoader_ = currentMSwindow.AddComponent<cardPicLoader>();
cardPicLoader_.uiTexture = updefpic;
cardPicLoader_.code = code;
cardPicLoader_ = currentMSwindow.AddComponent<cardPicLoader>();
cardPicLoader_.uiTexture = downdefpic;
cardPicLoader_.code = 0;
}
public void RMSshow_tp(string hashCode, messageSystemValue jiandao, messageSystemValue shitou,
messageSystemValue bu)
......
......@@ -217,6 +217,7 @@ MonoBehaviour:
ES_multiple_option: {fileID: 160692, guid: 2f2ccdda83cade9439f7a615e3943a17, type: 3}
ES_input: {fileID: 169056, guid: dd31e15b57e5f354e94eb55af88bdaae, type: 3}
ES_position: {fileID: 197414, guid: ebf9fc604e38b7348be638f5deaa91db, type: 3}
ES_position3: {fileID: 197414, guid: fcbf44955a2f3ab4cbe011937cb34887, type: 3}
ES_Tp: {fileID: 139314, guid: 3cafe5fcc84bd994cb64aaf0fc2b4ec6, type: 3}
ES_Face: {fileID: 195852, guid: b8748dafca1e28c4d9e882fb8b3ff68b, type: 3}
ES_FS: {fileID: 150976, guid: e371745b12d178b4ebe42e879820c9bb, type: 3}
......
This diff is collapsed.
fileFormatVersion: 2
guid: fcbf44955a2f3ab4cbe011937cb34887
timeCreated: 1486983781
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName: 20170219
assetBundleVariant: 0201
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