Ejemplo n.º 1
0
        /** プールへ削除。
         */
        public void DeleteToPool()
        {
            //delete
            this.eventplate.OnDelete();
            this.eventplate_button.OnDelete();

            //コールバック解除。
            this.callbackparam_changevalue = null;
        }
Ejemplo n.º 2
0
        /** プールから作成。
         */
        public void InitializeFromPool(long a_drawpriority)
        {
            //rect
            this.rect.Set(0, 0, 0, 0);

            //button_rect
            this.button_rect.Set(0, 0, 0, 0);

            //drawpriority
            this.drawpriority = a_drawpriority;

            //eventplate
            this.eventplate = new Fee.EventPlate.Item(null, Fee.EventPlate.EventType.Button, this.drawpriority);
            this.eventplate.SetOnEventPlateOver(this, 0);

            //eventplate_button
            this.eventplate_button = new Fee.EventPlate.Item(null, Fee.EventPlate.EventType.Button, this.drawpriority + 1);
            this.eventplate_button.SetOnEventPlateOver(this, 1);

            //callbackparam_changevalue
            this.callbackparam_changevalue = null;

            //is_onover
            this.is_onover = false;

            //is_onover_button
            this.is_onover_button = false;

            //value
            this.value = 0.0f;

            //value_scale
            this.value_scale = 1.0f;

            //clip_flag
            this.clip_flag = false;

            //clip_rect
            this.clip_rect.Set(0, 0, 0, 0);

            //visible_flag
            this.visible_flag = true;

            //down_flag
            this.down_flag = false;

            //lock_flag
            this.lock_flag = false;
        }