preparing property dialog
This commit is contained in:
@@ -82,13 +82,21 @@ svg text{
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
background: yellow;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
h2{
|
||||
margin: 0 0 10px;
|
||||
text-align: center;
|
||||
background: #627fda;
|
||||
}
|
||||
|
||||
.closebtn{
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 10px;
|
||||
font-size: 30px;
|
||||
background: gray;
|
||||
background: red;
|
||||
color: white;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,5 +2,6 @@ Actions : Aktionen
|
||||
Added {} : {} hinzugefügt
|
||||
Add tile : Kachel hinzufügen
|
||||
Plan saved as "{}". : Plan als „{}“ gespeichert.
|
||||
Properties : Eigenschaften
|
||||
Save plan : Plan speichern
|
||||
Unknown action\: {} : Unbekannte Aktion: {}
|
||||
@@ -6,9 +6,15 @@ public class Window extends Tag{
|
||||
|
||||
private static final long serialVersionUID = 9035075889261889575L;
|
||||
|
||||
public Window(String id) {
|
||||
public Window(String id, String title) {
|
||||
super("div");
|
||||
id(id);
|
||||
new Tag("div").clazz("closebtn").attr("onclick", "$('#"+id+"').remove(); return false").content("×").addTo(this);
|
||||
new Tag("h2")
|
||||
.clazz("title")
|
||||
.content(title).addTo(this);
|
||||
new Tag("div")
|
||||
.clazz("closebtn")
|
||||
.attr("onclick", "$('#"+id+"').remove(); return false")
|
||||
.content("×").addTo(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,12 +58,12 @@ public abstract class Tile {
|
||||
return svg.toString();
|
||||
}
|
||||
|
||||
private String t(String txt, Object...fills) {
|
||||
private static String t(String txt, Object...fills) {
|
||||
return Translation.get(Application.class, txt, fills);
|
||||
}
|
||||
|
||||
public static Tag propMenu() {
|
||||
return new Window("tile-properties").content("Eigenschaften...");
|
||||
return new Window("tile-properties",t("Properties")).content(t("This tile has no properties"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user