Browse Source

Fixed bug in fullscreenplayer, renamed animationfileextension to .cube

Max Nuding 12 years ago
parent
commit
db78ce29e3
3 changed files with 247 additions and 3 deletions
  1. 5
    3
      CubeControl/Frame.java
  2. 0
    0
      Example.cube
  3. 242
    0
      SAP.cube

+ 5
- 3
CubeControl/Frame.java View File

@@ -601,11 +601,12 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
601 601
 				} else {
602 602
 					for (int i = 0; i < frameList.getModel().getSize(); i++){
603 603
 						frameList.setSelectedIndex(i);
604
-						short time1 = worker.getAnimation(animList.getSelectedIndex()).getFrame(frameList.getSelectedIndex()).getTime();
605
-						long time = (long) (((time1+1) * 1/24) * 1000);
604
+						long time1 = (long) worker.getAnimation(animList.getSelectedIndex()).getFrame(frameList.getSelectedIndex()).getTime();
605
+						long time = (long) (((time1+1) * 1000) / 24);
606
+						System.out.println("Wert: " + time1 + " Zeit: " + time);
606 607
 						try {
607 608
 							Thread.sleep(time);
608
-						} catch(Exception e) {
609
+						} catch (Exception e) {
609 610
 							System.out.println(e);
610 611
 						}
611 612
 					} 
@@ -613,6 +614,7 @@ public class Frame extends JFrame implements ListSelectionListener, ChangeListen
613 614
 			}
614 615
 		});
615 616
 	
617
+	
616 618
 		frameDuration.setBounds(462, 129, 65, 20);
617 619
 		frameDuration.setText("Save");
618 620
 		cp.add(frameDuration);

Example.txt → Example.cube View File


+ 242
- 0
SAP.cube View File

@@ -0,0 +1,242 @@
1
+24
2
+SAP
3
+S01
4
+0000000000000000
5
+0000000000000000
6
+0000000000000000
7
+0000000000000000
8
+0000000000000000
9
+0000000000000000
10
+0000000000000000
11
+ff010101ff8080ff
12
+05
13
+S02
14
+0000000000000000
15
+0000000000000000
16
+0000000000000000
17
+0000000000000000
18
+0000000000000000
19
+0000000000000000
20
+ff010101ff8080ff
21
+0000000000000000
22
+05
23
+S03
24
+0000000000000000
25
+0000000000000000
26
+0000000000000000
27
+0000000000000000
28
+0000000000000000
29
+ff010101ff8080ff
30
+0000000000000000
31
+0000000000000000
32
+05
33
+S04
34
+0000000000000000
35
+0000000000000000
36
+0000000000000000
37
+0000000000000000
38
+ff010101ff8080ff
39
+0000000000000000
40
+0000000000000000
41
+0000000000000000
42
+05
43
+S05
44
+0000000000000000
45
+0000000000000000
46
+0000000000000000
47
+ff010101ff8080ff
48
+0000000000000000
49
+0000000000000000
50
+0000000000000000
51
+0000000000000000
52
+05
53
+S06
54
+0000000000000000
55
+0000000000000000
56
+ff010101ff8080ff
57
+0000000000000000
58
+0000000000000000
59
+0000000000000000
60
+0000000000000000
61
+0000000000000000
62
+05
63
+S07
64
+0000000000000000
65
+ff010101ff8080ff
66
+0000000000000000
67
+0000000000000000
68
+0000000000000000
69
+0000000000000000
70
+0000000000000000
71
+0000000000000000
72
+05
73
+S08
74
+ff010101ff8080ff
75
+0000000000000000
76
+0000000000000000
77
+0000000000000000
78
+0000000000000000
79
+0000000000000000
80
+0000000000000000
81
+0000000000000000
82
+05
83
+A01
84
+0000000000000000
85
+0000000000000000
86
+0000000000000000
87
+0000000000000000
88
+0000000000000000
89
+0000000000000000
90
+0000000000000000
91
+7e818181ff818181
92
+05
93
+A02
94
+0000000000000000
95
+0000000000000000
96
+0000000000000000
97
+0000000000000000
98
+0000000000000000
99
+0000000000000000
100
+7e818181ff818181
101
+0000000000000000
102
+05
103
+A03
104
+0000000000000000
105
+0000000000000000
106
+0000000000000000
107
+0000000000000000
108
+0000000000000000
109
+7e818181ff818181
110
+0000000000000000
111
+0000000000000000
112
+05
113
+A04
114
+0000000000000000
115
+0000000000000000
116
+0000000000000000
117
+0000000000000000
118
+7e818181ff818181
119
+0000000000000000
120
+0000000000000000
121
+0000000000000000
122
+05
123
+A05
124
+0000000000000000
125
+0000000000000000
126
+0000000000000000
127
+7e818181ff818181
128
+0000000000000000
129
+0000000000000000
130
+0000000000000000
131
+0000000000000000
132
+05
133
+A06
134
+0000000000000000
135
+0000000000000000
136
+7e818181ff818181
137
+0000000000000000
138
+0000000000000000
139
+0000000000000000
140
+0000000000000000
141
+0000000000000000
142
+05
143
+A07
144
+0000000000000000
145
+7e818181ff818181
146
+0000000000000000
147
+0000000000000000
148
+0000000000000000
149
+0000000000000000
150
+0000000000000000
151
+0000000000000000
152
+05
153
+A08
154
+7e818181ff818181
155
+0000000000000000
156
+0000000000000000
157
+0000000000000000
158
+0000000000000000
159
+0000000000000000
160
+0000000000000000
161
+0000000000000000
162
+05
163
+P01
164
+0000000000000000
165
+0000000000000000
166
+0000000000000000
167
+0000000000000000
168
+0000000000000000
169
+0000000000000000
170
+0000000000000000
171
+1e2222221e020202
172
+05
173
+P02
174
+0000000000000000
175
+0000000000000000
176
+0000000000000000
177
+0000000000000000
178
+0000000000000000
179
+0000000000000000
180
+1e2222221e020202
181
+0000000000000000
182
+05
183
+P03
184
+0000000000000000
185
+0000000000000000
186
+0000000000000000
187
+0000000000000000
188
+0000000000000000
189
+1e2222221e020202
190
+0000000000000000
191
+0000000000000000
192
+05
193
+P04
194
+0000000000000000
195
+0000000000000000
196
+0000000000000000
197
+0000000000000000
198
+1e2222221e020202
199
+0000000000000000
200
+0000000000000000
201
+0000000000000000
202
+05
203
+P05
204
+0000000000000000
205
+0000000000000000
206
+0000000000000000
207
+1e2222221e020202
208
+0000000000000000
209
+0000000000000000
210
+0000000000000000
211
+0000000000000000
212
+05
213
+P06
214
+0000000000000000
215
+0000000000000000
216
+1e2222221e020202
217
+0000000000000000
218
+0000000000000000
219
+0000000000000000
220
+0000000000000000
221
+0000000000000000
222
+05
223
+P07
224
+0000000000000000
225
+1e2222221e020202
226
+0000000000000000
227
+0000000000000000
228
+0000000000000000
229
+0000000000000000
230
+0000000000000000
231
+0000000000000000
232
+05
233
+P08
234
+1e2222221e020202
235
+0000000000000000
236
+0000000000000000
237
+0000000000000000
238
+0000000000000000
239
+0000000000000000
240
+0000000000000000
241
+0000000000000000
242
+05

Loading…
Cancel
Save