Revision | aaf2728c83999ee3c15d58111ecd7d9eefed9fcf (tree) |
---|---|
Time | 2012-09-09 00:16:57 |
Author | h2so5 <h2so5@git....> |
Commiter | h2so5 |
modellistを削除
ログイン、ログアウト時に下までスクロールしていなかった問題を修正
@@ -1,39 +0,0 @@ | ||
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_TOP | UI.DOCKING_RIGHT | |
39 | -Card.board.addChild(list); | |
\ No newline at end of file |
@@ -55,6 +55,7 @@ Player.onLogin = function(player) { | ||
55 | 55 | width: 0 |
56 | 56 | }) |
57 | 57 | ); |
58 | + list.scroll_y = 999999; | |
58 | 59 | } |
59 | 60 | |
60 | 61 | Player.onLogout = function(player) { |
@@ -66,6 +67,7 @@ Player.onLogout = function(player) { | ||
66 | 67 | width: 0 |
67 | 68 | }) |
68 | 69 | ); |
70 | + list.scroll_y = 999999; | |
69 | 71 | } |
70 | 72 | |
71 | 73 | // チャットメッセージ送信 |