Ejemplo n.º 1
0
        /** 作成。
         */
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        /** 作成。
         */
        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);
        }
Ejemplo n.º 4
0
        /** 作成。
         *
         *      「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);
        }
Ejemplo n.º 5
0
        /** 作成。
         *
         *      「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);
        }
Ejemplo n.º 6
0
        /** 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);
        }
Ejemplo n.º 7
0
        /** 作成。
         */
        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);
        }
Ejemplo n.º 8
0
        /** 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);
            }
        }
Ejemplo n.º 9
0
        /** 作成。
         */
        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);
        }
Ejemplo n.º 10
0
        /** 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);
        }
Ejemplo n.º 11
0
        /** 作成。
         *
         *      「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);
        }
Ejemplo n.º 12
0
        /** 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);
        }
Ejemplo n.º 13
0
        /** 作成。
         */
        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);
        }
Ejemplo n.º 14
0
        /** constructor
         */
        public Main()
        {
            //deleter
            this.deleter = new Fee.Deleter.Deleter();

            //viewer
            this.viewer = new JsonViewer();

            //JSON化するリスト。
            System.Collections.Generic.Dictionary <string, System.Object> t_list = new System.Collections.Generic.Dictionary <string, System.Object>();
            {
                ulong t_list_1 = 100;
                t_list.Add("item1", t_list_1);

                System.Collections.Generic.List <System.Object> t_list_2 = new System.Collections.Generic.List <object>();
                t_list.Add("item2", t_list_2);
                {
                    System.Collections.Generic.List <System.Object> t_list_2_1 = new System.Collections.Generic.List <object>();
                    t_list_2.Add(t_list_2_1);
                    {
                        t_list_2_1.Add(ulong.MaxValue);
                        t_list_2_1.Add(-100);
                        t_list_2_1.Add("asdf");
                        t_list_2_1.Add(new int[] { 1, 2, 3 });
                        t_list_2_1.Add(3.33f);
                        t_list_2_1.Add(true);
                        t_list_2_1.Add(100.3m);
                    }

                    string t_list_2_2 = "xyz";
                    t_list_2.Add(t_list_2_2);
                }
                System.Collections.Generic.List <System.Object> t_list_3 = new System.Collections.Generic.List <object>();
                t_list.Add("item3", t_list_3);

                System.Collections.Generic.List <System.Object> t_list_4 = new System.Collections.Generic.List <object>();
                t_list.Add("item4", t_list_4);
            }

            //JSONをビュワーに登録。
            this.viewer.CreateScroll(0, Fee.JsonItem.Convert.ObjectToJsonItem(t_list));
        }
Ejemplo n.º 15
0
        /** 作成。
         */
        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);
        }
Ejemplo n.º 16
0
        /** 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);
        }
Ejemplo n.º 17
0
        /** 作成。
         */
        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);
        }
