Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            var other = obj as FormControl;

            if (other == null || !(MinorVersion == other.MinorVersion && MajorVersion == other.MajorVersion && Equals(PropMask, other.PropMask) &&
                                   Equals(BackColor, other.BackColor) && Equals(ForeColor, other.ForeColor) && NextAvailableId == other.NextAvailableId &&
                                   Equals(BooleanProperties, other.BooleanProperties) && BorderStyle == other.BorderStyle && MousePointer == other.MousePointer &&
                                   Equals(ScrollBars, other.ScrollBars) && GroupCount == other.GroupCount && Cycle == other.Cycle && SpecialEffect == other.SpecialEffect &&
                                   Equals(BorderColor, other.BorderColor) && Zoom == other.Zoom && PictureAlignment == other.PictureAlignment &&
                                   PictureSizeMode == other.PictureSizeMode && ShapeCookie == other.ShapeCookie && DrawBuffer == other.DrawBuffer &&
                                   Equals(DisplayedSize, other.DisplayedSize) && Equals(LogicalSize, other.LogicalSize) && Equals(ScrollPosition, other.ScrollPosition) &&
                                   string.Equals(Caption, other.Caption) && MouseIcon.SequenceEqual(other.MouseIcon) && FontIsStdFont == other.FontIsStdFont &&
                                   Picture.SequenceEqual(other.Picture) && Equals(FontTextProps, other.FontTextProps) && Equals(FontStdFont, other.FontStdFont) &&
                                   Sites.SequenceEqual(other.Sites) && Remainder.SequenceEqual(other.Remainder)))
            {
                return(false);
            }

            if (SiteClassInfos.Count != other.SiteClassInfos.Count)
            {
                return(false);
            }

            return(!SiteClassInfos.Where((t, i) => !t.SequenceEqual(other.SiteClassInfos[i])).Any());
        }
Ejemplo n.º 2
0
 protected bool Equals(CommandButtonControl other)
 {
     return(Picture.SequenceEqual(other.Picture) && MouseIcon.SequenceEqual(other.MouseIcon) && MinorVersion == other.MinorVersion &&
            MajorVersion == other.MajorVersion && Equals(PropMask, other.PropMask) && Equals(ForeColor, other.ForeColor) &&
            Equals(BackColor, other.BackColor) && VariousPropertyBits == other.VariousPropertyBits && string.Equals(Caption, other.Caption) &&
            PicturePosition == other.PicturePosition && MousePointer == other.MousePointer && string.Equals(Accelerator, other.Accelerator) &&
            Equals(Size, other.Size) && Equals(TextProps, other.TextProps));
 }
Ejemplo n.º 3
0
 protected bool Equals(LabelControl other)
 {
     return(Picture.SequenceEqual(other.Picture) && MouseIcon.SequenceEqual(other.MouseIcon) && MinorVersion == other.MinorVersion &&
            MajorVersion == other.MajorVersion && Equals(PropMask, other.PropMask) && Equals(ForeColor, other.ForeColor) &&
            Equals(BackColor, other.BackColor) && VariousPropertyBits == other.VariousPropertyBits && string.Equals(Caption, other.Caption) &&
            PicturePosition == other.PicturePosition && MousePointer == other.MousePointer && Equals(BorderColor, other.BorderColor) &&
            BorderStyle == other.BorderStyle && SpecialEffect == other.SpecialEffect && string.Equals(Accelerator, other.Accelerator) &&
            Equals(Size, other.Size));
 }
Ejemplo n.º 4
0
 private void OnMouseOver()
 {
     if (Input.GetMouseButtonUp(1) && GameSystem.isMoving)
     {
         MouseIcon.Change(1);
         x = Camera.main.ScreenToWorldPoint(Input.mousePosition).x;
         Player.leg.MoveTo(x);
         isInterActing = true;
     }
 }
