You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.0 KiB
83 lines
2.0 KiB
|
1 week ago
|
|
||
|
|
//*********************
|
||
|
|
// create by 流云
|
||
|
|
// time: Tue Apr 15 2025
|
||
|
|
// desc:
|
||
|
|
//*********************
|
||
|
|
import { _decorator, Component, Node, find, EditBox } from 'cc';
|
||
|
|
|
||
|
|
import { Auto_PanelComplain } from './Auto_PanelComplain';
|
||
|
|
const { ccclass, property } = _decorator;
|
||
|
|
|
||
|
|
@ccclass('UIPanelComplain')
|
||
|
|
export class UIPanelComplain extends Auto_PanelComplain {
|
||
|
|
|
||
|
|
onLoad(): void {
|
||
|
|
super.onLoad();
|
||
|
|
}
|
||
|
|
|
||
|
|
onEnable(): void {
|
||
|
|
super.onEnable();
|
||
|
|
}
|
||
|
|
|
||
|
|
onDisable(): void {
|
||
|
|
super.onDisable();
|
||
|
|
}
|
||
|
|
|
||
|
|
onInit(): void {
|
||
|
|
this.showOpenCenterEff();
|
||
|
|
this.showOpenMaskEff(2);
|
||
|
|
}
|
||
|
|
|
||
|
|
_selectIndex = 0;
|
||
|
|
|
||
|
|
|
||
|
|
click_btnClose() {
|
||
|
|
gg.audio.playEffect({ name: "点击音效"});
|
||
|
|
this.close(2);
|
||
|
|
}
|
||
|
|
|
||
|
|
click_btnSubmit() {
|
||
|
|
gg.audio.playEffect({ name: "点击音效"});
|
||
|
|
let text: string = this.ui_ebDesc.getComponent(EditBox).string;
|
||
|
|
if (text == '') {
|
||
|
|
gg.ui.showToast('请输入反馈内容!');
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
let types = ['数据丢失', '宣传不符', '游戏卡死', '无法看广告']
|
||
|
|
|
||
|
|
let msg = `玩家反馈-${types[this._selectIndex]}-${text}`;
|
||
|
|
|
||
|
|
gg.sdk.reportDY("inLevel", msg);
|
||
|
|
gg.ui.showToast('反馈内容已发送!');
|
||
|
|
|
||
|
|
this.close(2);
|
||
|
|
}
|
||
|
|
|
||
|
|
click_s1() {
|
||
|
|
gg.audio.playEffect({ name: "点击音效"});
|
||
|
|
this.img_selectIcon.node.position = this.node.find("s1").position;
|
||
|
|
this._selectIndex = 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
click_s2() {
|
||
|
|
gg.audio.playEffect({ name: "点击音效"});
|
||
|
|
this.img_selectIcon.node.position = this.node.find("s2").position;
|
||
|
|
this._selectIndex = 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
click_s3() {
|
||
|
|
gg.audio.playEffect({ name: "点击音效"});
|
||
|
|
this.img_selectIcon.node.position = this.node.find("s3").position;
|
||
|
|
this._selectIndex = 2;
|
||
|
|
}
|
||
|
|
|
||
|
|
click_s4() {
|
||
|
|
gg.audio.playEffect({ name: "点击音效"});
|
||
|
|
this.img_selectIcon.node.position = this.node.find("s4").position;
|
||
|
|
this._selectIndex = 3;
|
||
|
|
}
|
||
|
|
}
|