Ejemplo n.º 18
0
        /** constructor
         */
        public JsonViewer_Item(string a_label, JsonViewer a_viewer, int a_layer, Fee.JsonItem.JsonItem a_jsonitem)
        {
            //deleter
            this.deleter = new Fee.Deleter.Deleter();

            //viewer
            this.viewer = a_viewer;

            //layer
            this.layer = a_layer;

            //jsonitem
            this.jsonitem = a_jsonitem;

            string t_text;

            UnityEngine.Color t_color = UnityEngine.Color.black;
            {
                if (a_jsonitem == null)
                {
                    t_text = a_label;
                }
                else
                {
                    //親がインデックス配列ならインデックス、連想配列ならキー名。
                    t_text = "label = " + a_label + "\n";

                    //データタイプ名。
                    t_text += a_jsonitem.GetValueType().ToString() + "\n";

                    //データ。
                    switch (a_jsonitem.GetValueType())
                    {
                    case Fee.JsonItem.ValueType.AssociativeArray:
                    {
                        t_text += "count = " + a_jsonitem.GetListMax().ToString() + "\n";
                        t_color = new UnityEngine.Color(0.2f, 0.3f, 0.2f, 1.0f);
                    } break;

                    case Fee.JsonItem.ValueType.IndexArray:
                    {
                        t_text += "count = " + a_jsonitem.GetListMax().ToString() + "\n";
                        t_color = new UnityEngine.Color(0.4f, 0.2f, 0.5f, 1.0f);
                    } break;

                    case Fee.JsonItem.ValueType.BoolData:
                    {
                        t_text += "value = " + a_jsonitem.GetBoolData().ToString() + "\n";
                        t_color = new UnityEngine.Color(0.1f, 0.2f, 0.4f, 1.0f);
                    } break;

                    case Fee.JsonItem.ValueType.SignedNumber:
                    {
                        t_text += "value = " + a_jsonitem.GetSignedNumber().ToString() + "\n";
                        t_color = new UnityEngine.Color(0.5f, 0.2f, 0.8f, 1.0f);
                    } break;

                    case Fee.JsonItem.ValueType.UnsignedNumber:
                    {
                        t_text += "value = " + a_jsonitem.GetUnsignedNumber().ToString() + "\n";
                        t_color = new UnityEngine.Color(0.4f, 0.6f, 0.3f, 1.0f);
                    } break;

                    case Fee.JsonItem.ValueType.FloatingNumber:
                    {
                        t_text += "value = " + a_jsonitem.GetFloatingNumber().ToString() + "\n";
                        t_color = new UnityEngine.Color(0.2f, 0.2f, 0.5f, 1.0f);
                    } break;

                    case Fee.JsonItem.ValueType.DecimalNumber:
                    {
                        t_text += "value = " + a_jsonitem.GetDecimalNumber().ToString() + "\n";
                        t_color = new UnityEngine.Color(0.1f, 0.1f, 0.1f, 1.0f);
                    } break;

                    case Fee.JsonItem.ValueType.StringData:
                    {
                        t_text += "value = " + a_jsonitem.GetStringData() + "\n";
                        t_color = new UnityEngine.Color(0.5f, 0.2f, 0.2f, 1.0f);
                    } break;
                    }
                }
            }

            //text
            this.text = Fee.Render2D.Text2D.Create(this.deleter, 0);
            this.text.SetText(t_text);
            this.text.SetAlignmentType(Fee.Render2D.Text2D_HorizontalAlignmentType.Left, Fee.Render2D.Text2D_VerticalAlignmentType.Top);
            this.text.SetColor(in t_color);
            this.text.SetClip(true);
            this.text.SetVisible(false);

            //button
            this.button = Fee.Ui.Button.Create(this.deleter, 0);
            this.button.SetNormalTexture(UnityEngine.Texture2D.whiteTexture);
            this.button.SetOnTexture(UnityEngine.Texture2D.whiteTexture);
            this.button.SetDownTexture(UnityEngine.Texture2D.whiteTexture);
            this.button.SetLockTexture(UnityEngine.Texture2D.whiteTexture);
            this.button.SetNormalColor(0.8f, 0.8f, 0.8f, 1.0f);
            this.button.SetOnColor(0.7f, 0.7f, 0.7f, 1.0f);
            this.button.SetDownColor(0.6f, 0.6f, 0.6f, 1.0f);
            this.button.SetLockColor(0.5f, 0.5f, 0.5f, 1.0f);
            this.button.SetOnButtonClick(this, -1);
            this.button.SetClip(true);
            this.button.SetVisible(false);
            this.button.SetDragCancelFlag(true);
        }
Ejemplo n.º 19
0
 /** constructor
  */
 public Sprite2D_Fade(Fee.Deleter.Deleter a_deleter, long a_drawpriority)
 {
     this.sprite = Fee.Render2D.Sprite2D.Create(a_deleter, a_drawpriority);
     this.sprite.SetMaterialType(Fee.Render2D.Config.MaterialType.Simple);
     this.sprite.SetOnSprite2DMaterialUpdate(this);
 }