技能装备 逻辑改变,ui 变动基本完成
This commit is contained in:
258
assets/resources/game/gui/lightbs.anim
Normal file
258
assets/resources/game/gui/lightbs.anim
Normal file
@@ -0,0 +1,258 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"__type__": "cc.AnimationClip",
|
||||||
|
"_name": "lightbs",
|
||||||
|
"_objFlags": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"embeddedPlayerGroups": []
|
||||||
|
},
|
||||||
|
"_native": "",
|
||||||
|
"sample": 30,
|
||||||
|
"speed": 1,
|
||||||
|
"wrapMode": 2,
|
||||||
|
"enableTrsBlending": false,
|
||||||
|
"_duration": 0.6666666666666666,
|
||||||
|
"_hash": 500763545,
|
||||||
|
"_tracks": [
|
||||||
|
{
|
||||||
|
"__id__": 1
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_exoticAnimation": null,
|
||||||
|
"_events": [],
|
||||||
|
"_embeddedPlayers": [],
|
||||||
|
"_additiveSettings": {
|
||||||
|
"__id__": 11
|
||||||
|
},
|
||||||
|
"_auxiliaryCurveEntries": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.animation.VectorTrack",
|
||||||
|
"_binding": {
|
||||||
|
"__type__": "cc.animation.TrackBinding",
|
||||||
|
"path": {
|
||||||
|
"__id__": 2
|
||||||
|
},
|
||||||
|
"proxy": null
|
||||||
|
},
|
||||||
|
"_channels": [
|
||||||
|
{
|
||||||
|
"__id__": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 5
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 7
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__id__": 9
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"_nComponents": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.animation.TrackPath",
|
||||||
|
"_paths": [
|
||||||
|
"scale"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.animation.Channel",
|
||||||
|
"_curve": {
|
||||||
|
"__id__": 4
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealCurve",
|
||||||
|
"_times": [
|
||||||
|
0,
|
||||||
|
0.3333333432674408,
|
||||||
|
0.6666666865348816
|
||||||
|
],
|
||||||
|
"_values": [
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1.100000023841858,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"preExtrapolation": 1,
|
||||||
|
"postExtrapolation": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.animation.Channel",
|
||||||
|
"_curve": {
|
||||||
|
"__id__": 6
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealCurve",
|
||||||
|
"_times": [
|
||||||
|
0,
|
||||||
|
0.3333333432674408,
|
||||||
|
0.6666666865348816
|
||||||
|
],
|
||||||
|
"_values": [
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1.100000023841858,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"preExtrapolation": 1,
|
||||||
|
"postExtrapolation": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.animation.Channel",
|
||||||
|
"_curve": {
|
||||||
|
"__id__": 8
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealCurve",
|
||||||
|
"_times": [
|
||||||
|
0,
|
||||||
|
0.3333333432674408,
|
||||||
|
0.6666666865348816
|
||||||
|
],
|
||||||
|
"_values": [
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealKeyframeValue",
|
||||||
|
"interpolationMode": 0,
|
||||||
|
"tangentWeightMode": 0,
|
||||||
|
"value": 1,
|
||||||
|
"rightTangent": 0,
|
||||||
|
"rightTangentWeight": 1,
|
||||||
|
"leftTangent": 0,
|
||||||
|
"leftTangentWeight": 1,
|
||||||
|
"easingMethod": 0,
|
||||||
|
"__editorExtras__": {
|
||||||
|
"tangentMode": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"preExtrapolation": 1,
|
||||||
|
"postExtrapolation": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.animation.Channel",
|
||||||
|
"_curve": {
|
||||||
|
"__id__": 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.RealCurve",
|
||||||
|
"_times": [],
|
||||||
|
"_values": [],
|
||||||
|
"preExtrapolation": 1,
|
||||||
|
"postExtrapolation": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__type__": "cc.AnimationClipAdditiveSettings",
|
||||||
|
"enabled": false,
|
||||||
|
"refClip": null
|
||||||
|
}
|
||||||
|
]
|
||||||
13
assets/resources/game/gui/lightbs.anim.meta
Normal file
13
assets/resources/game/gui/lightbs.anim.meta
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"ver": "2.0.3",
|
||||||
|
"importer": "animation-clip",
|
||||||
|
"imported": true,
|
||||||
|
"uuid": "90a0ddc5-ebc9-40a7-974b-84d31e535ad6",
|
||||||
|
"files": [
|
||||||
|
".cconb"
|
||||||
|
],
|
||||||
|
"subMetas": {},
|
||||||
|
"userData": {
|
||||||
|
"name": "lightbs"
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
import { _decorator, resources, Sprite, SpriteAtlas ,Node, ProgressBar, tween, v3} from "cc";
|
import { _decorator, resources, Sprite, SpriteAtlas ,Node, ProgressBar, tween, v3, Label} from "cc";
|
||||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||||
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
|
||||||
import { GameEvent } from "../common/config/GameEvent";
|
import { GameEvent } from "../common/config/GameEvent";
|
||||||
@@ -193,20 +193,39 @@ export class EquipSkillComp extends CCComp {
|
|||||||
private show_skill_get(e:string){
|
private show_skill_get(e:string){
|
||||||
if(this.skill1.uuid==0){
|
if(this.skill1.uuid==0){
|
||||||
this.boxs.getChildByName("skill1").getChildByName("get").active =true
|
this.boxs.getChildByName("skill1").getChildByName("get").active =true
|
||||||
|
this.boxs.getChildByName("skill1").getChildByName("light").active=true
|
||||||
|
this.boxs.getChildByName("skill1").getChildByName("tip").active =true
|
||||||
|
this.boxs.getChildByName("skill1").getChildByName("tip").getComponent(Label).string="可购买"
|
||||||
}
|
}
|
||||||
if(this.skill2.uuid==0){
|
if(this.skill2.uuid==0){
|
||||||
this.boxs.getChildByName("skill2").getChildByName("get").active =true
|
this.boxs.getChildByName("skill2").getChildByName("get").active =true
|
||||||
|
this.boxs.getChildByName("skill2").getChildByName("light").active=true
|
||||||
|
this.boxs.getChildByName("skill2").getChildByName("tip").active =true
|
||||||
|
this.boxs.getChildByName("skill2").getChildByName("tip").getComponent(Label).string="可购买"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
if(this.skill3.uuid==0){
|
if(this.skill3.uuid==0){
|
||||||
this.boxs.getChildByName("skill3").getChildByName("get").active =true
|
this.boxs.getChildByName("skill3").getChildByName("get").active =true
|
||||||
|
this.boxs.getChildByName("skill3").getChildByName("light").active=true
|
||||||
|
this.boxs.getChildByName("skill3").getChildByName("tip").active =true
|
||||||
|
this.boxs.getChildByName("skill3").getChildByName("tip").getComponent(Label).string="可购买"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private hide_skill_get(e:any,data:string){
|
private hide_skill_get(e:any,data:string){
|
||||||
this.boxs.getChildByName("skill1").getChildByName("get").active =false
|
this.boxs.getChildByName("skill1").getChildByName("get").active =false
|
||||||
|
this.boxs.getChildByName("skill1").getChildByName("tip").active =false
|
||||||
|
this.boxs.getChildByName("skill1").getChildByName("light").active=false
|
||||||
|
|
||||||
this.boxs.getChildByName("skill2").getChildByName("get").active =false
|
this.boxs.getChildByName("skill2").getChildByName("get").active =false
|
||||||
|
this.boxs.getChildByName("skill2").getChildByName("tip").active =false
|
||||||
|
this.boxs.getChildByName("skill2").getChildByName("light").active=false
|
||||||
|
|
||||||
this.boxs.getChildByName("skill3").getChildByName("get").active =false
|
this.boxs.getChildByName("skill3").getChildByName("get").active =false
|
||||||
|
this.boxs.getChildByName("skill3").getChildByName("tip").active =false
|
||||||
|
this.boxs.getChildByName("skill3").getChildByName("light").active=false
|
||||||
}
|
}
|
||||||
|
|
||||||
private show_skill_change(e:string){
|
private show_skill_change(e:string){
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { _decorator, Component, Node, resources, Sprite, SpriteAtlas } from 'cc';
|
import { _decorator, Component, Label, Node, resources, Sprite, SpriteAtlas } from 'cc';
|
||||||
import { oops } from 'db://oops-framework/core/Oops';
|
import { oops } from 'db://oops-framework/core/Oops';
|
||||||
import { GameEvent } from '../common/config/GameEvent';
|
import { GameEvent } from '../common/config/GameEvent';
|
||||||
import { smc } from '../common/SingletonModuleComp';
|
import { smc } from '../common/SingletonModuleComp';
|
||||||
@@ -258,19 +258,36 @@ export class EquipsComp extends Component {
|
|||||||
private show_equip_get(e:string){
|
private show_equip_get(e:string){
|
||||||
if(this.weapon.uuid==0){
|
if(this.weapon.uuid==0){
|
||||||
this.boxs.getChildByName("weapon").getChildByName("get").active =true
|
this.boxs.getChildByName("weapon").getChildByName("get").active =true
|
||||||
|
this.boxs.getChildByName("weapon").getChildByName("light").active=true
|
||||||
|
this.boxs.getChildByName("weapon").getChildByName("tip").active=true
|
||||||
|
this.boxs.getChildByName("weapon").getChildByName("tip").getComponent(Label).string="可购买"
|
||||||
|
|
||||||
}
|
}
|
||||||
if(this.armor.uuid==0){
|
if(this.armor.uuid==0){
|
||||||
this.boxs.getChildByName("armor").getChildByName("get").active =true
|
this.boxs.getChildByName("armor").getChildByName("get").active =true
|
||||||
|
this.boxs.getChildByName("armor").getChildByName("light").active=true
|
||||||
|
this.boxs.getChildByName("armor").getChildByName("tip").active=true
|
||||||
|
this.boxs.getChildByName("armor").getChildByName("tip").getComponent(Label).string="可购买"
|
||||||
|
|
||||||
}
|
}
|
||||||
if(this.accessory.uuid==0){
|
if(this.accessory.uuid==0){
|
||||||
this.boxs.getChildByName("accessory").getChildByName("get").active =true
|
this.boxs.getChildByName("accessory").getChildByName("get").active =true
|
||||||
|
this.boxs.getChildByName("accessory").getChildByName("light").active=true
|
||||||
|
this.boxs.getChildByName("accessory").getChildByName("tip").active=true
|
||||||
|
this.boxs.getChildByName("accessory").getChildByName("tip").getComponent(Label).string="可购买"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private hide_equip_get(e:any,data:string){
|
private hide_equip_get(e:any,data:string){
|
||||||
this.boxs.getChildByName("weapon").getChildByName("get").active =false
|
this.boxs.getChildByName("weapon").getChildByName("get").active =false
|
||||||
|
this.boxs.getChildByName("weapon").getChildByName("light").active=false
|
||||||
|
this.boxs.getChildByName("weapon").getChildByName("tip").active=false
|
||||||
this.boxs.getChildByName("armor").getChildByName("get").active =false
|
this.boxs.getChildByName("armor").getChildByName("get").active =false
|
||||||
|
this.boxs.getChildByName("armor").getChildByName("light").active=false
|
||||||
|
this.boxs.getChildByName("armor").getChildByName("tip").active=false
|
||||||
this.boxs.getChildByName("accessory").getChildByName("get").active =false
|
this.boxs.getChildByName("accessory").getChildByName("get").active =false
|
||||||
|
this.boxs.getChildByName("accessory").getChildByName("light").active=false
|
||||||
|
this.boxs.getChildByName("accessory").getChildByName("tip").active=false
|
||||||
}
|
}
|
||||||
|
|
||||||
private show_equip_change(e:string){
|
private show_equip_change(e:string){
|
||||||
@@ -287,9 +304,14 @@ export class EquipsComp extends Component {
|
|||||||
|
|
||||||
private hide_equip_change(e:any,data:any){
|
private hide_equip_change(e:any,data:any){
|
||||||
this.boxs.getChildByName("weapon").getChildByName("change").active =false
|
this.boxs.getChildByName("weapon").getChildByName("change").active =false
|
||||||
|
this.boxs.getChildByName("weapon").getChildByName("light").active=false
|
||||||
|
this.boxs.getChildByName("weapon").getChildByName("tip").active=false
|
||||||
this.boxs.getChildByName("armor").getChildByName("change").active =false
|
this.boxs.getChildByName("armor").getChildByName("change").active =false
|
||||||
|
this.boxs.getChildByName("armor").getChildByName("light").active=false
|
||||||
|
this.boxs.getChildByName("armor").getChildByName("tip").active=false
|
||||||
this.boxs.getChildByName("accessory").getChildByName("change").active =false
|
this.boxs.getChildByName("accessory").getChildByName("change").active =false
|
||||||
|
this.boxs.getChildByName("accessory").getChildByName("light").active=false
|
||||||
|
this.boxs.getChildByName("accessory").getChildByName("tip").active=false
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user