示例#1
0
 //退出编辑模式
 public void ExitEditorModel(bool isDone)
 {
     //当编辑完成切换编辑图片
     UIChangeTool.ShowOneObject(EditorSprite, EditorComplieSprite, isDone);
     //添加书页图片
     AddBookmarkSprite.SetActive(isDone);
     DebugLog.DebugLogInfo("打开书签");
 }
示例#2
0
    //开关多选列表
    public void OpenMultipleModel()
    {
        if (SceneModels.instance == null)
        {
            return;
        }

        if (SceneModels.instance.get_Split_mode())
        {
            return;
        }

        if (SceneModels.instance.get_Multi_Selection() == true)
        {
            Debug.Log("MultiSelectionClose");
            // UnityMessageManager.Instance.SendMessageToRN(new UnityMessage()
            // {
            //     name = "MultiSelectionClose",
            //     callBack = (data) => { DebugLog.DebugLogInfo("message : " + data); }
            // });

            SceneModels.instance.set_Multi_Selection(false);
            isMultiMode   = false;
            isExplainHide = false;
            SceneModels.instance.CancleSelect();
            if (openMu != null && closeMu != null)
            {
                UIChangeTool.ShowOneObject(openMu, closeMu, false);
            }
            //进入多选模式将下方解释窗口置为true
            if (XT_TouchContorl.Instance.expPanel != null)
            {
                XT_TouchContorl.Instance.expPanel.SetActive(true);
            }
            //multiSelectBtn.GetComponent<Image>().color =Color.white;
        }
        else
        {
            Debug.Log("MultiSelectionOpen");
            // UnityMessageManager.Instance.SendMessageToRN(new UnityMessage()
            // {
            //     name = "MultiSelectionOpen",
            //     callBack = (data) => { DebugLog.DebugLogInfo("message : " + data); }
            // });

            SceneModels.instance.set_Multi_Selection(true);
            isExplainHide = true;
            isMultiMode   = true;
            //multiSelectBtn.GetComponent<Image>().color = new Color(1,1, 1, 0.5f);
            if (openMu != null && closeMu != null)
            {
                UIChangeTool.ShowOneObject(openMu, closeMu, false);
            }
        }
    }
示例#3
0
 //开关多选列表
 public void ResetMultipleModel()
 {
     if (openMu != null && closeMu != null)
     {
         UIChangeTool.ShowOneObject(openMu, closeMu, false);
     }
     isMultiMode   = false;
     isExplainHide = false;
     if (SceneModels.instance == null)
     {
         return;
     }
     SceneModels.instance.set_Multi_Selection(false);
     SceneModels.instance.CancleSelect();
 }
示例#4
0
    //编辑书签列表
    public void EditorBookmarkList()
    {
        bool isDone = EditorComplieSprite.activeSelf;

        UIChangeTool.ShowOneObject(EditorSprite, EditorComplieSprite, isDone);
        AddBookmarkSprite.SetActive(isDone);
        BookMark[] marklist = BookmarkParent.GetComponentsInChildren <BookMark>();
        for (int i = 0; i < marklist.Length; i++)
        {
            //if (!BookmarkEditorProtect.Contains(marklist[i].nameText.text))
            //    marklist[i].OpenDeleteUI(!isDone);
            if (!marklist[i].is_fix)
            {
                marklist[i].delete.SetActive(!isDone);
            }
            DebugLog.DebugLogInfo("进入编辑模式,可删除图片");
        }
        DebugLog.DebugLogInfo("进入编辑模式,可删除图片");
    }
示例#5
0
    public void ReadBookMark()
    {
        if(btnState.isSplitBtnUI!=SplitMode.isSpliteMode)
        {
            //SceneModels.instance.set_Multi_Selection(false);

            PublicClass.splitmode.OpenSplitMode();

        }

        if (btnState.isMultiBtnUI == false)
        {
            SceneModels.instance.set_Multi_Selection(false);
            // SceneModels.instance.CancleSelect();
            UIChangeTool.ShowOneObject(XT_AllButton.Instance.openMu, XT_AllButton.Instance.closeMu, false);
            // XT_AllButton.Instance.multiSelectBtn.GetComponent<Image>().color = Color.white;
            //XT_TouchContorl.Instance.expPanel.SetActive(false);
        }
        else
        {
            SceneModels.instance.set_Multi_Selection(true);
            // XT_AllButton.Instance.multiSelectBtn.GetComponent<Image>().color = new Color(1, 1, 1, 0.5f);
            UIChangeTool.ShowOneObject(XT_AllButton.Instance.openMu, XT_AllButton.Instance.closeMu, true);
            //进入多选模式将下方解释窗口置为true
            XT_TouchContorl.Instance.expPanel.SetActive(true);
        }

        DebugLog.DebugLogInfo("交互模块赋值");
        Interaction.instance.gameObject.transform.localPosition = new Vector3(cameraParams.positionx, cameraParams.positiony, cameraParams.distance);

        Interaction.instance.rotateAxis.transform.localPosition = new Vector3(cameraParams.rotateAxis.x, cameraParams.rotateAxis.y, cameraParams.rotateAxis.z);
        Interaction.instance.y = cameraParams.rotation.x;
        Interaction.instance.x = cameraParams.rotation.y;
        Interaction.instance.rotateAxis.transform.rotation = Quaternion.Euler(-cameraParams.rotation.x, cameraParams.rotation.y, 0);

        DebugLog.DebugLogInfo("场景模型信息");
        Model[] tempAllmodel = SceneModels.instance.Get_scope_models();
        DebugLog.DebugLogInfo("场景模型长度 " + tempAllmodel.Length);

        try
        {
            //解析场景模型信息
            for (int i = 0; i < tempAllmodel.Length; i++)
            {
                modelState outState = modelsState.SceneModelStateDict[tempAllmodel[i].name];
                if (outState.isActive)
                {

                    tempAllmodel[i].gameObject.transform.position = new Vector3(outState.position.x, outState.position.y, outState.position.z);
                    tempAllmodel[i].BecomeDisplay();
                    if (outState.isSeleted)
                    {
                        SceneModels.instance.ChooseModel(tempAllmodel[i]);
                    }
                    else
                    {
                        tempAllmodel[i].BecomeNormal();
                    }
                    if (outState.isFade)
                    {
                        tempAllmodel[i].BecomeTranslucent();
                    }
                }
                else
                {
                    tempAllmodel[i].BecomeHide();
                }
            }
        }
        catch (System.Exception e)
        {
            DebugLog.DebugLogInfo("Message  " + e.Message);
            DebugLog.DebugLogInfo("StackTrace  " + e.StackTrace);
        }
    }