[editor] update

This commit is contained in:
2019-09-10 19:47:35 +03:00
parent 2565b6017a
commit bab588e6fb
3 changed files with 6 additions and 6 deletions

View File

@@ -14,9 +14,6 @@ views:
+onItemSelect: ~onLevelSelect
scroll:
$type: haxework.view.list.VScrollBarView
- $type: haxework.view.form.ButtonView
text: +
+onPress: ~addLevel()
- $type: haxework.view.group.VGroupView
geometry.stretch: true
views:
@@ -87,11 +84,14 @@ views:
style: panel
layout.margin: 10
views:
- $type: haxework.view.SpriteView
geometry.width: 100%
- $type: haxework.view.form.ButtonView
text: Add
+onPress: ~addLevel()
- $type: haxework.view.form.ButtonView
text: Remove
+onPress: ~removeLevel()
- $type: haxework.view.SpriteView
geometry.width: 100%
- $type: haxework.view.form.ButtonView
text: Save
+onPress: ~save()

View File

@@ -25,7 +25,7 @@ class BrushView<D> extends ImageView {
override public function update():Void {
super.update();
selectView.graphics.clear();
selectView.graphics.lineStyle(4, 0x33ff00);
selectView.graphics.lineStyle(4, theme.colors.active);
selectView.graphics.drawRect(0, 0, width, height);
selectView.graphics.lineStyle();
}