Commit Graph

47 Commits

Author SHA1 Message Date
zilongshanren aaea7ce6df rename locFlag to this._dirtyFlag 2016-04-12 10:19:01 +08:00
zilongshanren ccc3a2abfa fix label positioning 2016-04-12 09:20:37 +08:00
zilongshanren f7d44afd73 fix system font lineHeight calculate issue 2016-03-22 18:25:09 +08:00
zilongshanren 1b8d835d48 make ttf and bmfont behavior the same 2016-03-18 21:52:13 +08:00
zilongshanren 61d2ecf641 refactor bmFontSize to drawFontSize 2016-03-18 19:59:35 +08:00
zilongshanren 46913e7d87 fix webgl label rendering position 2016-03-17 09:47:34 +08:00
zilongshanren e6336209c9 don't excluse color,opacity and textDirty logic 2016-03-16 18:11:30 +08:00
zilongshanren bb8481e184 fix label color opacity issue 2016-03-16 16:42:12 +08:00
zilongshanren 34b62651d1 refactoring label 2016-03-16 15:36:04 +08:00
zilongshanren 9cd4dd5aba reuse textDirty dirty flag 2016-03-16 14:44:29 +08:00
zilongshanren c016ae2aec fix bmfont getContentSize cause chilrenOrderDrity 2016-03-16 14:33:40 +08:00
zilongshanren 7f0007c09a Merge remote-tracking branch 'fireball/v1.0' into fix-label-blink-issue 2016-03-16 10:31:46 +08:00
pandamicro 6f530df13b Cleanup other modules 2016-03-14 21:46:13 +08:00
zilongshanren e74bc01add refactoring label, fix blink issue
make it works

remove unused code
2016-03-14 21:24:48 +08:00
pandamicro 1d8a6f29e0 Refactor cc.Macro to cc.macro 2016-03-14 11:49:03 +08:00
pandamicro 8306801243 Modulize event-manager, renderer and clean up core 2016-03-14 11:49:03 +08:00
pandamicro 334d99f414 Cleanup CCCommon, CCConfig, CCMacro, CCShaders 2016-03-13 18:57:13 +08:00
pandamicro c26dd4b9df Avoid creating duplicated sprite batch node for bmfont Label 2016-03-10 16:17:01 +08:00
zilongshanren 201bf96706 fix jsb overflow none 2016-03-10 10:11:59 +08:00
zilongshanren ca4380b123 fix bmfont color change issue 2016-03-04 18:16:24 +08:00
pandamicro 4048a6fbb0 Polish single file loading API for cc.loader.load 2016-02-25 17:38:58 +08:00
pandamicro 2f861d8cb6 Fix issues for Creator editor 2016-02-25 10:34:09 +08:00
pandamicro 0ea99226cc Replace cc.loader with pipeline loader 2016-02-25 10:34:09 +08:00
knoxHuang 4c623eeb22 Merge branch 'master' of github.com:cocos-creator/engine 2016-02-24 13:55:54 +08:00
zilongshanren 0a6293bad0 Improve EditBox
Squashed commit of the following:

commit ad31d2beadceea31732970145238a68a97995b76
Merge: 8e15189 061e6ca
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 16:51:09 2016 +0800

    Merge remote-tracking branch 'me/master'

commit 8e15189d4a37d7215ffb66d6c08ec0b79cc57a19
Merge: 7c233f0 968480e
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 16:50:19 2016 +0800

    Merge remote-tracking branch 'fireball/master'

commit 7c233f03db2a78b1ab2c5866520efef04a6c4920
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 16:47:25 2016 +0800

    minor fix

commit fc89b4f920f979497e5961e48c1c796e18c3aa8e
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 14:24:43 2016 +0800

    add editbox reorder functionality

commit 6fd1b48199ce351716c43250497e5b192194b1d5
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 18:21:48 2016 +0800

    fix label rendering issue on editor

commit 2a335cd701ed62c6bc45f8849b4322413cf9acca
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 16:10:43 2016 +0800

    add label

commit 51180fae14b43bfe2a2e11d618dda7a91b7522f1
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 14:02:47 2016 +0800

    refactoring, add EditBoxImpl

commit d40cf8839963a98446a3b85f033f352b3325f7ed
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 11:30:35 2016 +0800

    add toggle native editbox logic

commit 6114905f7222e8a21a8bc32be71f0bef1c4c658e
Author: zilongshanren <guanghui8827@126.com>
Date:   Fri Feb 19 13:37:34 2016 +0800

    remove resize and add vertical scrollbar

