Exemplo n.º 1
0
    int prrgcount;//プロローグ内でのフレーム的な0-2


    void Start()
    {
        backimagecomp = GameObject.Find("backimage").GetComponent <BackImage>();
        chara0comp    = GameObject.Find("chara0").GetComponent <BackImage>();
        chara1comp    = GameObject.Find("chara1").GetComponent <BackImage>();
        imageboxcomp  = GameObject.Find("imagebox").GetComponent <BackImage>();
        textObj       = null;
        //textObj = Instantiate(textfab, new Vector3(0, 0, 0), Quaternion.identity);
        //textcomp = textObj.GetComponent<TextController>();//コンポーネント
        //textcomp.stage = 100;
        //textcomp.Create();
        changeflg = 0;
        cl        = -1;
        mcl       = -1;
        if (SceneManager.GetActiveScene().name == "Ending")
        {                               //エンディングなら
            prrgcount = 100;
            backimagecomp.Create(3, 1); //0の背景を表示
        }
        else
        {                               //プロローグなら
            prrgcount = 0;
            backimagecomp.Create(0, 1); //0の背景を表示
        }
        foobj = null;
        fiobj = Instantiate(fadeinfab, new Vector3(0f, 0f, -1.2f), Quaternion.identity);
    }
Exemplo n.º 2
0
    /// <summary>
    /// Update is called every frame, if the MonoBehaviour is enabled.
    /// </summary>
    void Update()
    {
        if (i == 0)
        {
            if (Movie.isPlaying)
            {
            }
            else
            {
                BackImage.GetComponent <RawImage>().enabled = true;
                Go.SetActive(true);
                End.SetActive(true);
                Archives_room.SetActive(true);
                Achievement.SetActive(true);

                BackImage.color   = new Color(1, 1, 1, 100);
                BackMovie.loop    = true;
                BackImage.texture = BackMovie;
                BackMovie.Play();



                i++;
            }
        }
    }
        public ActionResult EditBackImage(BackImage b)
        {   //上传图片处理
            var imgstr = Request.Form["imgstr"] as string;
            var index  = imgstr.IndexOf(";base64,") + 8;

            imgstr = imgstr.Substring(index, imgstr.Length - index);

            var img      = ImgHelper.Base64StringToImage(imgstr);
            var rootPath = AppDomain.CurrentDomain.BaseDirectory;

            var imgPath = "/Upload/BackImage/" + Guid.NewGuid() + ".jpg";

            b.BackTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
            b.UserId   = User.Identity.GetUserName();
            b.BackImg  = imgPath;

            db.Back.Add(b);
            if (db.SaveChanges() > 0)
            {
                if (img != null)
                {
                    img.Save(rootPath + imgPath);
                }
                return(RedirectToAction("Index", "Manage"));
            }
            return(View());
        }
 private BackImage getBackImage()
 {
     if (_backimageobj == null)
     {
         _backimageobj = new BackImage(this);
     }
     return(_backimageobj);
 }
Exemplo n.º 5
0
        /// <summary>
        /// Disposes this container and all it's children.
        /// </summary>
        public override void Dispose()
        {
            if (BackImage != null)
            {
                BackImage.Dispose();
            }

            base.Dispose();
        }
Exemplo n.º 6
0
 public Button_MainMenu()
 {
     // add graphics for states
     BackImage.Add(Properties.Resources.GE_BTN01M_home_STD);
     BackImage.Add(Properties.Resources.GE_BTN01M_home_OVER);
     BackImage.Add(Properties.Resources.GE_BTN01M_home_OVER);
     BackImage.Add(Properties.Resources.GE_BTN01M_home_CLICK);
     this.BackgroundImage = BackImage[0];
     this.Size            = BackImage[0].Size;
 }
