/** 作成。 */ public static Sprite_Slice9 Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { //Sprite2D_Slice9 t_this = Fee.Ui.Ui.GetInstance().GetPoolList_Sprite2D_Slice9().PoolNew(); Sprite_Slice9 t_this = new Sprite_Slice9(); { //sprite t_this.sprite_1 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); t_this.sprite_2 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); t_this.sprite_3 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); t_this.sprite_4 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); t_this.sprite_5 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); t_this.sprite_6 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); t_this.sprite_7 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); t_this.sprite_8 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); t_this.sprite_9 = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority); //corner_size t_this.corner_size = 0; //texture_size t_this.texture_size.Set(1, 1); //削除管理。 if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** constructor */ public static CheckButton Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { //CheckButton t_this = Fee.Ui.Ui.GetInstance().GetPoolList_CheckButton().PoolNew(); CheckButton t_this = new CheckButton(); { //プールから作成。 t_this.InitializeFromPool(a_drawpriority); //bg_normal_sprite t_this.bg_normal_sprite = Sprite_Slice9.Create(null, a_drawpriority + 0); t_this.bg_normal_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.bg_normal_sprite.SetVisible(true); //bg_on_sprite t_this.bg_on_sprite = Sprite_Slice9.Create(null, a_drawpriority + 0); t_this.bg_on_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.bg_on_sprite.SetVisible(false); //bg_lock_sprite t_this.bg_lock_sprite = Sprite_Slice9.Create(null, a_drawpriority + 0); t_this.bg_lock_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.bg_lock_sprite.SetVisible(false); //check_normal_sprite t_this.check_normal_sprite = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority + 1); t_this.check_normal_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.check_normal_sprite.SetVisible(false); //check_lock_sprite t_this.check_lock_sprite = Fee.Ui.Sprite_Clip.Create(null, a_drawpriority + 1); t_this.check_lock_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.check_lock_sprite.SetVisible(false); //text t_this.text = Fee.Render2D.Text2D.Create(null, a_drawpriority); t_this.text.SetAlignmentType(Render2D.Text2D_HorizontalAlignmentType.Left, Render2D.Text2D_VerticalAlignmentType.Middle); t_this.text_offset_x = 5; if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }