-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f70429d
commit 71d411c
Showing
13 changed files
with
997 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
pixelperfecteditor/src/PixelPerfectEditor/multiImportDialog.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
31
pixelperfecteditor/src/PixelPerfectEditor/newConverterDialog.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.