Revision | 75adbe88d590e326807ed7f3203d3e77f0a9c39d (tree) |
---|---|
Zeit | 2012-09-12 23:21:59 |
Autor | h2so5 <h2so5@git....> |
Commiter | h2so5 |
Merge branch 'master' of git.sourceforge.jp:/gitroot/mmo/main
@@ -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 |
@@ -31,7 +31,7 @@ Network.onReceive = function (info, msg) { | ||
31 | 31 | list.addItem( |
32 | 32 | new UI.Label({ |
33 | 33 | 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, | |
35 | 35 | bgcolor: ((even_line = !even_line) ? "#add8e6CC" : "#87ceebCC") |
36 | 36 | }) |
37 | 37 | ); |
@@ -128,7 +128,7 @@ InputBox.onEnter = function (text) { | ||
128 | 128 | args.trim(); |
129 | 129 | var tok = args.split(" "); |
130 | 130 | var msgObject = { |
131 | - prvate: token[0], | |
131 | + prvate: tok[0], | |
132 | 132 | body: tok[1] |
133 | 133 | }; |
134 | 134 | Network.sendAll(msgObject); |