protected virtual void DrawInfo(FacilityM master, UserFacility userFacility)
    {
        bool         flag         = FarmDataManager.facilityUpgradeMaster.Any((FacilityUpgradeM x) => int.Parse(x.facilityId) == this.farmObject.facilityID);
        bool         isFriendFarm = FarmRoot.Instance.IsVisitFriendFarm;
        Action <int> action       = delegate(int i)
        {
            if (isFriendFarm)
            {
                GUIManager.HideBarrier();
            }
        };

        if (flag && 0 < userFacility.level && !isFriendFarm)
        {
            CMD_FacilityInfo cmd_FacilityInfo = GUIMain.ShowCommonDialog(action, "CMD_FacilityInfo", null) as CMD_FacilityInfo;
            cmd_FacilityInfo.SetFacilityInfo(userFacility);
        }
        else
        {
            CMD_FacilityInfoNoneEffect cmd_FacilityInfoNoneEffect = GUIMain.ShowCommonDialog(action, "CMD_FacilityInfo_only", null) as CMD_FacilityInfoNoneEffect;
            cmd_FacilityInfoNoneEffect.SetFacilityInfo(userFacility.facilityId);
        }
    }
    private void OnClickedInfo()
    {
        CMD_FacilityInfoNoneEffect cmd_FacilityInfoNoneEffect = GUIMain.ShowCommonDialog(null, "CMD_FacilityInfo_only", null) as CMD_FacilityInfoNoneEffect;

        cmd_FacilityInfoNoneEffect.SetFacilityInfo(this.StockFacility.facilityId);
    }
示例#3
0
    private void OnInfoButton()
    {
        CMD_FacilityInfoNoneEffect cmd_FacilityInfoNoneEffect = GUIMain.ShowCommonDialog(null, "CMD_FacilityInfo_only", null) as CMD_FacilityInfoNoneEffect;

        cmd_FacilityInfoNoneEffect.SetFacilityInfo(this.facilityID);
    }