parent
8caada3b73
commit
2ff5e80f46
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,9 @@ |
|||||||
|
{ |
||||||
|
"ver": "1.2.0", |
||||||
|
"importer": "directory", |
||||||
|
"imported": true, |
||||||
|
"uuid": "f6f17481-3735-4e3e-86e9-de40629953ed", |
||||||
|
"files": [], |
||||||
|
"subMetas": {}, |
||||||
|
"userData": {} |
||||||
|
} |
||||||
@ -0,0 +1,20 @@ |
|||||||
|
|
||||||
|
技能三选一光效.png |
||||||
|
size: 94,46 |
||||||
|
format: RGBA8888 |
||||||
|
filter: Linear,Linear |
||||||
|
repeat: none |
||||||
|
橙色星 |
||||||
|
rotate: false |
||||||
|
xy: 0, 0 |
||||||
|
size: 46, 46 |
||||||
|
orig: 50, 50 |
||||||
|
offset: 2, 2 |
||||||
|
index: -1 |
||||||
|
紫色星 |
||||||
|
rotate: false |
||||||
|
xy: 48, 0 |
||||||
|
size: 46, 46 |
||||||
|
orig: 50, 50 |
||||||
|
offset: 2, 2 |
||||||
|
index: -1 |
||||||
@ -0,0 +1,12 @@ |
|||||||
|
{ |
||||||
|
"ver": "1.0.0", |
||||||
|
"importer": "*", |
||||||
|
"imported": true, |
||||||
|
"uuid": "a4ee2a1a-d004-4ef4-aeb5-7e359db31457", |
||||||
|
"files": [ |
||||||
|
".atlas", |
||||||
|
".json" |
||||||
|
], |
||||||
|
"subMetas": {}, |
||||||
|
"userData": {} |
||||||
|
} |
||||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@ |
|||||||
|
{ |
||||||
|
"ver": "1.2.7", |
||||||
|
"importer": "spine-data", |
||||||
|
"imported": true, |
||||||
|
"uuid": "894265f0-4795-4e35-a51f-17b6148427bc", |
||||||
|
"files": [ |
||||||
|
".json" |
||||||
|
], |
||||||
|
"subMetas": {}, |
||||||
|
"userData": { |
||||||
|
"atlasUuid": "a4ee2a1a-d004-4ef4-aeb5-7e359db31457" |
||||||
|
} |
||||||
|
} |
||||||
|
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,134 @@ |
|||||||
|
{ |
||||||
|
"ver": "1.0.27", |
||||||
|
"importer": "image", |
||||||
|
"imported": true, |
||||||
|
"uuid": "bc2bf1c5-975d-487f-8d3c-1b896767fe0e", |
||||||
|
"files": [ |
||||||
|
".json", |
||||||
|
".png" |
||||||
|
], |
||||||
|
"subMetas": { |
||||||
|
"6c48a": { |
||||||
|
"importer": "texture", |
||||||
|
"uuid": "bc2bf1c5-975d-487f-8d3c-1b896767fe0e@6c48a", |
||||||
|
"displayName": "技能三选一光效", |
||||||
|
"id": "6c48a", |
||||||
|
"name": "texture", |
||||||
|
"userData": { |
||||||
|
"wrapModeS": "clamp-to-edge", |
||||||
|
"wrapModeT": "clamp-to-edge", |
||||||
|
"imageUuidOrDatabaseUri": "bc2bf1c5-975d-487f-8d3c-1b896767fe0e", |
||||||
|
"isUuid": true, |
||||||
|
"visible": false, |
||||||
|
"minfilter": "linear", |
||||||
|
"magfilter": "linear", |
||||||
|
"mipfilter": "none", |
||||||
|
"anisotropy": 0 |
||||||
|
}, |
||||||
|
"ver": "1.0.22", |
||||||
|
"imported": true, |
||||||
|
"files": [ |
||||||
|
".json" |
||||||
|
], |
||||||
|
"subMetas": {} |
||||||
|
}, |
||||||
|
"f9941": { |
||||||
|
"importer": "sprite-frame", |
||||||
|
"uuid": "bc2bf1c5-975d-487f-8d3c-1b896767fe0e@f9941", |
||||||
|
"displayName": "技能三选一光效", |
||||||
|
"id": "f9941", |
||||||
|
"name": "spriteFrame", |
||||||
|
"userData": { |
||||||
|
"trimThreshold": 1, |
||||||
|
"rotated": false, |
||||||
|
"offsetX": 0, |
||||||
|
"offsetY": 0, |
||||||
|
"trimX": 0, |
||||||
|
"trimY": 0, |
||||||
|
"width": 94, |
||||||
|
"height": 46, |
||||||
|
"rawWidth": 94, |
||||||
|
"rawHeight": 46, |
||||||
|
"borderTop": 0, |
||||||
|
"borderBottom": 0, |
||||||
|
"borderLeft": 0, |
||||||
|
"borderRight": 0, |
||||||
|
"packable": true, |
||||||
|
"pixelsToUnit": 100, |
||||||
|
"pivotX": 0.5, |
||||||
|
"pivotY": 0.5, |
||||||
|
"meshType": 0, |
||||||
|
"vertices": { |
||||||
|
"rawPosition": [ |
||||||
|
-47, |
||||||
|
-23, |
||||||
|
0, |
||||||
|
47, |
||||||
|
-23, |
||||||
|
0, |
||||||
|
-47, |
||||||
|
23, |
||||||
|
0, |
||||||
|
47, |
||||||
|
23, |
||||||
|
0 |
||||||
|
], |
||||||
|
"indexes": [ |
||||||
|
0, |
||||||
|
1, |
||||||
|
2, |
||||||
|
2, |
||||||
|
1, |
||||||
|
3 |
||||||
|
], |
||||||
|
"uv": [ |
||||||
|
0, |
||||||
|
46, |
||||||
|
94, |
||||||
|
46, |
||||||
|
0, |
||||||
|
0, |
||||||
|
94, |
||||||
|
0 |
||||||
|
], |
||||||
|
"nuv": [ |
||||||
|
0, |
||||||
|
0, |
||||||
|
1, |
||||||
|
0, |
||||||
|
0, |
||||||
|
1, |
||||||
|
1, |
||||||
|
1 |
||||||
|
], |
||||||
|
"minPos": [ |
||||||
|
-47, |
||||||
|
-23, |
||||||
|
0 |
||||||
|
], |
||||||
|
"maxPos": [ |
||||||
|
47, |
||||||
|
23, |
||||||
|
0 |
||||||
|
] |
||||||
|
}, |
||||||
|
"isUuid": true, |
||||||
|
"imageUuidOrDatabaseUri": "bc2bf1c5-975d-487f-8d3c-1b896767fe0e@6c48a", |
||||||
|
"atlasUuid": "", |
||||||
|
"trimType": "auto" |
||||||
|
}, |
||||||
|
"ver": "1.0.12", |
||||||
|
"imported": true, |
||||||
|
"files": [ |
||||||
|
".json" |
||||||
|
], |
||||||
|
"subMetas": {} |
||||||
|
} |
||||||
|
}, |
||||||
|
"userData": { |
||||||
|
"type": "sprite-frame", |
||||||
|
"fixAlphaTransparencyArtifacts": false, |
||||||
|
"hasAlpha": true, |
||||||
|
"redirect": "bc2bf1c5-975d-487f-8d3c-1b896767fe0e@6c48a" |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,9 @@ |
|||||||
|
{ |
||||||
|
"ver": "1.2.0", |
||||||
|
"importer": "directory", |
||||||
|
"imported": true, |
||||||
|
"uuid": "9de316f3-6144-48cc-9163-37d4d3d7435f", |
||||||
|
"files": [], |
||||||
|
"subMetas": {}, |
||||||
|
"userData": {} |
||||||
|
} |
||||||
@ -0,0 +1,44 @@ |
|||||||
|
|
||||||
|
//*********************
|
||||||
|
// create by 流云
|
||||||
|
// 插件自动生成的节点脚本
|
||||||
|
// 请勿修改(自动生成会覆盖)
|
||||||
|
// 请通过子类继承使用
|
||||||
|
// 如何生成可直接调用的UI节点和组件?
|
||||||
|
// 1.在场景节点树中选中要生成的UI根节点
|
||||||
|
// 2.点击菜单"tool"->“生成UI脚本” 或者使用快捷键(快捷键:Ctrl+Shift+C)
|
||||||
|
// 3.点击后会在script/ui/目录中生成一个以选中节点命名的文件夹,文件夹中会生成两个脚本文件,“Auto_”开头的就是本文件,不可修改,另一个是“UI”+选中节点名称命名的脚本文件,可修改,是需要挂载到选中节点的脚本文件,给用户使用的写逻辑的脚本,只会生成一次
|
||||||
|
// 4.找到第3步描述的“UI”+选中节点名称命名的脚本文件,将其挂载到选中节点上(第一生成需要挂载,后续修改场景,重复生成的时候,该脚本不会再生成,不用担心会覆盖逻辑脚本)
|
||||||
|
// 下面是类型示例
|
||||||
|
// 1.按钮,节点名以“btn_”或者“Btn_”开头或者节点添加了Button组件, 例:btn_Close,会生成btn_Close节点和click_btn_Close()方法
|
||||||
|
// 2.标签,节点名以“lb_”开头, 例:lb_title,会生成lb_title的Label组件
|
||||||
|
// 3.输入框,节点名以“eb_”开头, 例:eb_input,会生成eb_input的EditBox组件
|
||||||
|
// 4.滚动视图,节点名以“sv_”开头, 例:sv_list,会生成sv_list的ScrollView组件
|
||||||
|
// 5.图片,节点名以“img_”或者sp_“”开头, 例:img_Icon,会生成img_Icon的Sprite组件
|
||||||
|
// 6.普通节点,节点名以“ui_”或者“Ui_”或者“UI_”开头, 例:ui_Content,会生成ui_Content的Node节点
|
||||||
|
//*********************
|
||||||
|
import { _decorator, Component, Node, find, Sprite, Label, Button, ScrollView, EditBox, RichText } from 'cc'; |
||||||
|
import { UIBase } from '../../../mx/module/ui/UIBase'; |
||||||
|
const { ccclass } = _decorator; |
||||||
|
|
||||||
|
@ccclass('Auto_PopSelect') |
||||||
|
export class Auto_PopSelect extends UIBase { |
||||||
|
ui_center:Node; |
||||||
|
ui_itemList:Node; |
||||||
|
btnRefresh:Node; |
||||||
|
lb_haveCount:Label; |
||||||
|
onLoad(){ |
||||||
|
super.onLoad(); |
||||||
|
this.ui_center = find("ui_center",this.node); |
||||||
|
this.ui_itemList = find("ui_center/ui_itemList",this.node); |
||||||
|
this.btnRefresh = find("ui_center/btnRefresh",this.node); |
||||||
|
this.lb_haveCount = find("ui_center/lb_haveCount",this.node)?.getComponent(Label); |
||||||
|
} |
||||||
|
onEnable() { |
||||||
|
this.btnRefresh.on(Node.EventType.TOUCH_END, this.click_btnRefresh, this); |
||||||
|
} |
||||||
|
onDisable() { |
||||||
|
this.btnRefresh.off(Node.EventType.TOUCH_END, this.click_btnRefresh, this); |
||||||
|
} |
||||||
|
click_btnRefresh() {} |
||||||
|
} |
||||||
@ -0,0 +1,9 @@ |
|||||||
|
{ |
||||||
|
"ver": "4.0.24", |
||||||
|
"importer": "typescript", |
||||||
|
"imported": true, |
||||||
|
"uuid": "7a49ead1-06ae-4dac-a311-16106a0856ea", |
||||||
|
"files": [], |
||||||
|
"subMetas": {}, |
||||||
|
"userData": {} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
|
||||||
|
//*********************
|
||||||
|
// create by 流云
|
||||||
|
// time: Tue Oct 13 2026
|
||||||
|
// desc:
|
||||||
|
//*********************
|
||||||
|
import { _decorator, Component, Node , find} from 'cc'; |
||||||
|
import { Auto_PopSelect } from './Auto_PopSelect'; |
||||||
|
const { ccclass, property } = _decorator; |
||||||
|
|
||||||
|
@ccclass('UIPopSelect') |
||||||
|
export class UIPopSelect extends Auto_PopSelect { |
||||||
|
|
||||||
|
onLoad(): void { |
||||||
|
super.onLoad(); |
||||||
|
} |
||||||
|
|
||||||
|
onEnable(): void { |
||||||
|
super.onEnable(); |
||||||
|
} |
||||||
|
|
||||||
|
onDisable(): void { |
||||||
|
super.onDisable(); |
||||||
|
} |
||||||
|
|
||||||
|
onInit(): void { |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,9 @@ |
|||||||
|
{ |
||||||
|
"ver": "4.0.24", |
||||||
|
"importer": "typescript", |
||||||
|
"imported": true, |
||||||
|
"uuid": "41b4f96e-2874-45f4-9699-054eab2f96ce", |
||||||
|
"files": [], |
||||||
|
"subMetas": {}, |
||||||
|
"userData": {} |
||||||
|
} |
||||||
Loading…
Reference in new issue