pictcode / app / webroot / js / pictcode / coding_images.js @ 9af585b9
履歴 | 表示 | アノテート | ダウンロード (3.124 KB)
1 |
define(['image_loader'], function(imageLoader){ |
---|---|
2 |
|
3 |
// var imageURLs = {
|
4 |
// dummy: "image/ui/001_UI_block_parameter_000",",
|
5 |
// category_movement: "image/icon/category_movement",",
|
6 |
// category_branch: "image/icon/category_branch",",
|
7 |
// category_data: "image/icon/category_data",",
|
8 |
// category_function: "image/icon/category_function",",
|
9 |
// category_game_control: "image/icon/category_game_control",",
|
10 |
// category_loop: "image/icon/category_loop",",
|
11 |
// category_sound: "image/icon/category_sound",",
|
12 |
// category_time_control: "image/icon/category_time_control",",
|
13 |
// cvsBg: "image/background/001_UI_bg_bg_020",",
|
14 |
// cvsGrid: "image/background/001_UI_bg_grid_010",",
|
15 |
// cvsArrow: "image/icon/arrow",",
|
16 |
// cvsNob1: "image/ui/nob1",",
|
17 |
// cvsNob2: "image/ui/nob2",",
|
18 |
// cvsBar: "image/ui/bar",",
|
19 |
// dummyImage: "image/sprite/ui/001_UI_block_parameter_000",",
|
20 |
// movementBase: "image/block/movement_base",",
|
21 |
// move: "image/block/01_Motion_Move_Up",",
|
22 |
// directionIcon: "image/block/001_block_icon_motion_020",",
|
23 |
// durationIcon: "image/icon/001_block_icon_time_030",",
|
24 |
// rotation: "image/block/01_Motion_Rolling_Right",",
|
25 |
// zoom: "image/block/01_Motion_Zoom_Tele",",
|
26 |
// sound: "image/block/01_Sound",",
|
27 |
// start_function: "image/block/01_Function_Start",",
|
28 |
// return_function: "image/block/01_Function_Return",",
|
29 |
// return_function_icon: "image/icon/return_function",",
|
30 |
// stop_time: "image/block/01_Time_Stop",",
|
31 |
// stop_time_icon: "image/icon/stop_time",",
|
32 |
// }
|
33 |
|
34 |
var images;
|
35 |
|
36 |
var imageNames = {
|
37 |
"bg_btn_001",
|
38 |
"bg_footer_001",
|
39 |
"bg_grid_001",
|
40 |
"bg_header_001",
|
41 |
"bg_main_001",
|
42 |
"bg_modal_001",
|
43 |
"bg_sorter_001",
|
44 |
"bg_sorter_002",
|
45 |
"blk_branch_001",
|
46 |
"blk_branch_002",
|
47 |
"blk_branch_003",
|
48 |
"blk_branch_004",
|
49 |
"blk_branch_005",
|
50 |
"blk_branch_006",
|
51 |
"blk_function_001",
|
52 |
"blk_functoin_002",
|
53 |
"blk_gmctrl_001",
|
54 |
"blk_gmctrl_002",
|
55 |
"blk_motion_001",
|
56 |
"blk_motion_002",
|
57 |
"blk_motion_003",
|
58 |
"blk_motion_004",
|
59 |
"blk_motion_005",
|
60 |
"blk_sound_001",
|
61 |
"blk_sound_002",
|
62 |
"blk_timectrl_001",
|
63 |
"blk_timectrl_002",
|
64 |
"block_sound",
|
65 |
"btn_header_001",
|
66 |
"btn_header_002",
|
67 |
"btn_header_003",
|
68 |
"btn_header_004",
|
69 |
"btn_header_005",
|
70 |
"btn_header_006",
|
71 |
"btn_header_007",
|
72 |
"btn_header_008",
|
73 |
"btn_header_009",
|
74 |
"btn_header_010",
|
75 |
"btn_headr_011",
|
76 |
"btn_play_001",
|
77 |
"btn_play_002",
|
78 |
"btn_play_003",
|
79 |
"btn_ui_001",
|
80 |
"btn_ui_002",
|
81 |
"btn_ui_003",
|
82 |
"btn_ui_004",
|
83 |
"ctgry_blk_001",
|
84 |
"ctgry_blk_002",
|
85 |
"ctgry_blk_003",
|
86 |
"ctgry_blk_004",
|
87 |
"ctgry_blk_005",
|
88 |
"ctgry_blk_006",
|
89 |
"ctgry_blk_007",
|
90 |
"ctgry_blk_008",
|
91 |
"ctgry_spr_001",
|
92 |
"ctgry_spr_002",
|
93 |
"ctgry_spr_003",
|
94 |
"ctgry_spr_004",
|
95 |
"icon_blk_001",
|
96 |
"icon_blk_002",
|
97 |
"icon_blk_003",
|
98 |
"input_scalar_001",
|
99 |
"input_scalar_002",
|
100 |
"input_scalar_003",
|
101 |
"input_vector_001",
|
102 |
"input_vector_002",
|
103 |
}; |
104 |
imageLoader.loadImages(imageNames, "ui", didLoadAllImages);
|
105 |
|
106 |
function didLoadAllImages(loadedImages){ |
107 |
images = loadedImages; |
108 |
} |
109 |
|
110 |
return {
|
111 |
images:images
|
112 |
}; |
113 |
}); |