Exemplo n.º 7
0
        void changeBackground(object o, EventArgs e)
        {
            BackImage back = BackImage.SimpleCircle;

            if (rb_Back_Cross.Checked)
            {
                back = BackImage.Cross;
            }
            ChangeImage(back);
        }
        public Button_Home()
        {
            // add specific graphics
            BackImage.Add(Properties.Resources.Home_STD);
            BackImage.Add(Properties.Resources.Home_OVER);
            BackImage.Add(Properties.Resources.Home_OVER);
            BackImage.Add(Properties.Resources.Home_CLICK);

            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;
        }
        public Button_SmallPink()
        {
            // add graphics for states
            BackImage.Add(Properties.Resources.Button_SERVICE0);
            BackImage.Add(Properties.Resources.Button_SERVICE1);
            BackImage.Add(Properties.Resources.Button_SERVICE2);
            BackImage.Add(Properties.Resources.Button_SERVICE3);

            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;
        }
        protected override void Dispose(bool disposing)
        {
            int i;

            for (i = 0; i < BackImage.Count; i++)
            {
                BackImage[i].Dispose();
            }
            BackImage.Clear();
            base.Dispose(disposing);
        }
        public btn_home2()
        {
            // add specific graphics
            BackImage.Add(Properties.Resources.carousel_52x52_STD);
            BackImage.Add(Properties.Resources.carousel_52x52_OVER);
            BackImage.Add(Properties.Resources.carousel_52x52_OVER);
            BackImage.Add(Properties.Resources.carousel_52x52_CLICK);

            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;
        }
 public Button_Scroll()
 {
     // add specific graphics
     BackImage.Add(Properties.Resources.GE_BTN04M_down_arrow_STD);
     BackImage.Add(Properties.Resources.GE_BTN04M_down_arrow_OVER);
     BackImage.Add(Properties.Resources.GE_BTN04M_down_arrow_OVER);
     BackImage.Add(Properties.Resources.GE_BTN04M_down_arrow_CLICK);
     this.setToggle(false);
     this.BackgroundImage = BackImage[0];
     //button1.Size = BackImage[0].Size;
     this.Size = BackImage[0].Size;
 }
Exemplo n.º 13
0
        public CheckBox_Circle()
        {
            // add graphics for states
            BackImage.Add(Properties.Resources.GE_BTN08S_unselect_STD);
            BackImage.Add(Properties.Resources.GE_BTN08S_unselect_STD);
            BackImage.Add(Properties.Resources.GE_BTN07S_select_CLICK);
            BackImage.Add(Properties.Resources.GE_BTN07S_select_CLICK);

            this.setToggle(true);
            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;
        }
        public CheckBox_Square()
        {
            // add graphics for states
            BackImage.Add(Properties.Resources.S_32x32_square);
            BackImage.Add(Properties.Resources.S_32x32_square);
            BackImage.Add(Properties.Resources.S_32x32_square_checked);
            BackImage.Add(Properties.Resources.S_32x32_square_checked);

            this.setToggle(true);
            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;
        }
Exemplo n.º 15
0
        public CheckBox()
        {
            // add graphics for states
            BackImage.Add(Properties.Resources.toggle_STD);
            BackImage.Add(Properties.Resources.toggle_STD);
            BackImage.Add(Properties.Resources.toggle_CLICK);
            BackImage.Add(Properties.Resources.toggle_CLICK);

            this.setToggle(true);
            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;
        }
Exemplo n.º 16
0
        // setup

        public Button_Filter()
        {
            // add specific graphics
            BackImage.Add(Properties.Resources.filterHuman_STD);
            BackImage.Add(Properties.Resources.filterHuman_OVER);
            BackImage.Add(Properties.Resources.filterHuman_CLICK);
            BackImage.Add(Properties.Resources.filterHuman_OVER);
            this.setToggle(true);
            this.BackgroundImage = BackImage[0];
            //button1.Size = BackImage[0].Size;
            this.Size = BackImage[0].Size;
        }
Exemplo n.º 17
0
        public Button_Rectangle()
        {
            InitializeComponent();
            // add graphics for states
            BackImage.Add(Properties.Resources.btnLong_STD);
            BackImage.Add(Properties.Resources.btnLong_STD);
            BackImage.Add(Properties.Resources.btnLong_STD);
            BackImage.Add(Properties.Resources.btnLong_CLICK);
            Ilist_backup = BackImage;

            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;
        }
 public void Reset_Button()
 {
     // add graphics for states
     BackImage.Clear();
     BackImage.Add(Properties.Resources.QuadrantNumber);
     BackImage.Add(Properties.Resources.QuadrantNumber_UNSELECTED);
     BackImage.Add(Properties.Resources.QuadrantNumber_SELECTED);
     BackImage.Add(Properties.Resources.QuadrantNumber);
     BackImage.Add(Properties.Resources.QuadrantNumber_DISABLED);
     this.BackgroundImage = BackImage[0];
     this.Check           = false;
     this.Visible         = true;
 }
