public static Line Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { //Line2D t_this = Fee.Ui.Ui.GetInstance().GetPoolList_Line2D().PoolNew(); Line t_this = new Line(); { //size t_this.size = 3; //length t_this.length = 0; //sprite t_this.sprite = Fee.Render2D.Sprite2D.Create(null, a_drawpriority); t_this.sprite.SetTextureRect(in Fee.Render2D.Config.TEXTURE_RECT_MAX); t_this.sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.sprite.SetRotate(true); t_this.sprite.SetWH(t_this.length, t_this.size); if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** 作成。 */ public static Sprite2D_Slice9 Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { //Sprite2D_Slice9 t_this = Fee.Ui.Ui.GetInstance().GetPoolList_Sprite2D_Slice9().PoolNew(); Sprite2D_Slice9 t_this = new Sprite2D_Slice9(); { //sprite t_this.sprite_1 = Fee.Ui.Sprite2D_Clip.Create(null, a_drawpriority); t_this.sprite_2 = Fee.Ui.Sprite2D_Clip.Create(null, a_drawpriority); t_this.sprite_3 = Fee.Ui.Sprite2D_Clip.Create(null, a_drawpriority); t_this.sprite_4 = Fee.Ui.Sprite2D_Clip.Create(null, a_drawpriority); t_this.sprite_5 = Fee.Ui.Sprite2D_Clip.Create(null, a_drawpriority); t_this.sprite_6 = Fee.Ui.Sprite2D_Clip.Create(null, a_drawpriority); t_this.sprite_7 = Fee.Ui.Sprite2D_Clip.Create(null, a_drawpriority); t_this.sprite_8 = Fee.Ui.Sprite2D_Clip.Create(null, a_drawpriority); t_this.sprite_9 = Fee.Ui.Sprite2D_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); }
/** 作成。 */ public static Input Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { Input t_this = new Input(); { //inputfield t_this.inputfield = Fee.Render2D.InputField2D.Create(null, a_drawpriority); //eventplate t_this.eventplate = new EventPlate.Item(null, EventPlate.EventType.Button, a_drawpriority); t_this.eventplate.SetOnEventPlateOver(t_this, -1); //is_onover t_this.is_onover = false; //callbackparam_click t_this.callbackparam_click = null; if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** 作成。 * * 「DRAWPRIORITY_STEP」ごとに描画カメラが切り替わる。 * 同一カメラ内では必ずテキストが上に表示される。 * テキストの上にスプライトを表示する場合は、描画カメラが切り替わるようにプライオリィを設定する必要がある。 * */ public static Sprite2D Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { Sprite2D t_this = Fee.Render2D.Render2D.GetInstance().GetSpriteList().PoolNew(); { //どこから確保されたのか。 #if (UNITY_EDITOR) { try{ System.Diagnostics.StackFrame t_stackframe = new System.Diagnostics.StackFrame(1); if (t_stackframe != null) { if (t_stackframe.GetMethod() != null) { t_this.debug = t_stackframe.GetMethod().ReflectedType.FullName + " : " + t_stackframe.GetMethod().Name; } } }catch (System.Exception t_exception) { Tool.DebugReThrow(t_exception); } } #endif //表示フラグ。 t_this.visible = true; //削除フラグ。 t_this.is_delete_request = false; Render2D.GetInstance().Sprite2D_Regist(t_this); //描画プライオリティ。 t_this.drawpriority = a_drawpriority; //位置。 //t_this.pos; //回転。 t_this.rotate.InitializeFromPool(); //param t_this.param.InitializeFromPool(); //vertex t_this.vertex_recalc = true; //texcood t_this.texcood_recalc = true; //callback_materialupdate t_this.callback_materialupdate = t_this; //削除管理。 if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** 作成。 * * 「DRAWPRIORITY_STEP」ごとに描画カメラが切り替わる。 * 同一カメラ内では必ずテキストが上に表示される。 * テキストの上にスプライトを表示する場合は、描画カメラが切り替わるようにプライオリィを設定する必要がある。 * */ public static InputField2D Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { InputField2D t_this = Fee.Render2D.Render2D.GetInstance().GetInputFieldList().PoolNew(); { //どこから確保されたのか。 #if (UNITY_EDITOR) { try{ System.Text.StringBuilder t_stringbuilder = new System.Text.StringBuilder(Config.DEBUG_TRACECOUNT * 32); for (int ii = Config.DEBUG_TRACECOUNT; ii >= 1; ii--) { System.Diagnostics.StackFrame t_stackframe = new System.Diagnostics.StackFrame(ii); if (t_stackframe != null) { if (t_stackframe.GetMethod() != null) { t_stringbuilder.Append(t_stackframe.GetMethod().ReflectedType.FullName); t_stringbuilder.Append(" : "); t_stringbuilder.Append(t_stackframe.GetMethod().Name); t_stringbuilder.Append("\n"); } } } t_this.debug = t_stringbuilder.ToString(); }catch (System.Exception t_exception) { Tool.DebugReThrow(t_exception); } } #endif //表示フラグ。 t_this.visible = true; //削除フラグ。 t_this.is_delete_request = false; Render2D.GetInstance().InputField2D_Regist(t_this); //描画プライオリティ。 t_this.drawpriority = a_drawpriority; //位置。 //t_this.pos; //パラメータ。 t_this.param.InitializeFromPool(); //削除管理。 if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** constructor */ public static Window Create(Fee.Deleter.Deleter a_deleter, OnWindow_CallBackInterface a_callback_interface) { //Window t_this = Fee.Ui.Ui.GetInstance().GetPoolList_Window().PoolNew(); Window t_this = new Window(); { //プールから作成。 t_this.InitializeFromPool(a_callback_interface); //bg_sprite t_this.bg_sprite = Fee.Render2D.Sprite2D.Create(null, 0); t_this.bg_sprite.SetTextureRect(in Fee.Render2D.Render2D.TEXTURE_RECT_MAX); t_this.bg_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.bg_sprite.SetColor(0.0f, 0.0f, 0.0f, 1.0f); //titlebar t_this.titlebar = Fee.Render2D.Sprite2D.Create(null, 0); t_this.titlebar.SetTextureRect(in Fee.Render2D.Render2D.TEXTURE_RECT_MAX); t_this.titlebar.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.titlebar.SetColor(0.2f, 0.2f, 0.2f, 1.0f); //titlebar_h t_this.titlebar_h = 20; //blockitem t_this.blockitem = new Fee.EventPlate.BlockItem(null, 0, EventPlate.EventTypeMask.NotWindow); //bg_eventplate t_this.bg_eventplate = new EventPlate.Item(null, EventPlate.EventType.Window, 0); t_this.bg_eventplate.SetOnEventPlateOver(t_this, 0); //titlebar_eventplate t_this.titlebar_eventplate = new Fee.EventPlate.Item(null, Fee.EventPlate.EventType.Button, 0); t_this.titlebar_eventplate.SetOnEventPlateOver(t_this, 1); //is_onover_bg t_this.is_onover_bg = false; //is_onover_titlebar t_this.is_onover_titlebar = false; //is_drag t_this.is_drag = false; //downpos t_this.downpos.Set(0, 0); if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** 作成。 */ public static Input2D Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { Input2D t_this = new Input2D(); { t_this.inputfield = Fee.Render2D.InputField2D.Create(null, a_drawpriority); if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** constructor */ public BlockItem(Fee.Deleter.Deleter a_deleter, long a_priority, EventTypeMask a_eventtype_mask) { if ((a_eventtype_mask & EventTypeMask.Window) > 0) { this.eventplate_window = new Item(null, EventType.Window, a_priority); this.eventplate_window.SetRect(0, 0, Fee.Render2D.Config.VIRTUAL_W, Fee.Render2D.Config.VIRTUAL_H); } else { this.eventplate_window = null; } if ((a_eventtype_mask & EventTypeMask.View) > 0) { this.eventplate_view = new Item(null, EventType.View, a_priority); this.eventplate_view.SetRect(0, 0, Fee.Render2D.Config.VIRTUAL_W, Fee.Render2D.Config.VIRTUAL_H); } else { this.eventplate_view = null; } if ((a_eventtype_mask & EventTypeMask.ViewItem) > 0) { this.eventplate_viewitem = new Item(null, EventType.ViewItem, a_priority); this.eventplate_viewitem.SetRect(0, 0, Fee.Render2D.Config.VIRTUAL_W, Fee.Render2D.Config.VIRTUAL_H); } else { this.eventplate_viewitem = null; } if ((a_eventtype_mask & EventTypeMask.Button) > 0) { this.eventplate_button = new Item(null, EventType.Button, a_priority); this.eventplate_button.SetRect(0, 0, Fee.Render2D.Config.VIRTUAL_W, Fee.Render2D.Config.VIRTUAL_H); } else { this.eventplate_button = null; } //削除管理。 if (a_deleter != null) { a_deleter.Regist(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); }
/** 作成。 */ public static Fee.Ui.Slider Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { //Slider t_this = Fee.Ui.Ui.GetInstance().GetPoolList_Slider().PoolNew(); Slider t_this = new Slider(); { //プールから作成。 t_this.InitializeFromPool(a_drawpriority); //bg_normal_sprite t_this.bg_normal_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority + 0); t_this.bg_normal_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.bg_normal_sprite.SetVisible(true); //bg_lock_sprite t_this.bg_lock_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority + 0); t_this.bg_lock_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.bg_lock_sprite.SetVisible(false); //value_normal_sprite t_this.value_normal_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority + 1); t_this.value_normal_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.value_normal_sprite.SetVisible(true); //value_lock_sprite t_this.value_lock_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority + 1); t_this.value_lock_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.value_lock_sprite.SetVisible(false); //button_normal_sprite t_this.button_normal_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority + 2); t_this.button_normal_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.button_normal_sprite.SetVisible(true); //button_lock_sprite t_this.button_lock_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority + 2); t_this.button_lock_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.button_lock_sprite.SetVisible(false); if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** 作成。 * * 「DRAWPRIORITY_STEP」ごとに描画カメラが切り替わる。 * 同一カメラ内では必ずテキストが上に表示される。 * テキストの上にスプライトを表示する場合は、描画カメラが切り替わるようにプライオリィを設定する必要がある。 * */ public static InputField2D Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { InputField2D t_this = Fee.Render2D.Render2D.GetInstance().GetInputFieldList().PoolNew(); { #if (UNITY_EDITOR) { try{ System.Diagnostics.StackFrame t_stackframe = new System.Diagnostics.StackFrame(1); if (t_stackframe != null) { if (t_stackframe.GetMethod() != null) { t_this.debug = t_stackframe.GetMethod().ReflectedType.FullName + " : " + t_stackframe.GetMethod().Name; } } }catch (System.Exception t_exception) { Tool.DebugReThrow(t_exception); } } #endif //表示フラグ。 t_this.visible = true; //削除フラグ。 t_this.is_delete_request = false; Render2D.GetInstance().InputField2D_Regist(t_this); //描画プライオリティ。 t_this.drawpriority = a_drawpriority; //位置。 //t_this.pos; //パラメータ。 t_this.param.InitializeFromPool(); //削除管理。 if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** constructor */ public static Scroll <ITEM> Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority, Scroll_Type a_scroll_type, int a_item_length) { //Scroll t_this = Fee.Ui.Ui.GetInstance().GetPoolList_Scroll().PoolNew(); Scroll <ITEM> t_this = new Scroll <ITEM>(); { //プールから作成。 t_this.InitializeFromPool(a_drawpriority, a_scroll_type, a_item_length); //背景。 t_this.bg = Fee.Render2D.Sprite2D.Create(null, a_drawpriority); t_this.bg.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.bg.SetRect(0, 0, 0, 0); t_this.bg.SetTextureRect(in Fee.Render2D.Config.TEXTURE_RECT_MAX); t_this.bg.SetColor(0.0f, 0.0f, 0.0f, 1.0f); t_this.bg.SetMaterialType(Fee.Render2D.MaterialType.Alpha); //背景。 t_this.bg_enable = true; //バー。 t_this.bar_drawpriority_offset = 1; t_this.bar_size = 5; t_this.bar_offset = 1; //バー。 t_this.bar = Fee.Render2D.Sprite2D.Create(null, a_drawpriority + t_this.bar_drawpriority_offset); t_this.bar.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.bar.SetRect(0, 0, 0, 0); t_this.bar.SetTextureRect(in Fee.Render2D.Config.TEXTURE_RECT_MAX); t_this.bar.SetColor(1.0f, 1.0f, 1.0f, 1.0f); t_this.bar.SetMaterialType(Fee.Render2D.MaterialType.Alpha); t_this.bar.SetVisible(false); //バー。 t_this.bar_enable = true; if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** 作成。 */ public static Button Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { //Button t_this = Fee.Ui.Ui.GetInstance().GetPoolList_Button().PoolNew(); Button t_this = new Button(); { //プールから作成。 t_this.InitializeFromPool(a_drawpriority); //sprite t_this.normal_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority); t_this.normal_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.normal_sprite.SetVisible(true); t_this.on_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority); t_this.on_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.on_sprite.SetVisible(false); t_this.down_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority); t_this.down_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.down_sprite.SetVisible(false); t_this.lock_sprite = Fee.Ui.Sprite_Slice9.Create(null, a_drawpriority); t_this.lock_sprite.SetTexture(UnityEngine.Texture2D.whiteTexture); t_this.lock_sprite.SetVisible(false); //text t_this.text = Fee.Render2D.Text2D.Create(null, a_drawpriority); t_this.text.SetAlignmentType(Render2D.Text2D_HorizontalAlignmentType.Center, Render2D.Text2D_VerticalAlignmentType.Middle); //lock_textcolor t_this.nomal_textcolor = new UnityEngine.Color(1.0f, 1.0f, 1.0f, 1.0f); t_this.on_textcolor = new UnityEngine.Color(1.0f, 1.0f, 1.0f, 1.0f); t_this.down_textcolor = new UnityEngine.Color(1.0f, 1.0f, 1.0f, 1.0f); t_this.lock_textcolor = new UnityEngine.Color(1.0f, 1.0f, 1.0f, 1.0f); if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }
/** 作成。 */ public static Item Create(Fee.Deleter.Deleter a_deleter, int a_width, int a_height, Fee.File.Path a_full_path) { Item t_item = new Item(); //レンダーテクスチャ。作成。 t_item.CreateRenderTexture(a_width, a_height); //ビデオプレイヤ。作成。 t_item.CreateVideoPlayer(a_full_path); //登録。 if (a_deleter != null) { a_deleter.Regist(t_item); } //登録。 Fee.Video.Video.GetInstance().Regist(t_item); return(t_item); }
/** constructor */ public Item(Fee.Deleter.Deleter a_deleter, EventType a_eventtype, long a_priority) { //priority this.priority = a_priority; //eventtype this.eventtype = a_eventtype; //enable this.enable = true; //is_onover this.is_onover = false; //rect //this.rect.Set(0,0,0,0); //clip_rect //this.clip_rect.Set(0,0,0,0); //clip this.clip = false; //callbackparam_over this.callbackparam_over = null; //deleted this.deleted = false; //削除管理。 if (a_deleter != null) { a_deleter.Regist(this); } EventPlate.GetInstance().Add(this, this.eventtype); }
/** 作成。 */ public static Sprite2D_Clip Create(Fee.Deleter.Deleter a_deleter, long a_drawpriority) { Sprite2D_Clip t_this = Fee.Ui.Ui.GetInstance().GetPoolList_Sprite2D_Clip().PoolNew(); { t_this.sprite = Fee.Render2D.Sprite2D.Create(null, a_drawpriority); //is_clip t_this.is_clip = false; //clip_rect t_this.clip_rect.Set(0, 0, 0, 0); //マテリアル設定。 t_this.sprite.SetMaterialType(Fee.Render2D.Config.MaterialType.AlphaClip); t_this.sprite.SetOnSprite2DMaterialUpdate(t_this); if (a_deleter != null) { a_deleter.Regist(t_this); } } return(t_this); }