Exemplo n.º 1
0
    protected override void Ready(Object arg1)
    {
        base.Ready(arg1);

        OneLevelPlane         = BumUITool.GetUIComponent <Transform>(skin.transform, "OneLevel");
        Editor_Button         = BumUITool.GetUIComponent <Transform>(OneLevelPlane, "Editor_Button");
        Particular_Button     = BumUITool.GetUIComponent <Transform>(OneLevelPlane, "Particular_Button");
        TwoLevelPlane         = BumUITool.GetUIComponent <Transform>(skin.transform, "TwoLevel");
        EditorPlane           = BumUITool.GetUIComponent <Transform>(TwoLevelPlane, "EditorPlane");
        Editor_Destory_Button = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Destory_Button");
        Editor_Move_Button    = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Move_Button");
        Editor_Rotate_Button  = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Rotate_Button");
        Editor_Scale_Button   = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Scale_Button");
        Editor_Home_Button    = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Home_Button");
        ParticularPlane       = BumUITool.GetUIComponent <Transform>(TwoLevelPlane, "ParticularPlane");
        Particular_OverviewOfEquipment_Button = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_OverviewOfEquipment_Button");
        Particular_BimFrom_Button             = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_BimFrom_Button");
        Particular_Explode_Button             = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_Explode_Button");
        Particular_PrinciplePlay_Button       = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_PrinciplePlay_Button");
        Particular_Home_Button = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_Home_Button");
        OneLevelPlane.gameObject.AddComponent <Sort>();
        //modelMenuPage.TwoLevelPlane.gameObject.AddComponent<Sort>();
        EditorPlane.gameObject.AddComponent <Sort>();
        ParticularPlane.gameObject.AddComponent <Sort>();
    }
 public void OnManipulationCompleted(ManipulationEventData eventData)
 {
     BumUITool.SetActionFalse(mainPage.adjustButton.gameObject);
     BumUITool.SetActionFalse(mainPage.hideButton.gameObject);
     BumUITool.SetActionTrue(mainPage.downButton.gameObject);
     BumUITool.SetActionTrue(mainPage.cancelButton.gameObject);
 }
Exemplo n.º 3
0
    public override void enter()
    {
        base.enter();
        if (gazeManager.HitObject.transform != null)
        {
            targetTransform = gazeManager.HitObject.transform;
        }
        if (targetTransform == null)
        {
            inputStateMachine.setState(Free3DState.Name);
            return;
        }
        //if (targetTransform.GetComponent<ModelView>()==null)
        //{
        //    inputStateMachine.setState(Free3DState.Name);
        //    return;
        //}
        inputStateMachine.targetTransform = targetTransform;
        threeDUI = modelMenuPage.skin.transform;
        Vector3 distanceUIByModel = gazeManager.HitPosition;

        threeDUI.rotation = Quaternion.identity;
        // 一直看着 相机
        threeDUI.position = gazeManager.HitPosition;
        threeDUI.forward  = gazeManager.GazeNormal;
        threeDUI.Translate(-gazeManager.GazeNormal * 0.5f, Space.World);
        //threeDUI.position = distanceUIByModel.x * Vector3.right + distanceUIByModel.y * Vector3.up +Vector3.forward * (distanceUIByModel.z - .5f) * threeDUI.forward.z;
        //threeDUI.position = distanceUIByModel.x * Vector3.right + distanceUIByModel.y * Vector3.up + Vector3.forward * (distanceUIByModel.z - .5f) * threeDUI.forward.z;
        BumUITool.SetActionTrue(threeDUI.gameObject);
    }
 private void OnDownButton()
 {
     isManipulation = false;
     BumUITool.SetActionTrue(mainPage.adjustButton.gameObject);
     BumUITool.SetActionTrue(mainPage.hideButton.gameObject);
     BumUITool.SetActionFalse(mainPage.downButton.gameObject);
     BumUITool.SetActionFalse(mainPage.cancelButton.gameObject);
     DebugX.Log("OnDownButton");
 }