commit 061e6cadf259a2c6ae3b178fb45a747427af8589
Merge: c2a142c 0314e4c
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 14:25:41 2016 +0800

    Merge remote-tracking branch 'fireball/master'

commit c2a142ce003f2d85d5f161be69f79dd6c0eaa68d
Author: zilongshanren <guanghui8827@126.com>
Date:   Tue Feb 23 14:24:43 2016 +0800

    add editbox reorder functionality

commit 48f02e97f27847b431c510d60fdf9380b14b650f
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 18:21:48 2016 +0800

    fix label rendering issue on editor

commit 3b40ce5bd6a9ef8aa6c4f4b7874408e446ecc655
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 16:10:43 2016 +0800

    add label

commit c304e8f40f9097905023d5bb5206faa6cf20be1a
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 14:02:47 2016 +0800

    refactoring, add EditBoxImpl

commit 913b52536e9085ec2baaf3c71cd8300d7a988962
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 11:30:35 2016 +0800

    add toggle native editbox logic

commit 2058f73ab82c1aa28c2ccf36046a727477a4c519
Merge: 744d8ad 595d744
Author: zilongshanren <guanghui8827@126.com>
Date:   Mon Feb 22 10:48:43 2016 +0800

    Merge remote-tracking branch 'fireball/master'

commit 744d8ad93d6b8bc322173c828be954b9f2834bbb
Author: zilongshanren <guanghui8827@126.com>
Date:   Fri Feb 19 13:37:34 2016 +0800

    remove resize and add vertical scrollbar
2016-02-23 16:52:22 +08:00
knoxHuang 36b5f75aec remove contentScaleFactor 2016-02-22 17:42:59 +08:00
Jare Guo 16490118c6 .fire should not changed by label and widget with no user input 2016-02-02 14:37:55 +08:00
zilongshanren 4701b70474 refine 2016-01-28 14:43:41 +08:00
zilongshanren a008a91135 fix label layout issue 2016-01-28 11:22:37 +08:00
zilongshanren b7726501c0 fix label layout in editor 2016-01-28 09:58:08 +08:00
zilongshanren 8efc7e652d refactor system label
refactoring canvasSizeX/canvasSizeY to canvasWidth/canvasHeight

add project jshintrc

fix formating issue
2016-01-27 14:21:05 +08:00
Jare Guo 23de32c9b6 Merge commit 'e921a2ca4cfd2c24d90796db2ed879ab3a90b34a'
# Conflicts:
#	cocos2d/core/components/CCSprite.js
2016-01-15 17:08:37 +08:00
Huabing.Xu b5dffdbed2 ...... 2016-01-15 15:39:05 +08:00
Huabing.Xu 0e389f2b55 fix label and sprite canvas rendering 2016-01-15 12:40:46 +08:00
Huabing.Xu 5e5459af3b fix label does not work on sougou browser 2016-01-15 11:10:00 +08:00
pandamicro f135abd3a9 Merge pull request #239 from dabingnn/fix_labelttf_empty_line
fix empty line for label ttf
2016-01-14 20:03:03 +08:00
Huabing.Xu 810b70e59a fix empty line for label ttf 2016-01-13 11:00:54 +08:00
zilongshanren 035e94bd51 make code more readable 2016-01-11 20:13:52 +08:00
zilongshanren bc962b1169 fix ttf NONE content size error 2016-01-11 20:07:04 +08:00
zilongshanren 7e90c16186 simplify setContentSize logic 2016-01-11 18:09:02 +08:00
zilongshanren 91065e322f add bmfont NONE mode support
fix switch font file in resize height mode

don't resize when label overflow is NONE

fixup! add bmfont NONE mode support
2016-01-11 15:04:31 +08:00
Wang Nan 503ab6092c Merge pull request #209 from fireball-x/v0.7
merge v0.7
2016-01-08 21:57:32 +08:00
Huabing.Xu 4fbad8590a Label NONE mode works on ttf 2016-01-08 10:32:34 +08:00
Huabing.Xu 786a2472bb Merge branch 'master' into add_Label_OverFlow
# Conflicts:
#	cocos2d/core/label/CCSGLabel.js
#	cocos2d/core/label/CCSGLabelCanvasRenderCmd.js
2016-01-08 10:15:20 +08:00
pandamicro f3e6bf3994 Fix FontFace undefined issue 2016-01-07 20:57:02 +08:00
Huabing.Xu a07ab99b24 treat None as Clamp in label
hack in ccLabel component when overflow is NONE
2016-01-05 19:26:05 +08:00
pandamicro a48f9ba64f Remove useless cocos2d modules in modular-cocos2d.js 2016-01-05 18:24:33 +08:00