Ejemplo n.º 5
0
 protected bool Equals(TabStripControl other)
 {
     return(Accelerators.SequenceEqual(other.Accelerators) && Equals(BackColor, other.BackColor) && Equals(ForeColor, other.ForeColor) &&
            Items.SequenceEqual(other.Items) && ListIndex == other.ListIndex && MajorVersion == other.MajorVersion && MinorVersion == other.MinorVersion &&
            MouseIcon.SequenceEqual(other.MouseIcon) && MousePointer == other.MousePointer && Equals(PropMask, other.PropMask) &&
            Remainder.SequenceEqual(other.Remainder) && Equals(Size, other.Size) && TabData == other.TabData &&
            TabFixedHeight == other.TabFixedHeight && TabFixedWidth == other.TabFixedWidth && TabNames.SequenceEqual(other.TabNames) &&
            TabOrientation == other.TabOrientation && TabsAllocated == other.TabsAllocated && TabStyle == other.TabStyle &&
            Tags.SequenceEqual(other.Tags) && Equals(TextProps, other.TextProps) && TipStrings.SequenceEqual(other.TipStrings) &&
            VariousPropertyBits == other.VariousPropertyBits);
 }
Ejemplo n.º 6
0
    private void FixedUpdate()
    {
        //Exits if there is nothing being dragged
        if (!drag)
        {
            return;
        }

        //Sets the position of the cursor icon on the cursor
        MouseIcon.GetComponent <RectTransform>().anchoredPosition = Input.mousePosition + new Vector3(-25, 20, 0);
    }
Ejemplo n.º 7
0
 private void OnMouseEnter()
 {
     AudioSystem.current.Play("交互前");
     if (GetComponent <Mouth>() != null)
     {
         MouseIcon.Change(3);
     }
     else
     {
         MouseIcon.Change(2);
     }
 }
Ejemplo n.º 8
0
 protected bool Equals(MorphDataControl other)
 {
     return(MinorVersion == other.MinorVersion && MajorVersion == other.MajorVersion && Equals(PropMask, other.PropMask) &&
            Equals(ForeColor, other.ForeColor) && Equals(BackColor, other.BackColor) && VariousPropertyBits == other.VariousPropertyBits &&
            string.Equals(Caption, other.Caption) && PicturePosition == other.PicturePosition && MousePointer == other.MousePointer &&
            string.Equals(Accelerator, other.Accelerator) && Equals(Size, other.Size) && Picture.SequenceEqual(other.Picture) &&
            MouseIcon.SequenceEqual(other.MouseIcon) && Equals(TextProps, other.TextProps) && MaxLength == other.MaxLength && BorderStyle == other.BorderStyle &&
            Equals(ScrollBars, other.ScrollBars) && DisplayStyle == other.DisplayStyle && string.Equals(PasswordChar, other.PasswordChar) &&
            ListWidth == other.ListWidth && BoundColumn == other.BoundColumn && TextColumn == other.TextColumn && ColumnCount == other.ColumnCount &&
            ListRows == other.ListRows && ColumnInfoCount == other.ColumnInfoCount && MatchEntry == other.MatchEntry && ListStyle == other.ListStyle &&
            ShowDropButtonWhen == other.ShowDropButtonWhen && DropButtonStyle == other.DropButtonStyle && MultiSelect == other.MultiSelect &&
            Equals(BorderColor, other.BorderColor) && SpecialEffect == other.SpecialEffect && string.Equals(Value, other.Value) &&
            string.Equals(GroupName, other.GroupName) && Remainder.SequenceEqual(other.Remainder));
 }
Ejemplo n.º 9
0
 // Update is called once per frame
 void Update()
 {
     if (trans != null)
     {
         trans.position += new Vector3(-speed, 0, 0);
     }
     if (Input.GetKeyDown(KeyCode.Escape) || pass)
     {
         CameraEffectChange.ChangeEffect(1);
         Begin.pass = false;
         StopAllCoroutines();
         标题.isStart = true;
         SceneManager.LoadScene("标题界面", LoadSceneMode.Additive);
         AudioSystem.current.BGMSource.Stop();
         AudioSystem.ChangeBGM("BGM1", 1);
         SceneManager.UnloadSceneAsync("片头");
         MouseIcon.Change(1);
     }
 }
