Skip to content

Commit

Permalink
0.9.2 final
Browse files Browse the repository at this point in the history
  • Loading branch information
ZILtoid1991 committed Oct 24, 2017
1 parent f70429d commit 71d411c
Show file tree
Hide file tree
Showing 13 changed files with 997 additions and 171 deletions.
48 changes: 48 additions & 0 deletions pixelperfecteditor/src/PixelPerfectEditor/about.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module about;

import PixelPerfectEngine.concrete.window;
import PixelPerfectEngine.graphics.common;
import PixelPerfectEngine.system.systemUtility;

immutable wstring verInfo = "0.9.2"w;

public class AboutWindow : Window, ActionListener {
Label label1;
Label label2;
Label label3;
Label label4;
Label label5;
Label label6;
Label label7;
Button buttonClose;
this(){
super(Coordinate(0, 0, 305, 185), "About"w);
label1 = new Label("PixelPerfectEditor"w, "label1", Coordinate(5, 20, 320, 40));
label2 = new Label("Version: "w ~ verInfo, "label2", Coordinate(5, 40, 300, 60));
label3 = new Label("Build date: 2017.10.24"w, "label3", Coordinate(5, 60, 300, 80));
label4 = new Label("Engine ver.: "w ~ engineVer, "label4", Coordinate(5, 80, 300, 100));
label5 = new Label("SDL2 ver.: "w ~ sdlVer, "label5", Coordinate(5, 100, 300, 120));
label6 = new Label("System/OS: "w ~ osInfo, "label6", Coordinate(5, 120, 300, 140));
label7 = new Label("Rendering method: "w ~ renderInfo, "label7", Coordinate(5, 140, 300, 160));
buttonClose = new Button("Close"w, "buttonClose", Coordinate(231, 160, 300, 180));
buttonClose.al ~= this;
addElement(buttonClose, EventProperties.MOUSE);
addElement(label1, 0);
addElement(label2, 0);
addElement(label3, 0);
addElement(label4, 0);
addElement(label5, 0);
addElement(label6, 0);
addElement(label7, 0);
}
override public void actionEvent(Event event) {
switch(event.source){
case "buttonClose":
close();
break;
default:
break;
}
}

}
6 changes: 6 additions & 0 deletions pixelperfecteditor/src/PixelPerfectEditor/editor.d
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import PixelPerfectEngine.map.mapload;

import converterdialog;
import tileLayerTools;
import about;

public interface IEditor{
public void onExit();
Expand Down Expand Up @@ -308,6 +309,11 @@ public class EditorWindowHandler : WindowHandler, ElementContainer, ActionListen
case "xmpTool":
ie.xmpToolkit();
break;
case "about":
Window w = new AboutWindow();
addWindow(w);
w.relMove(30,30);
break;
default:
ie.passActionEvent(event);
break;
Expand Down
29 changes: 29 additions & 0 deletions pixelperfecteditor/src/PixelPerfectEditor/multiImportDialog.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
class NewWindow : Window {
Label label1;
TextBox bitmapID;
TextBox paletteID;
Label label2;
CheckBox chkBPal;
RadioButtonGroup radioButtonGroup1;
Button buttonOk;
Button buttonClose;
Label label3;
Label label4;
TextBox textBoxX;
TextBox textBoxY;
this(){
super(Coordinate(0, 0, 225, 270), "Import bitmap"w);
label1 = new Label("ID:"w, "label1", Coordinate(5, 22, 70, 40));
bitmapID = new TextBox(""w, "bitmapID", Coordinate(80, 20, 220, 40));
paletteID = new TextBox("default"w, "paletteID", Coordinate(80, 45, 220, 65));
label2 = new Label("Palette:"w, "label2", Coordinate(5, 47, 75, 65));
chkBPal = new CheckBox("Import palette from file"w, "chkBPal", Coordinate(5, 70, 220, 90));
radioButtonGroup1 = new RadioButtonGroup("Bitdepth"w, "radioButtonGroup1", Coordinate(5, 140, 220, 240),[ "option0"w, "option1"w, ], 16, 0);
buttonOk = new Button("Ok"w, "buttonOk", Coordinate(145, 245, 220, 265));
buttonClose = new Button("Close"w, "buttonClose", Coordinate(65, 245, 135, 265));
label3 = new Label("sizeX:"w, "label3", Coordinate(5, 92, 74, 110));
label4 = new Label("sizeY:"w, "label4", Coordinate(5, 117, 73, 135));
textBoxX = new TextBox(""w, "textBox3", Coordinate(80, 90, 220, 110));
textBoxY = new TextBox(""w, "textBox4", Coordinate(80, 115, 220, 135));
}
}
31 changes: 31 additions & 0 deletions pixelperfecteditor/src/PixelPerfectEditor/newConverterDialog.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module importDialog;

import PixelPerfectEngine.concrete.window;
import PixelPerfectEngine.graphics.common;


public class ImportDialog : Window, ActionListener {
Label label1;
TextBox bitmapID;
TextBox paletteID;
Label label2;
CheckBox chkBPal;
RadioButtonGroup radioButtonGroup1;
Button buttonOk;
Button buttonClose;
this(){
super(Coordinate(0, 0, 225, 225), "Import bitmap"w);
label1 = new Label("ID:"w, "label1", Coordinate(5, 22, 70, 40));
bitmapID = new TextBox(""w, "bitmapID", Coordinate(80, 20, 220, 40));
paletteID = new TextBox("default"w, "paletteID", Coordinate(80, 45, 220, 65));
label2 = new Label("Palette:"w, "label2", Coordinate(5, 47, 75, 65));
chkBPal = new CheckBox("Import palette from file"w, "chkBPal", Coordinate(5, 70, 220, 90));
radioButtonGroup1 = new RadioButtonGroup("radioButtonGroup1"w, "radioButtonGroup1", Coordinate(5, 95, 220, 195),[ "option0"w, "option1"w], 16, 0);
buttonOk = new Button("Ok"w, "buttonOk", Coordinate(145, 200, 220, 220));
buttonClose = new Button("Close"w, "buttonClose", Coordinate(65, 200, 135, 220));
}
override public void actionEvent(Event event) {

}

}
Loading

0 comments on commit 71d411c

Please sign in to comment.