Commit Graph

650 Commits

Author SHA1 Message Date
Jare Guo d826f3948e sprite should emit size event for node 2015-12-29 18:05:32 +08:00
2youyouo2 3411870095 if value is null, should not update clip 2015-12-29 17:15:06 +08:00
zilongshanren dd5c4cc72d add basic layout logic 2015-12-29 16:54:53 +08:00
zilongshanren d70ced1897 add autoResize property and refactor spacing. 2015-12-29 16:54:52 +08:00
pandamicro 9d9418c46e Merge pull request #147 from zilongshanren/improveButtonScrollViewEvent
Improve button and scroll touch dispatch
2015-12-29 16:52:37 +08:00
zilongshanren 643247a53f fix auto scroll time issue 2015-12-29 16:49:53 +08:00
zilongshanren 3ce238070d don't do hitTest in touch move and touch ended 2015-12-29 15:11:29 +08:00
Jare Guo 379a1c5b1f support disable node property by component 2015-12-29 14:02:32 +08:00
2youyouo2 1e6e329255 fixed animation manager will be paused when node active is set to false 2015-12-29 13:18:27 +08:00
pandamicro 4a8b893e2e fireball-x/fireball#1231: Made Node hit test taking count of Mask parent 2015-12-28 22:34:27 +08:00
zilongshanren 2a471bae7b Improve button and scroll touch dispatch
Squashed commit of the following:

commit 8fcc4f4d116372072959d4c8a6192247d953d0ae
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 28 21:51:25 2015 +0800

    refactor button and scrollview to use new event.

commit f3c1bc2153c85ee913a3a674c8f418087384146d
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 28 17:04:06 2015 +0800

    fix touch move out and in, button state is wrong.

commit 57ad4c7d887b879a1f71281798347057652decff
Merge: 7b3fe78 7c6f572
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 28 15:39:03 2015 +0800

    Merge remote-tracking branch 'fireball/v0.7' into fixButtonClickEvent

commit 7b3fe785dee943abfcfdc04ad5c228b4247bbd2f
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 28 15:38:24 2015 +0800

    remove self emit touch event

commit c1afba5131e3f3735ca236fdb693a72cff52ba4b
Merge: 6939b66 45e877a
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 28 11:44:59 2015 +0800

    Merge remote-tracking branch 'fireball/v0.7' into fixButtonClickEvent

commit 6939b66f6c2bbe4de1adc26b81613ddd40828b6e
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 28 11:44:28 2015 +0800

    fix typo
2015-12-28 21:53:27 +08:00
pandamicro a278c783f3 Remove scheduleUpdate for Component 2015-12-28 21:14:02 +08:00
Jare Guo 742015dc1e throw warning if property overrided without specifing override keyword 2015-12-28 18:30:23 +08:00
pandamicro 3c0e1b5e17 Support Scheduler in Component instead of Node 2015-12-25 21:09:04 +08:00
Jare Guo 481ab838fb Merge pull request #127 from 2youyouo2/master
should not sample in updateClip
2015-12-25 17:33:03 +08:00
2youyouo2 af8c69a827 should not sample in updateClip 2015-12-25 17:16:19 +08:00
Jare Guo 73269fd4f3 Merge pull request #125 from jareguo/hide-sprite
sprite should be hidden if sprite frame deleted
2015-12-25 12:09:16 +08:00
Jare Guo b62b80ecd0 sprite should be hidden if sprite frame deleted 2015-12-25 11:48:18 +08:00
zilongshanren d6febd8cf6 rename LayoutType to Type 2015-12-25 10:27:44 +08:00
zilongshanren f75925209c improve ui components 2015-12-25 10:22:22 +08:00
Jare Guo aa3217feb2 Merge pull request #120 from zilongshanren/addLayout
Panel组件开发
2015-12-24 15:29:39 +08:00
zilongshanren fd185047be refine the coding style 2015-12-24 15:20:40 +08:00
zilongshanren 3ba13cfe38 Finish layout
add children change event

add child-added and child-remove event to basenode

add layout dirty skeleton

finish layout in one direction

