• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision75adbe88d590e326807ed7f3203d3e77f0a9c39d (tree)
Zeit2012-09-12 23:21:59
Autorh2so5 <h2so5@git....>
Commiterh2so5

Log Message

Merge branch 'master' of git.sourceforge.jp:/gitroot/mmo/main

Ändern Zusammenfassung

Diff

--- /dev/null
+++ b/client/bin/cards/modellist/main.js
@@ -0,0 +1,39 @@
1+
2+/***MetaData***
3+
4+{
5+ "name": "モデルリスト",
6+ "icon": "icon.png",
7+ "api_version": 1
8+}
9+
10+***MetaData***/
11+
12+var list;
13+list = new UI.List({
14+ docking: UI.DOCKING_TOP | UI.DOCKING_LEFT | UI.DOCKING_RIGHT | UI.DOCKING_BOTTOM
15+});
16+
17+var even_line = false;
18+var model_names = Model.all();
19+for (var i = 0; i < model_names.length; i++) {
20+ if ((/char:/).test(model_names[i])) {
21+ (function(model_name){
22+ list.addItem(
23+ new UI.Label({
24+ docking: UI.DOCKING_TOP | UI.DOCKING_LEFT | UI.DOCKING_RIGHT,
25+ text: model_name,
26+ bgcolor: ((even_line = !even_line) ? "#EEAFEECC" : "#FFFFFFCC"),
27+ onclick: function() {
28+ Account.updateModelName(model_name)
29+ }
30+ })
31+ );
32+ })(model_names[i])
33+ }
34+}
35+
36+Card.board.width = 240;
37+Card.board.height = 120;
38+Card.board.docking = UI.DOCKING_BOTTOM | UI.DOCKING_RIGHT
39+Card.board.addChild(list);
\ No newline at end of file
--- a/client/bin/cards/textchat/main.js
+++ b/client/bin/cards/textchat/main.js
@@ -31,7 +31,7 @@ Network.onReceive = function (info, msg) {
3131 list.addItem(
3232 new UI.Label({
3333 docking: UI.DOCKING_TOP | UI.DOCKING_LEFT | UI.DOCKING_RIGHT,
34- text: "[ private:" + info.player.name() + "] " + msg.body,
34+ text: "[private:" + info.player.name() + "] " + msg.body,
3535 bgcolor: ((even_line = !even_line) ? "#add8e6CC" : "#87ceebCC")
3636 })
3737 );
@@ -128,7 +128,7 @@ InputBox.onEnter = function (text) {
128128 args.trim();
129129 var tok = args.split(" ");
130130 var msgObject = {
131- prvate: token[0],
131+ prvate: tok[0],
132132 body: tok[1]
133133 };
134134 Network.sendAll(msgObject);