Commit Graph

71 Commits

Author SHA1 Message Date
zilongshanren 4a1eb9e0d9 only reset node height in resize_height 2016-10-10 18:15:23 +08:00
zilongshanren 0d31817eb0 move debounce function in ctor 2016-10-09 18:19:25 +08:00
zilongshanren 57e17c73b9 add RichText component
A minimal working prototype

try and fix

fix richtext color

make richtext properties tweakable

temp

refine

add measure text

fix fragment text

finish non \n case

make non maxWidth working

adjust calling order

fix wired bugs

get first word

still one bug remained

fix wrap error

refactoring

update lineOffsetX

refactoring

refactoring

fix a return issue

don't display vertical alignment

improve performance

refactoring almost done

refactoring

refactoring

improve setColor

use shared htmlTextParser

fix contentSize change issue

add click event handler

add hoverin and hoverout event handler

fix a issue

remove mousein and mouseover

done
2016-08-25 16:47:59 +08:00
Wang Nan e6201c7ffc Merge pull request #923 from zilongshanren/refactoring-layout-widget-label
refactoring layout and label update timing
2016-07-18 17:24:03 +08:00
zilongshanren 5f350544ac refactoring layout and label update timing 2016-07-18 16:57:40 +08:00
Johnny Wu a462ce79e4 change inspector url 2016-07-12 18:22:28 +08:00
zilongshanren 11db3a89c1 minor fix
add docs for actualFontSize

remove unnedded bind call

only define debounce method in Editor
2016-07-01 18:38:12 +08:00
zilongshanren 5ad4e6fca9 fix web system font shrink wrap effect
fix label font size

add measure text height

make a skeleton of label ttf shrink algorithm

add debounce method for node string

finish no \n wrap

add debounced font size to label

finish web ttf shrink
2016-07-01 18:13:26 +08:00
zilongshanren 3b9d875014 fix bmfont and ttf shrink in editor
fix bmfont vertical clamp precision

fix a bunch of label issues

fix bmfont inital font metrics
2016-06-17 16:32:02 +08:00
knoxHuang 89ab77b91a fix CCLabel TextAlignment API 2016-06-14 17:00:06 +08:00
zilongshanren 998cdb1dc8 only set line height when label is bmfont 2016-06-06 18:37:19 +08:00
zilongshanren 6098e801cd fix label resize height issue 2016-06-06 17:10:00 +08:00
zilongshanren 8c2e92b009 add bmfont layout 2016-06-06 16:34:22 +08:00
Jare Guo 3a660d7aab fix label color can not changed before update phase 2016-06-03 14:12:36 +08:00
Jare Guo a568ac9269 label should not register size provider every frame 2016-05-23 15:02:08 +08:00
Wang Nan 00a5067baf Merge pull request #710 from jareguo/master
make sizeProvider error more clear
2016-05-23 11:24:21 +08:00
Jare Guo b1e8e498e9 make sizeProvider error more clear 2016-05-21 18:23:03 +08:00
Jare Guo ec2247995b fix rendering component can not hide in onLoad 2016-05-21 17:37:01 +08:00
ViusualSJ 02c8015610 Fixed a bug about use system font 2016-05-20 17:46:04 +08:00
ViusualSJ 3861c76385 remove useSystemFont from CCGLabel 2016-05-20 15:38:51 +08:00
ViusualSJ 306a61707a remove useSystemFont from CCGLabel 2016-05-20 15:28:51 +08:00
zhangbin b56dfce1da Change the bmFontOriginalSize property to private. 2016-05-20 14:35:00 +08:00
zhangbin bd83852ec5 Record the original size in the BitmapFont Asset object. 2016-05-20 11:35:00 +08:00
Jare Guo 655ca3412b remove duplicated setFontFileOrFamily in Label 2016-05-19 13:52:12 +08:00
zhangbin 8a85398ab1 Rename the property & the method. 2016-05-18 16:21:30 +08:00
zhangbin 215cd99831 Add property in Label component for the origin size of BMFont. 2016-05-18 15:37:41 +08:00
Jare Guo 142aeed175 add preload lifecycle method 2016-05-16 15:41:49 +08:00
Jare Guo f8edcbe802 remove cc.sys.isNative in html5 2016-05-13 11:21:22 +08:00
ViusualSJ a60db52569 Add label inspector html 2016-05-06 13:52:10 +08:00
Jare Guo 3f1b682d19 Merge commit '0d438a748a5aae594e29344fffe4ea040e235c81'
# Conflicts:
#	cocos2d/core/components/CCRendererInSG.js
#	cocos2d/core/load-pipeline/asset-table.js
#	cocos2d/tilemap/CCTiledMap.js
#	jsb/jsb-editbox.js
2016-04-27 10:01:06 +08:00
Jare Guo 2f66e219a0 Merge pull request #625 from jareguo/master
optimizations
2016-04-25 15:03:25 +08:00
Jare Guo 1b8fafc9cc turn on dead code optimization in building 2016-04-25 14:32:57 +08:00
Nan Wang b746266448 fix api typo 2016-04-22 10:56:16 +08:00
knoxHuang ffb2c9af14 Label.file change to .font 2016-04-20 18:08:16 +08:00
knoxHuang 451561bfd7 Bitmap Font resources from Raw Asset to Asset (#2661) 2016-04-18 18:29:20 +08:00
Jare Guo 1bfe4f3fd1 Merge pull request #591 from cocos-creator/v1.0
sync V1.0
2016-04-12 14:39:26 +08:00
Nan Wang c3961feb8a update i18n differed component help link 2016-04-11 19:06:30 +08:00
zilongshanren 719bcf9766 fix scrollview content boundary 2016-03-30 14:35:06 +08:00
zilongshanren 83c30ea536 fix editbox maxLength 2016-03-24 18:01:41 +08:00
zilongshanren b01f458217 fix label, editbox first time content size change 2016-03-24 17:07:38 +08:00
knoxHuang 9b8d4a3624 update label API 2016-03-16 15:23:11 +08:00
knoxHuang f4b8b94267 update label API 2016-03-16 14:32:49 +08:00
knoxHuang 2d7f991a11 update components api url 2016-03-09 18:33:13 +08:00
knoxHuang 57a8e12052 built-in module in the title next to add a help icon. 2016-03-09 17:57:13 +08:00
zilongshanren ca4380b123 fix bmfont color change issue 2016-03-04 18:16:24 +08:00
Nan Wang 3a70ae6060 update license file and source code header. 2016-03-01 11:04:12 +08:00
Jare Guo 94da7696c5 update PR 2016-02-27 17:09:06 +08:00
Jare Guo e115117881 add RendererInSG 2016-02-26 19:28:22 +08:00
Jare Guo 0d4022436c rename ComponentInSG -> RendererBelowSG 2016-02-26 19:28:22 +08:00
zilongshanren 7cb89ec578 fix jsb label 2016-02-24 18:34:21 +08:00