O.P. [request]part of script
I want to make a script that may create a plus Wnd.
The XML file I have made.
But I don't know how to use a js file to "call" the xml file(Create a PlusWnd)
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message, MessageKind)
{
if(Message == 'r') {
MsgPlus.DisplayToast('Uno顏色解讀', '紅色');
}
else if(Message == 'R') {
MsgPlus.DisplayToast('Uno顏色解讀', '紅色');
}
else if(Message == 'y') {
MsgPlus.DisplayToast('Uno顏色解讀', '黃色');
}
else if(Message == 'Y') {
MsgPlus.DisplayToast('Uno顏色解讀', '黃色');
}
else if(Message == 'g') {
MsgPlus.DisplayToast('Uno顏色解讀', '綠色');
}
else if(Message == 'G') {
MsgPlus.DisplayToast('Uno顏色解讀', '綠色');
}
else if(Message == 'b') {
MsgPlus.DisplayToast('Uno顏色解讀', '藍色');
}
else if(Message == 'B') {
MsgPlus.DisplayToast('Uno顏色解讀', '藍色');
}
if(Message == 'bk') {
MsgPlus.DisplayToast('Uno牌類解讀', '禁止');
}
else if(Message == 'Bk') {
MsgPlus.DisplayToast('Uno牌類解讀', '禁止');
}
else if(Message == 'bK') {
MsgPlus.DisplayToast('Uno牌類解讀', '禁止');
}
else if(Message == 'Bk') {
MsgPlus.DisplayToast('Uno牌類解讀', '禁止');
}
switch (Message){
case "wt cl?":
MsgPlus.CreateWnd("ChoicesWnd.xml","WndColor");
break;
}
}
(above was a part of my script, it includes some Chinese)
the bold words was the problem.
Anybody help me?
This post was edited on 12-09-2006 at 04:43 PM by Kutar.
|