add layout doc string.
2015-12-24 14:21:17 +08:00
zilongshanren 8fbc0e94c4 add defensive technical to scrollview 2015-12-24 14:21:16 +08:00
zilongshanren 97af241136 Finish layout 2015-12-24 14:20:56 +08:00
knoxHuang fe193f01fe cc.Audio ranname cc.AudioSource 2015-12-24 09:41:28 +08:00
Jare Guo fd57ed9a52 make codes more concise 2015-12-23 19:41:56 +08:00
2youyouo2 7b76c5cb3b Merge branch 'master' of github.com:fireball-x/engine 2015-12-22 18:09:51 +08:00
2youyouo2 b25b73ef6d fixed animation may not play 2015-12-22 17:47:56 +08:00
Jare Guo 6b7f5d34cd Merge pull request #104 from zilongshanren/addScrollViewInterface
add scrollview interface
2015-12-22 17:25:25 +08:00
zilongshanren 16f30cc3e6 done 2015-12-22 17:20:52 +08:00
zilongshanren be088f9f05 add comments to scrollview public APIs. 2015-12-22 17:07:06 +08:00
zilongshanren d8b89b99d5 refine the delta move logic 2015-12-22 15:06:58 +08:00
zilongshanren e1202d4ce3 fix typo 2015-12-22 11:48:25 +08:00
zilongshanren 0d15a65b2f don't show scrollbar at start time. 2015-12-22 11:39:15 +08:00
zilongshanren 72c871dd09 clamp percent value to 1-100 2015-12-22 11:00:26 +08:00
zilongshanren 608cb572f1 add scrollto interface
fixed issue https://github.com/fireball-x/fireball/issues/1002

add jumpToXXX interfaces

add scroll to percent api.
2015-12-22 10:53:27 +08:00
Jare Guo 9c4f5ea483 Merge pull request #100 from 2youyouo2/794
add defaultClip to clips if defaultClip is not added to clips
2015-12-21 21:30:06 +08:00
2youyouo2 49c7844189 update defaultClip check 2015-12-21 21:25:59 +08:00
Wang Nan 4f2347c84b Merge pull request #103 from dabingnn/s9SpritescrollbackToTrimmed
refactor to use data after trimmed
2015-12-21 20:48:11 +08:00
Nan Wang ed6d112f6a update spriteframe api name. 2015-12-21 20:32:33 +08:00
Huabing.Xu e2e45121e6 refactor to use data after trimmed 2015-12-21 20:22:35 +08:00
2youyouo2 4fd03f00ed add defaultClip for cc.Animation 2015-12-21 19:23:10 +08:00
Wang Nan 6abd037e4f Merge pull request #98 from zilongshanren/fixScrollView_v2
Improve Scrollview and refine the properties
2015-12-21 18:39:55 +08:00
Jare Guo cd9fab1107 Revert "fix CCSprite bug" 2015-12-21 18:29:00 +08:00
knoxHuang 5903ce5646 fix CCSprite bug 2015-12-21 17:57:13 +08:00
zilongshanren e9287d3037 Improve Scrollview and refine the properties
Squashed commit of the following:

commit d10bd73f87fae6ba39858e190921155475ede586
Merge: b174d7c 2ed54b8
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 21 17:44:25 2015 +0800

    Merge remote-tracking branch 'fireball/master' into fixScrollView

commit b174d7cd36fffccf78659b4018940d03da5a6587
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 21 17:20:53 2015 +0800

    fix content size smaller than scrollvie size

commit 8a3ff65f1d2f0e1a6a569a037b7fad1ec9e235e8
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 21 16:24:45 2015 +0800

    add new brake logic

commit 84da9372a148caa7fd6518f3d12f5fe191454729
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 21 15:05:08 2015 +0800

    renaming the properties

commit f3c40a8e7ad6e6097bf07399201ac82e8d5fa72b
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 21 14:21:38 2015 +0800

    fix scrollbar positioning

commit d3eb25ddd34a6634737804f55b65e355c003938b
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Dec 21 13:54:05 2015 +0800

    fix scrollview doesn't respect to content anchor.
2015-12-21 17:47:55 +08:00
knoxHuang 38cae90d05 update CCButton and CCSprite and deprecated 2015-12-21 17:43:00 +08:00
knoxHuang 6e673df485 Merge remote-tracking branch 'origin/master' into sprite 2015-12-21 17:29:24 +08:00
knoxHuang 9945eeb559 spriteRender renname sprite 2015-12-21 17:06:49 +08:00