/* ----------------------------------------------- Functions */ #region Functions /* ******************************************************** */ //! Get number of parts in animation /*! * @param * (none) * @retval Return-Value * Number of parts in animation * -1 == Error / "Name" is not-found. * * Get number of parts in animation.<br> * The range of Parts-ID is "0" to "ReturnValue-1".<br> */ public int CountGetParts() { if (null == DataAnimation) { return(-1); } return(DataAnimation.CountGetParts()); }
/* ******************************************************** */ //! Get part's ColorLabel-color /*! * @param idParts * Parts-ID * @retval Return-Value * ColorLabel's actual color<br> * "A/R/G/B all 0" == Error * * Regardless (Color-Label's) form, this function returns actual color of the color label.<br> * Use to get color when form is "Custom Color".<br> */ public Color ColorGetColorLabel(int idParts) { if (null == DataAnimation) { return(Library_SpriteStudio6.Data.Parts.Animation.ColorLabel.TableDefault[(int)Library_SpriteStudio6.Data.Parts.Animation.ColorLabel.KindForm.NON].Color); } if ((0 > idParts) || (DataAnimation.CountGetParts() <= idParts)) { return(Library_SpriteStudio6.Data.Parts.Animation.ColorLabel.TableDefault[(int)Library_SpriteStudio6.Data.Parts.Animation.ColorLabel.KindForm.NON].Color); } return(DataAnimation.TableParts[idParts].LabelColor.Color); }
/* ******************************************************** */ //! Get part's ColorLabel-form /*! * @param idParts * Parts-ID * @retval Return-Value * ColorLabel's form<br> * -1 == Error * * Get part's ColorLabel-form.<br> * When "ColorLabel" is set to "Custom Color" on "SpriteStudio6", * this function returns "Library_SpriteStudio6.Data.Parts.Animation.ColorLabel.KindForm.CUSTOM".(Irrespective of the actual color)<br> */ public Library_SpriteStudio6.Data.Parts.Animation.ColorLabel.KindForm FormGetColorLabel(int idParts) { if (null == DataAnimation) { return((Library_SpriteStudio6.Data.Parts.Animation.ColorLabel.KindForm)(-1)); } if ((0 > idParts) || (DataAnimation.CountGetParts() <= idParts)) { return((Library_SpriteStudio6.Data.Parts.Animation.ColorLabel.KindForm)(-1)); } return(DataAnimation.TableParts[idParts].LabelColor.Form); }