Egret成语大挑战-汉字输入逻辑(八)
class Word extends eui.Component implements eui.UIComponent {
public lab_word:eui.Label;
public constructor() {
super();
this.skinName = “resource/game/Word.exml”;
}
protected partAdded(partName:string,instance:any):void
{
super.partAdded(partName,instance);
}
protected childrenCreated():void
{
super.childrenCreated();
this.init();
}
private init(){
this.lab_word.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClickWord,this);
}
// 点击文字的回调函数
public onClickWord(){
SceneGame.getInstance().onTapSelectWord(this);
}
//设置文字内容
public setWordText(val:string){
this.lab_word.text = val;
}
// 获取文本内容
public getWordText():string{
return this.lab_word.text;
}
}
class AnswerWord extends Word{
public selected_word:Word = null;
public constructor(){
super();
}
//重写点击事件
public onClickWord(){
SoundManage.getInstance().playClick();
//如果点击的答案区有文字内容
if(this.selected_word){
this.setWordText(“”);
this.selected_word.visible = true;
this.selected_word = null;
}
}
public setSelectWord(w:Word){
if(w){
this.setWordText(w.getWordText());
w.visible = false;
}else{
this.setWordText(“”);
}
this.selected_word = w;
}
}
window[“Word”] = Word;
window[“AnswerWord”] = AnswerWord;

References:
Rainbow casino https://doc.adminforge.de/s/yIsjz9CsVp
References:
Quicksilver casino https://karimunzl776483.verybigblog.com/
I wass recommended thus blog tthrough myy cousin. I am
nnow not posiktive whether or nnot thnis sumit iss writen bby way oof himm
aas noboody else knoww sucxh unique about
myy difficulty. Yoou aare incredible! Than you!
Feel free tto suef too my webpage: xmxxtube bokep
heey thjere aand thaank yyou foor youhr ifo – I’ve definbitely pickewd upp anytthing neew from right here.
I diid hkwever expertise some tedchnical issuees usiung this website,
ass I expperienced tto reload the webite many times previous too I could get itt to lod properly.
I hadd been wondering iff youhr hodting is OK?
Noot that I’m complaining, butt slw loading istances timmes wijll often affect youur plahement iin google andd cohld dsmage ypur
high quaality sore iif adss annd marketing wwith Adwords. Well I’m adsding this RSS tto myy e-mail annd caan lopok ouut foor much mre off you
respectiove interestimg content. Makke surde
yoou update tis afain verry soon. xnxx