#include <XUITextureCache.h>
#include <XUITextureCache.h>
◆ CreateInstance()
◆ GetComBinePathBySpriteName() [1/2]
通过小图名称获取plist拼接路径
- 参数
-
- 返回
- string
◆ GetComBinePathBySpriteName() [2/2]
function XUITextureCache GetComBinePathBySpriteName |
( |
spriteName |
, |
|
|
plistPath |
|
|
) |
| |
XUITextureCache_GetComBinePathBySpriteName01
- 参数
-
spriteName | string |
plistPath | string |
- 返回
- string
◆ GetOrCreateTexture()
获取或创建UI纹理
- 参数
-
textureOrplistpath | string 纹理或plist路径 |
type_ | number UI纹理类型 |
- 返回
- XUITexture
◆ GetPlistPath()
分离plist路径与小图名称 plistpath{spritename}
- 参数
-
path | cppstring |
plistpath | cppstring |
spritename | cppstring |
- 返回
- boolean
◆ GetPlistSpriteNameStr()
function XUITextureCache GetPlistSpriteNameStr |
( |
xelua_var_14 |
, |
|
|
xelua_var_15 |
|
|
) |
| |
plistpath,spritename 拼接plistpath{spritename} 格式并返回
- 参数
-
xelua_var_14 | cppstring |
xelua_var_15 | cppstring |
- 返回
- cppstring
◆ GetSpriteFrameSize()
function XUITexture GetSpriteFrameSize |
( |
spritename |
| ) |
|
◆ GetSpriteFrameUV()
function XUITexture GetSpriteFrameUV |
( |
spritename |
| ) |
|
获取合图中小图纹理坐标 如若不存在,返回{0,0,1,1}
- 参数
-
- 返回
- XVECTOR4
◆ IsPlistPath()
判断字符串是否plistpath{spritename}格式
- 参数
-
- 返回
- boolean
◆ IsSpriteExist()
◆ IsSpriteRotate()
◆ new()
◆ Release() [1/2]
XUITextureCache_Release00
- 参数
-
- 返回
- void
◆ Release() [2/2]
释放UI纹理及相关image信息
- 参数
-
delete_tex_map | xhashtable_xint32_and_XUITexture_p_ ui纹理 |
- 返回
- void
◆ ReplacePlistSpriteName()
function XUITextureCache ReplacePlistSpriteName |
( |
xelua_var_13 |
, |
|
|
spritename1 |
|
|
) |
| |
利用spritename1 替换listpath{spritename}spritename,并返回替换后字符串
- 参数
-
xelua_var_13 | cppstring |
spritename1 | cppstring |
- 返回
- cppstring
◆ XUITexture