更新技师资源
This commit is contained in:
@@ -19,10 +19,10 @@ export class SimpleToggleGroup extends Component {
|
||||
}
|
||||
|
||||
toggleSelected(selectedNode: Node) {
|
||||
const pos = this.slider.getWorldPosition();
|
||||
const targetPos = new Vec3(selectedNode.worldPosition.x, pos.y, pos.z);
|
||||
const pos = this.slider.getPosition();
|
||||
const targetPos = new Vec3(selectedNode.getPosition().x, pos.y, pos.z);
|
||||
tween(this.slider)
|
||||
.to(0.3, { worldPosition: targetPos }, { easing: "sineInOut" })
|
||||
.to(0.3, { position: targetPos }, { easing: "sineInOut" })
|
||||
.start();
|
||||
|
||||
for (let i = 0; i < this.toggles.length; i++) {
|
||||
|
||||
@@ -33,10 +33,10 @@ export class GirlListItem extends Component {
|
||||
|
||||
nameKey: string;
|
||||
tagKey: string;
|
||||
|
||||
|
||||
private onLanguageChangeCallback = () => {
|
||||
if (!this.girlName || !this.tags) return;
|
||||
|
||||
|
||||
this.girlName.string = LanguageUtils.getText(this.nameKey);
|
||||
let desc = "";
|
||||
const tags = LanguageUtils.getText(this.tagKey).split("|");
|
||||
@@ -48,11 +48,19 @@ export class GirlListItem extends Component {
|
||||
};
|
||||
|
||||
protected onLoad(): void {
|
||||
Utils.addInnerEL(InnerMsgCode.LanguageChange, this, this.onLanguageChangeCallback);
|
||||
Utils.addInnerEL(
|
||||
InnerMsgCode.LanguageChange,
|
||||
this,
|
||||
this.onLanguageChangeCallback
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
protected onDestroy(): void {
|
||||
Utils.removeInnerEL(InnerMsgCode.LanguageChange, this, this.onLanguageChangeCallback);
|
||||
Utils.removeInnerEL(
|
||||
InnerMsgCode.LanguageChange,
|
||||
this,
|
||||
this.onLanguageChangeCallback
|
||||
);
|
||||
}
|
||||
|
||||
baseNode: Node;
|
||||
@@ -75,7 +83,7 @@ export class GirlListItem extends Component {
|
||||
|
||||
ResManager.I.changeBundleSpriteFrame(
|
||||
this.avatar,
|
||||
data.avatarPath,
|
||||
data.listAvatarPath,
|
||||
"Chat18x",
|
||||
() => {
|
||||
let sizeTran = this.avatar.node.parent.getComponent(UITransform);
|
||||
@@ -87,9 +95,9 @@ export class GirlListItem extends Component {
|
||||
}
|
||||
);
|
||||
|
||||
for (let i = 0; i < 5; i++) {
|
||||
this.starParent.children[i].active = i < data.starCount;
|
||||
}
|
||||
// for (let i = 0; i < 5; i++) {
|
||||
// this.starParent.children[i].active = i < data.;
|
||||
// }
|
||||
}
|
||||
|
||||
onClickDetail() {
|
||||
|
||||
@@ -17,9 +17,9 @@ export enum Category {
|
||||
*/
|
||||
shunv = 0,
|
||||
/**
|
||||
* 18岁
|
||||
* 20s
|
||||
*/
|
||||
eighteen = 1,
|
||||
twenty = 1,
|
||||
/**
|
||||
* 辣妈
|
||||
*/
|
||||
@@ -117,6 +117,7 @@ export class Girl {
|
||||
this.tagKey = _buf_.readString()
|
||||
this.priceType = _buf_.readInt()
|
||||
this.avatarPath = _buf_.readString()
|
||||
this.listAvatarPath = _buf_.readString()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -147,6 +148,10 @@ export class Girl {
|
||||
* 头像路径
|
||||
*/
|
||||
readonly avatarPath: string
|
||||
/**
|
||||
* 头像路径
|
||||
*/
|
||||
readonly listAvatarPath: string
|
||||
|
||||
resolve(tables:Tables) {
|
||||
|
||||
@@ -156,6 +161,7 @@ export class Girl {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user