|
|
|
@ -113,23 +113,28 @@ public class FireLiquipPanel : BaseAttributeSet
|
|
|
|
|
|
|
|
|
|
private void SureClick() |
|
|
|
|
{ |
|
|
|
|
SetTime = Mtime * 60 + Stime; |
|
|
|
|
string settimestring = SecondToHMS(SetTime); |
|
|
|
|
chooseObj.GetComponent<FireLiquidLevelCtrl>().showTime = settimestring; |
|
|
|
|
|
|
|
|
|
//发送设置时间 |
|
|
|
|
MessageDispatcher.SendMessage("SetTime", new SetLiquipdata() { |
|
|
|
|
LiquipId = chooseObj.GetComponent<BaseGameObjInfo>().gameObjID, |
|
|
|
|
time=settimestring, |
|
|
|
|
}); |
|
|
|
|
MessageDispatcher.SendMessage("CANCEL_OBJ_SELECTED"); |
|
|
|
|
|
|
|
|
|
if (GameSettings.othersSettings.mode != Mode.DisasterManagement) |
|
|
|
|
if (chooseObj&&chooseObj.GetComponent<FireLiquidLevelCtrl>()) |
|
|
|
|
{ |
|
|
|
|
NetworkManager.Default.SendAsync("SET_LIQUIP_HIDE_SYNC", chooseObj.GetComponent<BaseGameObjInfo>().gameObjID); |
|
|
|
|
} |
|
|
|
|
SetTime = Mtime * 60 + Stime; |
|
|
|
|
string settimestring = SecondToHMS(SetTime); |
|
|
|
|
chooseObj.GetComponent<FireLiquidLevelCtrl>().showTime = settimestring; |
|
|
|
|
|
|
|
|
|
//发送设置时间 |
|
|
|
|
MessageDispatcher.SendMessage("SetTime", new SetLiquipdata() |
|
|
|
|
{ |
|
|
|
|
LiquipId = chooseObj.GetComponent<BaseGameObjInfo>().gameObjID, |
|
|
|
|
time = settimestring, |
|
|
|
|
}); |
|
|
|
|
MessageDispatcher.SendMessage("CANCEL_OBJ_SELECTED"); |
|
|
|
|
|
|
|
|
|
LoadPromptWin.Instance.LoadTextPromptWindow("设置成功",1f); |
|
|
|
|
if (GameSettings.othersSettings.mode != Mode.DisasterManagement) |
|
|
|
|
{ |
|
|
|
|
NetworkManager.Default.SendAsync("SET_LIQUIP_HIDE_SYNC", chooseObj.GetComponent<BaseGameObjInfo>().gameObjID); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
LoadPromptWin.Instance.LoadTextPromptWindow("设置成功", 1f); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void Close() |
|
|
|
|