Exemplo n.º 5
0
    protected override void Awake()
    {
        image = BumUITool.GetUIComponent <RawImage>(this.transform, "RawImage");
        DrapButton button = this.gameObject.AddComponent <DrapButton>();

        button.onPointerDownDele  = onPointerDown;
        button.onPointerUpDele    = onPointerUp;
        button.onDragDele         = onPointDrag;
        button.onPointerClickDele = onClick;
    }
 private void OnAdjustButton()
 {
     //BumUITool.SetActionFalse(mainPage.adjustButton.gameObject);
     //BumUITool.SetActionTrue(mainPage.downButton.gameObject);
     //BumUITool.SetActionTrue(mainPage.adjustConfirm.gameObject);
     //BumUITool.SetActionFalse(mainPage.AdjustPlane.gameObject);
     BumUITool.SetActionFalse(mainPage.adjustButton.gameObject);
     BumUITool.SetActionFalse(mainPage.hideButton.gameObject);
     BumUITool.SetActionTrue(mainPage.downButton.gameObject);
     BumUITool.SetActionTrue(mainPage.cancelButton.gameObject);
     isManipulation = true;
     DebugX.Log("OnAdjustButton");
 }
Exemplo n.º 7
0
    protected override void Ready(Object arg1)
    {
        base.Ready(arg1);
        RectTransform skin = (arg1 as GameObject).transform as RectTransform;

        skin.anchoredPosition3D = new Vector3(0, 0, 2);
        skin.localScale         = new Vector3(0.001196975F, 0.001196975F, 0.001196975F);
        LoginPlane          = BumUITool.GetUIComponent <Transform>(skin, "EnterBackGround");
        enterMainPageButton = BumUITool.GetUIComponent <Button>(LoginPlane, "EnterButton");
        setButton           = BumUITool.GetUIComponent <Button>(LoginPlane, "SetButton");
        SetPlane            = BumUITool.GetUIComponent <Transform>(skin, "SetBackGround");
        toggleButton        = BumUITool.AddUIComponent <ToggleButton>(SetPlane, "GroupToggle/item/toggleButton");
        backLoginPageButton = BumUITool.GetUIComponent <Button>(SetPlane, "BackButton");
        BumUITool.SetActionFalse(SetPlane.gameObject);
    }
Exemplo n.º 8
0
    protected override void Ready(UnityEngine.Object arg1)
    {
        base.Ready(arg1);
        RectTransform skin = (arg1 as GameObject).transform as RectTransform;

        skin.anchoredPosition3D = new Vector3(0f, 0f, 2);
        skin.localScale         = new Vector3(0.00120576F, 0.00120576F, 0.00120576F);
        ProductPlane            = BumUITool.GetUIComponent <Transform>(skin, "Plane");
        //DownPlane = UITool.GetUIComponent<Transform>(ProductPlane, "DownBackGround");
        //downRemoveButton = UITool.GetUIComponent<Button>(DownPlane,"Remove");
        AdjustPlane = BumUITool.GetUIComponent <Transform>(ProductPlane, "AdjustBackGround");
        BumUITool.AddUIComponent <ProductPageDragView>(AdjustPlane.gameObject);
        adjustButton  = BumUITool.GetUIComponent <Button>(AdjustPlane, "Adjust");
        hideButton    = BumUITool.GetUIComponent <Button>(AdjustPlane, "Hide");
        extendButton  = BumUITool.GetUIComponent <Button>(skin, "Extend");
        producScroll  = BumUITool.AddUIComponent <ProductScrollView>(ProductPlane, "ProducctPlane/ProductScroll");
        adjustConfirm = BumUITool.GetUIComponent <Transform>(ProductPlane, "AdjustConfirm");
        downButton    = BumUITool.GetUIComponent <Button>(adjustConfirm, "Down");
        cancelButton  = BumUITool.GetUIComponent <Button>(adjustConfirm, "Cancel");
        BumUITool.SetActionFalse(extendButton.gameObject);
        BumUITool.SetActionFalse(downButton.gameObject);
        BumUITool.SetActionFalse(cancelButton.gameObject);
        BumUITool.SetActionFalse(extendButton.gameObject);
    }
 private void OnExtendButton()
 {
     myTweenScale.PlayForward();
     BumUITool.SetActionFalse(mainPage.extendButton.gameObject);
 }
Exemplo n.º 10
0
 private void OnHideButton()
 {
     myTweenScale.PlayReverse();
     BumUITool.SetActionTrue(mainPage.extendButton.gameObject);
     Debug.Log("隐藏面板");
 }
Exemplo n.º 11
0
 public override void exit()
 {
     base.exit();
     BumUITool.SetActionFalse(modelMenuPage.skin);
 }