[client] update haxework
This commit is contained in:
@@ -2,7 +2,7 @@ package ru.m.tankz.editor;
|
||||
|
||||
import flash.events.MouseEvent;
|
||||
import haxework.color.Color;
|
||||
import haxework.gui.ImageView;
|
||||
import haxework.view.ImageView;
|
||||
import haxework.signal.Signal;
|
||||
import openfl.Assets;
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
package ru.m.tankz.editor;
|
||||
|
||||
import haxework.gui.IGroupView;
|
||||
import haxework.gui.ToggleButtonView;
|
||||
import haxework.gui.IView;
|
||||
import haxework.view.IGroupView;
|
||||
import haxework.view.ToggleButtonView;
|
||||
import haxework.view.IView;
|
||||
import ru.m.tankz.editor.frame.LevelFrame;
|
||||
import ru.m.tankz.bundle.LevelBundle;
|
||||
import ru.m.tankz.bundle.ILevelBundle;
|
||||
import ru.m.tankz.bundle.ConfigBundle;
|
||||
import ru.m.tankz.bundle.IConfigBundle;
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.frame.FrameSwitcher;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.gui.Root;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.frame.FrameSwitcher;
|
||||
import haxework.view.VGroupView;
|
||||
import haxework.view.Root;
|
||||
import haxework.log.TraceLogger;
|
||||
import haxework.provider.Provider;
|
||||
import haxework.resources.IResources;
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
---
|
||||
$type: haxework.gui.VGroupView
|
||||
$type: haxework.view.VGroupView
|
||||
skinId: dark
|
||||
geometry.size.stretch: true
|
||||
layout.hAlign: center
|
||||
views:
|
||||
# Tabs
|
||||
- id: tabs
|
||||
$type: haxework.gui.HGroupView
|
||||
$type: haxework.view.HGroupView
|
||||
geometry.margin.bottom: -2
|
||||
views:
|
||||
- id: level
|
||||
$type: haxework.gui.ToggleButtonView
|
||||
$type: haxework.view.ToggleButtonView
|
||||
skinId: button.tab
|
||||
text: Level
|
||||
+onPress: $this:onPress
|
||||
- id: tank
|
||||
$type: haxework.gui.ToggleButtonView
|
||||
$type: haxework.view.ToggleButtonView
|
||||
skinId: button.tab
|
||||
text: Tank
|
||||
+onPress: $this:onPress
|
||||
# Switcher
|
||||
- id: switcher
|
||||
$type: haxework.gui.frame.FrameSwitcher
|
||||
$type: haxework.view.frame.FrameSwitcher
|
||||
skinId: border
|
||||
+onSwitch: $this:onFrameSwitch
|
||||
geometry.size.stretch: true
|
||||
@@ -32,7 +32,7 @@ views:
|
||||
- id: tank
|
||||
$type: ru.m.tankz.editor.frame.TankFrame
|
||||
# Version
|
||||
- $type: haxework.gui.LabelView
|
||||
- $type: haxework.view.LabelView
|
||||
skinId: text
|
||||
geometry.position: absolute
|
||||
geometry.vAlign: top
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package ru.m.tankz.editor.frame;
|
||||
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.DataView;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.DataView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.VGroupView;
|
||||
import haxework.provider.Provider;
|
||||
import ru.m.tankz.bundle.IConfigBundle;
|
||||
import ru.m.tankz.config.Config;
|
||||
|
||||
@@ -1,54 +1,54 @@
|
||||
---
|
||||
$type: haxework.gui.VGroupView
|
||||
$type: haxework.view.VGroupView
|
||||
geometry.size.stretch: true
|
||||
layout.margin: 2
|
||||
layout.vAlign: top
|
||||
layout.hAlign: center
|
||||
views:
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
views:
|
||||
- id: gameClassicButton
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button.simple
|
||||
text: Classic
|
||||
+onPress: $this:onPress
|
||||
- id: gameDotaButton
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button.simple
|
||||
text: DotA
|
||||
+onPress: $this:onPress
|
||||
- id: fileNameLabel
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
# map
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
views:
|
||||
- id: spawnPointList
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
geometry.padding: 3
|
||||
layout:
|
||||
$type: haxework.gui.layout.VerticalLayout
|
||||
$type: haxework.view.layout.VerticalLayout
|
||||
hAlign: center
|
||||
margin: 5
|
||||
factory: $code:ru.m.tankz.editor.level.SpawnPointView.factory
|
||||
- id: mapView
|
||||
$type: ru.m.tankz.editor.level.MapEditView
|
||||
- id: brickList
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
geometry.padding: 3
|
||||
layout:
|
||||
$type: haxework.gui.layout.VerticalLayout
|
||||
$type: haxework.view.layout.VerticalLayout
|
||||
hAlign: center
|
||||
margin: 5
|
||||
factory: $code:ru.m.tankz.editor.level.BrickView.factory
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
views:
|
||||
- id: openButton
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button.simple
|
||||
text: Open
|
||||
+onPress: $this:onPress
|
||||
- id: saveButton
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button.simple
|
||||
text: Save
|
||||
+onPress: $this:onPress
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package ru.m.tankz.editor.frame;
|
||||
|
||||
import ru.m.tankz.editor.tank.TankView;
|
||||
import haxework.gui.IGroupView;
|
||||
import haxework.view.IGroupView;
|
||||
import haxework.color.Color;
|
||||
import haxework.gui.InputView;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.view.InputView;
|
||||
import haxework.view.VGroupView;
|
||||
|
||||
@:template class TankFrame extends VGroupView {
|
||||
public static inline var ID = 'tank';
|
||||
|
||||
@@ -5,9 +5,9 @@ layout.hAlign: center
|
||||
layout.margin: 10
|
||||
views:
|
||||
- id: tanks
|
||||
$type: haxework.gui.GroupView
|
||||
$type: haxework.view.GroupView
|
||||
layout:
|
||||
$type: haxework.gui.layout.TailLayout
|
||||
$type: haxework.view.layout.TailLayout
|
||||
rowSize: 4
|
||||
margin: 20
|
||||
views:
|
||||
@@ -28,7 +28,7 @@ views:
|
||||
- $type: ru.m.tankz.editor.tank.TankView
|
||||
image: "$asset:image:resources/image/tank/bd-0.png"
|
||||
- id: color
|
||||
$type: haxework.gui.InputView
|
||||
$type: haxework.view.InputView
|
||||
skinId: text.box
|
||||
+onChange: $code:function(value) color = value
|
||||
geometry.size.width: 120
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ru.m.tankz.editor.level;
|
||||
|
||||
import flash.display.Shape;
|
||||
import haxework.gui.ImageView;
|
||||
import haxework.view.ImageView;
|
||||
import openfl.utils.Assets;
|
||||
|
||||
class BrushView<D> extends ImageView {
|
||||
|
||||
@@ -5,7 +5,7 @@ import flash.display.DisplayObjectContainer;
|
||||
import flash.display.Graphics;
|
||||
import flash.display.Sprite;
|
||||
import flash.events.MouseEvent;
|
||||
import haxework.gui.SpriteView;
|
||||
import haxework.view.SpriteView;
|
||||
import ru.m.geom.Point;
|
||||
import ru.m.geom.Rectangle;
|
||||
import ru.m.tankz.config.Config;
|
||||
|
||||
@@ -3,8 +3,8 @@ package ru.m.tankz.editor.tank;
|
||||
import flash.display.Bitmap;
|
||||
import flash.display.BitmapData;
|
||||
import haxework.color.Color;
|
||||
import haxework.gui.utils.BitmapUtil;
|
||||
import haxework.gui.View;
|
||||
import haxework.view.utils.BitmapUtil;
|
||||
import haxework.view.View;
|
||||
|
||||
class TankView extends View<Bitmap> {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user