Ejemplo n.º 10
0
    IEnumerator begin()
    {
        MenuButtom.On  = false;
        Cursor.visible = false;
        MouseIcon.Change(0);
        CameraEffectChange.ChangeEffect(0);
        GameObject.FindGameObjectWithTag("button").GetComponent <SpriteRenderer>().enabled = false;
        Fade.Hide(logo);
        yield return(new WaitForSeconds(1f));

        Fade.FadeIn(logo, 1f);
        yield return(new WaitForSeconds(4f));

        Fade.Disappear(background, 3);
        yield return(new WaitForSeconds(3f));

        Fade.Disappear(logo, 3);
        yield return(new WaitForSeconds(3f));



        AudioSystem.ChangeBGM("BGM0", 0, false);
        CameraEffectChange.ChangeEffect(1);
        float t = 2.725f;

        yield return(Words1());//第一句话

        yield return(new WaitForSeconds(9.24f));

        yield return(flash.flash1()); //闪烁

        sky.SetActive(true);          //天空
        Fade.FadeIn(sky, 1f);
        yield return(new WaitForSeconds(2.05f));

        Fade.FadeOut(sky, 2);//天空消失
        yield return(new WaitForSeconds(3));

        yield return(Words2());

        yield return(new WaitForSeconds(5.5f));

        SceneManager.LoadScene("PlayerScene", LoadSceneMode.Additive);
        titleScene1.SetActive(true);
        Fade.FadeIn(titleScene1);
        放动画.isMove = true;
        trans      = titleScene1.transform;
        yield return(new WaitForSeconds(t));

        Fade.Disappear(titleScene1);
        titleScene2.SetActive(true);
        Fade.FadeIn(titleScene2);
        trans = titleScene2.transform;
        yield return(new WaitForSeconds(t));

        Fade.Disappear(titleScene2);
        titleScene3.SetActive(true);
        Fade.FadeIn(titleScene3);
        trans = titleScene3.transform;
        yield return(new WaitForSeconds(t));

        Fade.Disappear(titleScene3);
        titleScene4.SetActive(true);
        Fade.FadeIn(titleScene4);
        trans = titleScene4.transform;
        yield return(new WaitForSeconds(t));

        Fade.Disappear(titleScene4);
        titleScene5.SetActive(true);
        Fade.FadeIn(titleScene5);
        trans = titleScene5.transform;
        yield return(new WaitForSeconds(t));

        Fade.Disappear(titleScene5);
        titleScene6.SetActive(true);
        Fade.FadeIn(titleScene6);
        trans = titleScene6.transform;
        yield return(new WaitForSeconds(t));

        Fade.Disappear(titleScene6);
        titleScene7.SetActive(true);
        Fade.FadeIn(titleScene7);
        trans = titleScene7.transform;
        yield return(new WaitForSeconds(t));

        放动画.isMove = false;
        Fade.FadeOut(titleScene7, 1);
        Fade.FadeOut(Player.current.gameObject, 1);
        yield return(new WaitForSeconds(2));

        SceneManager.UnloadSceneAsync("PlayerScene");
        titleScene7.SetActive(false);
        yield return(Words3());

        yield return(new WaitForSeconds(3));

        yield return(Words4());

        yield return(new WaitForSeconds(7));

        标题.isStart = true;
        SceneManager.LoadScene("标题界面", LoadSceneMode.Additive);
        AudioSystem.ChangeBGM("BGM1", 7);
        SceneManager.UnloadSceneAsync("片头");
        MouseIcon.Change(1);
        MenuButtom.On = true;
    }
Ejemplo n.º 11
0
 private void OnMouseExit()
 {
     MouseIcon.Change(1);
 }