AS3: New P-code editing syntax inspired by RABCDAsm.

AS3: Multiname and namespace editing.
AS3: Editing whole trait in one textarea
AS3: Removed messages about adding new constants
AS3: Modified colors in editor
AS3: Highlighting pair parenthesis/bracket
AS3: Editing various new P-code parameters
This commit is contained in:
Jindra Petk
2013-09-14 18:57:08 +02:00
parent 71d3ba4425
commit c777e82980
76 changed files with 4592 additions and 1054 deletions

View File

@@ -105,7 +105,7 @@ public class ImagePanel extends JPanel implements ActionListener, FlashDisplay {
}
public void setDrawable(final DrawableTag drawable, final SWF swf, final HashMap<Integer, CharacterTag> characters, int frameRate) {
pause();
pause();
this.drawable = drawable;
this.swf = swf;
this.characters = characters;
@@ -139,11 +139,11 @@ public class ImagePanel extends JPanel implements ActionListener, FlashDisplay {
if (drawable == null) {
return 0;
}
int ret=(int)Math.ceil(percent * drawable.getNumFrames() / 100.0);
if(ret==0){
int ret = (int) Math.ceil(percent * drawable.getNumFrames() / 100.0);
if (ret == 0) {
ret = 1;
}
return ret;
return ret;
}
@Override
@@ -163,7 +163,7 @@ public class ImagePanel extends JPanel implements ActionListener, FlashDisplay {
}
private void drawFrame() {
if(drawable == null){
if (drawable == null) {
return;
}
int nframe = percent * drawable.getNumFrames() / 100;
@@ -210,9 +210,9 @@ public class ImagePanel extends JPanel implements ActionListener, FlashDisplay {
@Override
public void gotoFrame(int frame) {
if(drawable==null){
if (drawable == null) {
percent = 0;
}else{
} else {
percent = frame * 100 / drawable.getNumFrames();
}
drawFrame();