ngui/value
Class: TextAlign
LEFT
- 從左到右
排列并且以左邊
對齊CENTER
- 從左到右
排列并且以居中
對齊RIGHT
- 從左到右
排列并且以右邊
對齊LEFT_REVERSE
- 從右到左
排列并且以左邊
對齊CENTER_REVERSE
- 從右到左
排列并且以居中
對齊RIGHT_REVERSE
- 從右到左
排列并且以右邊
對齊Class: Align
Class: ContentAlign
LEFT
- 水平布局,從左到右排列布局,溢出往下?lián)Q行RIGHT
- 水平布局,從右到左排列布局,溢出往下?lián)Q行TOP
- 垂直布局,從上到下排列布局,溢出往右邊換行BOTTOM
- 垂直布局,從下到上排列布局,溢出往右換行Class: Repeat
NONE
- 不重復(fù)REPEAT
- x
軸與y
軸都重復(fù)REPEAT_X
- 只重復(fù)x
軸REPEAT_Y
- 只重復(fù)y
軸MIRRORED_REPEAT
- 鏡像模式x
軸與y
軸都重復(fù)MIRRORED_REPEAT_X
- 鏡像模式只重復(fù)x
軸MIRRORED_REPEAT_Y
- 鏡像模式只重復(fù)y
軸Class: Direction
Class: KeyboardType
NORMAL
- ASCII
- NUMBER
- URL
- NUMBER_PAD
- PHONE
- NAME_PHONE
- EMAIL
- DECIMAL
- TWITTER
- SEARCH
- ASCII_NUMBER
- Class: KeyboardReturnType
Class: Border
float
}Color
}Class: Shadow
float
}float
}float
}Color
}Class: Color
uint
}uint
}uint
}uint
}Color
}Class: Vec2
float
}float
}Class: Vec3
float
}float
}float
}Class: Vec4
float
}float
}float
}float
}Class: Curve
float
}float
}float
}float
}Example:
// 'linear'、'ease'、'easeIn'、'easeOut'、'easeInOut'
var cueceLinear = new Curve(0, 0, 1, 1)
var cueceEase = new Curve(0.25, 0.1, 0.25, 1)
var cueceEaseIn = new Curve(0.42, 0, 1, 1)
var cueceEaseOut = new Curve(0.25, 0.1, 0.25, 1)
var cueceEaseInOut = new Curve(0.25, 0.1, 0.25, 1)
Class: Rect
float
}float
}float
}float
}Class: Mat
Class: Mat4
Class: Value
float
}Class: TextAttrsValue
Class: TextColor
extends
TextAttrsValue
Color
}Class: TextSize
extends
TextAttrsValue
float
}Class: TextFamily
extends
TextAttrsValue
String
}Class: TextStyle
extends
TextAttrsValue
THIN
- 100ULTRALIGHT
- 200LIGHT
- 300REGULAR
- 400 正常MEDIUM
- 500SEMIBOLD
- 600BOLD
- 700HEAVY
- 800BLACK
- 900THIN_ITALIC
- 100 斜體 ULTRALIGHT_ITALIC
- 200 斜體LIGHT_ITALIC
- 300 斜體ITALIC
- 400 斜體MEDIUM_ITALIC
- 500 斜體SEMIBOLD_ITALIC
- 600 斜體BOLD_ITALIC
- 700 斜體HEAVY_ITALIC
- 800 斜體BLACK_ITALIC
- 900 斜體Class: TextShadow
extends
TextAttrsValue
Shadow
}Class: TextLineHeight
extends
TextAttrsValue
bool
}float
}Class: TextDecoration
extends
TextAttrsValue
NONE
- 無裝飾OVERLINE
- 上劃線LINE_THROUGH
- 中劃線UNDERLINE
- 下劃線Class: TextOverflow
extends
TextAttrsValue
NORMAL
- 不做處理CLIP
- 修剪ELLIPSIS
- 修剪并在文本末尾顯示省略號CENTER_ELLIPSIS
- 修剪并在文本中間顯示省略號Class: TextWhiteSpace
extends
TextAttrsValue
NORMAL
- 保留所有空白,使用自動wrapNO_WRAP
- 合并空白序列,不使用自動wrapNO_SPACE
- 合并空白序列,使用自動wrapPRE
- 保留所有空白,不使用自動wrapPRE_LINE
- 合并空白符序列,但保留換行符,使用自動wrapTextAlign
}Align
}ContentAlign
}Repeat
}Direction
}KeyboardType
}KeyboardReturnType
}Border
}Shadow
}Color
}Vec2
}Vec3
}Vec4
}Curve
}Rect
}Mat
}Mat4
}Class: Value
}TextColor
}TextSize
}TextFamily
}TextStyle
}TextShadow
}TextLineHeight
}TextDecoration
}TextOverflow
}TextWhiteSpace
}Enum: All
更多建議: