New UI for panels
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 386 B |
|
After Width: | Height: | Size: 2.2 KiB |
@@ -204,7 +204,7 @@
|
||||
},
|
||||
box: {
|
||||
titleFont: big-font,
|
||||
background: box,
|
||||
background: panel,
|
||||
titleFontColor: white
|
||||
}
|
||||
},
|
||||
@@ -443,7 +443,7 @@
|
||||
imageUp: icon-close-white
|
||||
},
|
||||
close-panel: {
|
||||
imageUp: icon-close-white
|
||||
imageUp: icon-close-panel
|
||||
},
|
||||
trash-button: {
|
||||
imageDown: icon-trash-disabled,
|
||||
@@ -780,7 +780,6 @@
|
||||
com.kotcrab.vis.ui.widget.tabbedpane.TabbedPane$TabbedPaneStyle: {
|
||||
default: {
|
||||
draggable: false,
|
||||
background: menu-bg,
|
||||
separatorBar: list-selection,
|
||||
vertical: false,
|
||||
buttonStyle: {
|
||||
|
||||
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 142 KiB |
@@ -38,6 +38,8 @@ public class UIDraggablePanel extends H2DDialog {
|
||||
setModal(false);
|
||||
setStyle(VisUI.getSkin().get("box", WindowStyle.class));
|
||||
getTitleLabel().setAlignment(Align.left);
|
||||
padTop(26);
|
||||
padLeft(10);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -77,6 +77,6 @@ public class BootstrapViewCommand extends SimpleCommand {
|
||||
facade.registerMediator(new SandboxMediator());
|
||||
facade.registerMediator(new UIDropDownMenuMediator());
|
||||
|
||||
facade.registerMediator(new SaveDocumentDialogMediator());
|
||||
facade.registerMediator(new SaveProjectDialogMediator());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,11 +50,13 @@ public class UICollapsibleBox extends VisWindow {
|
||||
}
|
||||
});
|
||||
getTitleLabel().setAlignment(Align.left);
|
||||
getTitleTable().add(collapsibleButton).right();
|
||||
getTitleTable().add(collapsibleButton).right().padRight(5);
|
||||
add(mainTable).width(width).padBottom(4);
|
||||
|
||||
// by default all collapsible panels are not visible
|
||||
setVisible(false);
|
||||
padTop(26);
|
||||
padLeft(10);
|
||||
}
|
||||
|
||||
protected void createCollapsibleWidget(Table table) {
|
||||
|
||||
@@ -63,7 +63,7 @@ public class UIResourcesBox extends UICollapsibleBox {
|
||||
}
|
||||
});
|
||||
|
||||
contentTable.add(tabbedPane.getTable()).width(230);
|
||||
contentTable.add(tabbedPane.getTable()).width(230).padTop(8);
|
||||
contentTable.row();
|
||||
contentTable.add(tabContent).expandX().width(222);
|
||||
contentTable.row();
|
||||
|
||||
@@ -11,12 +11,12 @@ import games.rednblack.editor.renderer.data.SceneVO;
|
||||
import games.rednblack.editor.view.stage.Sandbox;
|
||||
import games.rednblack.h2d.common.H2DDialog;
|
||||
|
||||
public class SaveDocumentDialog extends H2DDialog {
|
||||
public class SaveProjectDialog extends H2DDialog {
|
||||
|
||||
private VisLabel messageLabel;
|
||||
|
||||
public SaveDocumentDialog() {
|
||||
super("Save Document");
|
||||
public SaveProjectDialog() {
|
||||
super("Save Project");
|
||||
|
||||
messageLabel = new VisLabel();
|
||||
getContentTable().pad(10);
|
||||
@@ -52,7 +52,7 @@ public class SaveDocumentDialog extends H2DDialog {
|
||||
cancelButton.addListener(new ClickListener() {
|
||||
@Override
|
||||
public void clicked(InputEvent event, float x, float y) {
|
||||
SaveDocumentDialog.this.close();
|
||||
SaveProjectDialog.this.close();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -10,12 +10,12 @@ import games.rednblack.editor.view.stage.Sandbox;
|
||||
import games.rednblack.editor.view.stage.UIStage;
|
||||
import games.rednblack.h2d.common.MsgAPI;
|
||||
|
||||
public class SaveDocumentDialogMediator extends SimpleMediator<SaveDocumentDialog> {
|
||||
private static final String TAG = SaveDocumentDialogMediator.class.getCanonicalName();
|
||||
public class SaveProjectDialogMediator extends SimpleMediator<SaveProjectDialog> {
|
||||
private static final String TAG = SaveProjectDialogMediator.class.getCanonicalName();
|
||||
private static final String NAME = TAG;
|
||||
|
||||
public SaveDocumentDialogMediator() {
|
||||
super(NAME, new SaveDocumentDialog());
|
||||
public SaveProjectDialogMediator() {
|
||||
super(NAME, new SaveProjectDialog());
|
||||
}
|
||||
|
||||
@Override
|
||||