Exemplo n.º 19
0
    public void ShowMask(bool show)
    {
        var image = BackImage.GetComponent <ImageColor>();

        if (show)
        {
            image.Show();
            BackImage.transform.FindChild <AutoValueScrollbar>("Scrollbar").Reset(1);
        }
        else
        {
            image.Hide();
        }
    }
Exemplo n.º 20
0
        public Button_Cancel()
        {
            // add specific graphics
            BackImage.Add(Properties.Resources.Cancel_STD);
            BackImage.Add(Properties.Resources.Cancel_STD);
            BackImage.Add(Properties.Resources.Cancel_STD);
            BackImage.Add(Properties.Resources.Cancel_CLICK);

            this.BackgroundImage = BackImage[0];
            //button1.Size = BackImage[0].Size;
            this.Size = new Size(BackImage[0].Size.Width, BackImage[0].Size.Height);

            //CircleSize = BackImage[0].Size;
        }
Exemplo n.º 21
0
        void SetBackground(BackImage bgrnd)
        {
            Background = bgrnd;
            DrawTile();
            //string path = path = Resource.Get(Res.Cross);

            //switch (bgrnd) {
            //	//case BackImage.Cross:        path = Resource.Get(Res.Cross);	    break;
            //	case BackImage.GameCircle:   path = Resource.Get(Res.GameCircle);   break;
            //	case BackImage.SimpleCircle: path = Resource.Get(Res.SimpleCircle); break;
            //	default: break;
            //}

            //iForm.SetBackground(path);
        }
Exemplo n.º 22
0
        public Button_Quadrant2()
        {
            // add graphics for states
            BackImage.Clear();
            BackImage.Add(Properties.Resources.QuadrantNumber_UNSELECTED);
            BackImage.Add(Properties.Resources.QuadrantNumber_UNSELECTED);
            BackImage.Add(Properties.Resources.QuadrantNumber_SELECTED);
            BackImage.Add(Properties.Resources.QuadrantNumber_SELECTED);
            BackImage.Add(Properties.Resources.QuadrantNumber_DISABLED);

            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;
            disableImage         = BackImage[4];
            // make quadrants toggle buttons
            this.setToggle(true);
        }
Exemplo n.º 23
0
 void ReleaseDesignerOutlets()
 {
     if (BackButton != null)
     {
         BackButton.Dispose();
         BackButton = null;
     }
     if (BackImage != null)
     {
         BackImage.Dispose();
         BackImage = null;
     }
     if (GameUIView != null)
     {
         GameUIView.Dispose();
         GameUIView = null;
     }
 }
Exemplo n.º 24
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PackRules?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (FrontImage != null ? FrontImage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BackImage != null ? BackImage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BackImage4K != null ? BackImage4K.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlightImage != null ? HighlightImage.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (HighlightImage4K != null ? HighlightImage4K.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FrontImage4K != null ? FrontImage4K.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StackGroup?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ InventorySortPriority;
         hashCode = (hashCode * 397) ^ (DisplayInfo != null ? DisplayInfo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MarketplaceProductId?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ProductId?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemplo n.º 25
0
        public bool Equals(HtmlReportTemplate other)
        {
            if (other == null)
            {
                return(false);
            }

            if (!BackImage.Equals(other.BackImage))
            {
                return(false);
            }

            if (!DrawingColor.Equals(BackColor, other.BackColor))
            {
                return(false);
            }

            if (!Header.Equals(other.Header))
            {
                return(false);
            }

            if (!Title.Equals(other.Title))
            {
                return(false);
            }

            if (!Task.Equals(other.Task))
            {
                return(false);
            }

            if (!Footer.Equals(other.Footer))
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 26
0
 public void Settings(out Color panelColor, out Color textColor,
                      out HumanBodyBones placeBone, out Vector2 placeOffset, out Vector2 panelCollar,
                      out AnchorPresets anchor, out PivotPresets pivot, out QuoteStyle quoteStyle, out int listMax, out AlphaStyle _alphaStyle,
                      out float alphaChangingTime, out Vector3 moveDirection, out float movingTime,
                      out BackImage backImage, out int fontSize, out Font fonts)
 {
     panelColor        = PanelColor;
     textColor         = TextColor;
     placeBone         = PlaceBone;
     placeOffset       = PlaceOffset;
     panelCollar       = PanelCollar;
     anchor            = Anchor;
     pivot             = Pivot;
     quoteStyle        = QuoteStyle;
     listMax           = ListMax;
     _alphaStyle       = alphaStyle;
     alphaChangingTime = AlphaChangingTime;
     moveDirection     = MoveDirection;
     movingTime        = MovingTime;
     backImage         = BackImg;
     fontSize          = FontSize;
     fonts             = font;
 }
Exemplo n.º 27
0
 private bool parseBackImage(TextReader tr)
 {
     while (true)
     {
         string str = tr.ReadLine().Trim();
         Match  m   = MQORegex.BackImage.Match(str);
         if (m.Success)
         {
             BackImage.Add(new MQOBackImage(
                               m.Groups[1].Value, m.Groups[2].Value,
                               Decimal.Parse(m.Groups[3].Value), Decimal.Parse(m.Groups[4].Value),
                               Decimal.Parse(m.Groups[5].Value), Decimal.Parse(m.Groups[6].Value)));
             continue;
         }
         else if (str.EndsWith("}"))
         {
             return(true);
         }
         else
         {
             return(false); // ここに来るのは不正なデータのとき
         }
     }
 }
Exemplo n.º 28
0
        public Button_Tab()
        {
            InitializeComponent();

            // add graphics for states
            BackImage.Add(Properties.Resources.TabButton_STD);
            BackImage.Add(Properties.Resources.TabButton_OVER);
            BackImage.Add(Properties.Resources.TabButton_OVER);
            BackImage.Add(Properties.Resources.TabButton_CLICK);
            this.BackgroundImage = BackImage[0];
            this.Size            = BackImage[0].Size;

            // Apply new region
            GraphicsPath graphicsPath = Utilities.CalculateControlGraphicsPath(Properties.Resources.TabButton_STD);

            if (this.Region != null)
            {
                this.Region.Dispose();
            }
            this.Region = new Region(graphicsPath);

            TxtColor_CLICK = System.Drawing.Color.White;
            TxtColor_STD   = SystemColors.GrayText;
        }
Exemplo n.º 29
0
    public void MakeQuote(Animator animator, string QuoteString, Color PanelColor, Color TextColor,
                          HumanBodyBones PlaceBone, Vector2 PlaceOffset, Vector2 PanelCollar, AnchorPresets anchor,
                          PivotPresets pivot, QuoteStyle quoteStyle, int ListMax, AlphaStyle alphaStyle, BackImage backImage, float alphaTime,
                          Vector3 moveDirection, float movingTime, int fontSize, Font font)
    {
        GameObject    imObj  = new GameObject();
        RectTransform imRect = imObj.AddComponent <RectTransform>();

        imRect.SetPivot(pivot);
        imRect.SetAnchor(anchor);
        imObj.transform.SetParent(GameObject.Find("Canvas").GetComponent <RectTransform>());
        Image image = imObj.AddComponent <Image>();

        image.color = PanelColor;
        if (backImage == BackImage.None)
        {
            image.color = new Color(0, 0, 0, 0);
        }
        else
        {
            image.type   = Image.Type.Sliced;
            image.sprite = Resources.Load <Sprite>("_Sprites/" + backImage.ToString());
        }

        GameObject    texObj = new GameObject();
        RectTransform tra    = texObj.AddComponent <RectTransform>();

        texObj.transform.SetParent(imObj.GetComponent <RectTransform>());
        Text text = texObj.AddComponent <Text>();

        text.supportRichText = true;
        text.font            = font;
        text.fontSize        = fontSize;
        text.text            = QuoteString;
        text.color           = TextColor;

        text.rectTransform.sizeDelta  = new Vector2(text.preferredWidth, text.preferredHeight);
        text.rectTransform.sizeDelta  = new Vector2(text.preferredWidth, text.preferredHeight);
        image.rectTransform.sizeDelta = text.rectTransform.sizeDelta + PanelCollar;
        tra.anchoredPosition          = Vector2.zero;

        if (!quoteCtrl.Select(q => q.anim).Any(a => a == animator) || quoteCtrl.Count == 0)
        {
            QuoteController c = gameObject.AddComponent <QuoteController>();
            c.anim = animator;
            quoteCtrl.Add(c);
        }
        int CtrlIndex = quoteCtrl.Select(q => q.anim).ToList().IndexOf(animator);

        QuoteEnter(new QuoteStyles(imRect, PlaceBone, PlaceOffset, quoteStyle, alphaStyle, ListMax, alphaTime, movingTime, moveDirection), CtrlIndex);
        imObj.transform.localScale = Vector3.one;
        //imObj.SetActive(false);
        //imObj.SetActive(true);
    }