[client] update haxework
This commit is contained in:
@@ -2,9 +2,9 @@ package ru.m.skin;
|
||||
|
||||
import haxework.color.ColorUtil;
|
||||
import haxework.color.Color;
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.view.ButtonView;
|
||||
import format.SVG;
|
||||
import haxework.gui.skin.ISkin;
|
||||
import haxework.view.skin.ISkin;
|
||||
|
||||
class ButtonSVGSkin implements ISkin<ButtonView> {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package ru.m.tankz;
|
||||
import ru.m.tankz.view.ClientView;
|
||||
import flash.Lib;
|
||||
import haxework.animate.Animate;
|
||||
import haxework.gui.Root;
|
||||
import haxework.view.Root;
|
||||
import haxework.log.TraceLogger;
|
||||
#if flash import haxework.log.JSLogger; #end
|
||||
#if debug import haxework.log.SocketLogger; #end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package ru.m.tankz;
|
||||
|
||||
import haxework.gui.popup.PopupManager;
|
||||
import haxework.view.popup.PopupManager;
|
||||
import ru.m.tankz.storage.SettingsStorage;
|
||||
import haxework.provider.Provider;
|
||||
import haxework.resources.IResources;
|
||||
|
||||
@@ -3,13 +3,13 @@ package ru.m.tankz;
|
||||
import flash.text.Font;
|
||||
import flash.text.FontType;
|
||||
import haxework.color.ColorUtil;
|
||||
import haxework.gui.core.Geometry;
|
||||
import haxework.gui.core.HAlign;
|
||||
import haxework.gui.core.VAlign;
|
||||
import haxework.gui.ITextView;
|
||||
import haxework.gui.layout.Layout;
|
||||
import haxework.gui.skin.ISkin;
|
||||
import haxework.gui.skin.Skin;
|
||||
import haxework.view.core.Geometry;
|
||||
import haxework.view.core.HAlign;
|
||||
import haxework.view.core.VAlign;
|
||||
import haxework.view.ITextView;
|
||||
import haxework.view.layout.Layout;
|
||||
import haxework.view.skin.ISkin;
|
||||
import haxework.view.skin.Skin;
|
||||
import haxework.resources.IResources;
|
||||
import openfl.Assets;
|
||||
import ru.m.skin.ButtonSVGSkin;
|
||||
@@ -57,7 +57,7 @@ class Style {
|
||||
Skin.text(textColor, baseFontSize, fontFamily, fontEmbed),
|
||||
]);
|
||||
resources.skin.put("scroll.vertical", [
|
||||
haxework.gui.skin.Skin.scrollVertical(lightColor, darkColor),
|
||||
haxework.view.skin.Skin.scrollVertical(lightColor, darkColor),
|
||||
]);
|
||||
resources.skin.put("text.header", [
|
||||
Skin.color(0x000000, 0.1),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package ru.m.tankz.render;
|
||||
|
||||
import haxework.gui.utils.BitmapUtil;
|
||||
import haxework.view.utils.BitmapUtil;
|
||||
import haxework.color.Color;
|
||||
import flash.display.BitmapData;
|
||||
import openfl.Assets;
|
||||
|
||||
@@ -7,7 +7,7 @@ import flash.display.Sprite;
|
||||
import flash.text.TextField;
|
||||
import flash.text.TextFormat;
|
||||
import haxe.Timer;
|
||||
import haxework.gui.SpriteView;
|
||||
import haxework.view.SpriteView;
|
||||
import haxework.provider.Provider;
|
||||
import haxework.resources.IResources;
|
||||
import ru.m.animate.Animate;
|
||||
|
||||
@@ -3,7 +3,7 @@ package ru.m.tankz.view;
|
||||
import flash.events.KeyboardEvent;
|
||||
import flash.text.Font;
|
||||
import flash.ui.Keyboard;
|
||||
import haxework.gui.frame.FrameSwitcher;
|
||||
import haxework.view.frame.FrameSwitcher;
|
||||
import haxework.resources.IResources;
|
||||
|
||||
@:template class ClientView extends FrameSwitcher {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
$type: haxework.gui.frame.FrameSwitcher
|
||||
$type: haxework.view.frame.FrameSwitcher
|
||||
geometry.size.stretch: true
|
||||
skinId: dark
|
||||
views:
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package ru.m.tankz.view;
|
||||
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.frame.IFrameSwitcher;
|
||||
import haxework.gui.IGroupView;
|
||||
import haxework.gui.InputView;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.list.ListView;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.frame.IFrameSwitcher;
|
||||
import haxework.view.IGroupView;
|
||||
import haxework.view.InputView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.list.ListView;
|
||||
import haxework.view.VGroupView;
|
||||
import haxework.provider.Provider;
|
||||
import ru.m.tankz.game.GameState;
|
||||
import ru.m.tankz.network.NetworkManager;
|
||||
|
||||
@@ -3,88 +3,88 @@ pWidth: 100
|
||||
pHeight: 100
|
||||
views:
|
||||
- id: frameSwitcher
|
||||
$type: haxework.gui.frame.FrameSwitcher
|
||||
$type: haxework.view.frame.FrameSwitcher
|
||||
pWidth: 100
|
||||
pHeight: 100
|
||||
views:
|
||||
# login
|
||||
- id: loginFrame
|
||||
$type: haxework.gui.VGroupView
|
||||
$type: haxework.view.VGroupView
|
||||
pWidth: 100
|
||||
pHeight: 100
|
||||
views:
|
||||
- id: stateLabel
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
$style: label
|
||||
text: offline
|
||||
width: 200
|
||||
height: 50
|
||||
- id: nameInput
|
||||
$type: haxework.gui.InputView
|
||||
$type: haxework.view.InputView
|
||||
$style: label
|
||||
width: 200
|
||||
height: 50
|
||||
text: User
|
||||
skin:
|
||||
$type: haxework.gui.skin.ColorSkin
|
||||
$type: haxework.view.skin.ColorSkin
|
||||
color: '#444444'
|
||||
- id: loginButton
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
$style: button
|
||||
text: Login
|
||||
# game list
|
||||
- id: gameListFrame
|
||||
$type: haxework.gui.VGroupView
|
||||
$type: haxework.view.VGroupView
|
||||
pWidth: 100
|
||||
pHeight: 100
|
||||
views:
|
||||
- id: createGameButton
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
$style: button
|
||||
text: Create
|
||||
- id: gameList
|
||||
$type: haxework.gui.list.VListView<ru.m.tankz.proto.core.GameInfoProto>
|
||||
$type: haxework.view.list.VListView<ru.m.tankz.proto.core.GameInfoProto>
|
||||
factory: "@class:ru.m.tankz.view.network.GameItemView"
|
||||
pWidth: 100
|
||||
pHeight: 100
|
||||
paddings: 10
|
||||
scroll:
|
||||
$type: haxework.gui.list.VScrollView
|
||||
$type: haxework.view.list.VScrollView
|
||||
width: 10
|
||||
pHeight: 100
|
||||
skin:
|
||||
$type: haxework.gui.list.VScrollSkin
|
||||
$type: haxework.view.list.VScrollSkin
|
||||
skin:
|
||||
$type: haxework.gui.skin.ColorSkin
|
||||
$type: haxework.view.skin.ColorSkin
|
||||
color: "#000000"
|
||||
alpha: 0
|
||||
# game
|
||||
- id: gameFrame
|
||||
$type: haxework.gui.VGroupView
|
||||
$type: haxework.view.VGroupView
|
||||
pWidth: 100
|
||||
pHeight: 100
|
||||
views:
|
||||
- id: startGameButton
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
$style: button
|
||||
text: Start
|
||||
- id: leaveGameButton
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
$style: button
|
||||
text: Leave
|
||||
- id: userList
|
||||
$type: haxework.gui.list.VListView<ru.m.tankz.proto.core.UserProto>
|
||||
$type: haxework.view.list.VListView<ru.m.tankz.proto.core.UserProto>
|
||||
factory: "@class:ru.m.tankz.view.network.UserItemView"
|
||||
pWidth: 100
|
||||
pHeight: 100
|
||||
paddings: 10
|
||||
scroll:
|
||||
$type: haxework.gui.list.VScrollView
|
||||
$type: haxework.view.list.VScrollView
|
||||
width: 10
|
||||
pHeight: 100
|
||||
skin:
|
||||
$type: haxework.gui.list.VScrollSkin
|
||||
$type: haxework.view.list.VScrollSkin
|
||||
skin:
|
||||
$type: haxework.gui.skin.ColorSkin
|
||||
$type: haxework.view.skin.ColorSkin
|
||||
color: "#000000"
|
||||
alpha: 0
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package ru.m.tankz.view;
|
||||
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.DataView;
|
||||
import haxework.gui.frame.FrameSwitcher;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.DataView;
|
||||
import haxework.view.frame.FrameSwitcher;
|
||||
import haxework.view.VGroupView;
|
||||
import ru.m.tankz.control.Control;
|
||||
import ru.m.tankz.view.classic.ClassicGameFrame;
|
||||
import ru.m.tankz.view.common.LifeView;
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
---
|
||||
views:
|
||||
- $type: haxework.gui.VGroupView
|
||||
- $type: haxework.view.VGroupView
|
||||
skinId: container
|
||||
views:
|
||||
- id: level
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
skinId: text.header
|
||||
- id: result
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
factory: $this:playerViewFactory
|
||||
geometry.margin.top: 20
|
||||
layout:
|
||||
$type: haxework.gui.layout.VerticalLayout
|
||||
$type: haxework.view.layout.VerticalLayout
|
||||
hAlign: right
|
||||
margin: 10
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
skinId: panel
|
||||
views:
|
||||
- id: close
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button.close
|
||||
+onPress: $code:close()
|
||||
- $type: haxework.gui.SpriteView
|
||||
- $type: haxework.view.SpriteView
|
||||
geometry.size.width: 100%
|
||||
- id: next
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button.next
|
||||
+onPress: $code:next()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ru.m.tankz.view;
|
||||
|
||||
import haxework.gui.frame.FrameSwitcher;
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.view.frame.FrameSwitcher;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.VGroupView;
|
||||
|
||||
@:template class SettingsFrame extends VGroupView {
|
||||
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
---
|
||||
views:
|
||||
- $type: haxework.gui.VGroupView
|
||||
- $type: haxework.view.VGroupView
|
||||
skinId: container
|
||||
views:
|
||||
- $type: haxework.gui.LabelView
|
||||
- $type: haxework.view.LabelView
|
||||
skinId: text.header
|
||||
text: Settings
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
layout.margin: 20
|
||||
views:
|
||||
- $type: ru.m.tankz.view.settings.SettingsEditor
|
||||
controlIndex: 0
|
||||
- $type: ru.m.tankz.view.settings.SettingsEditor
|
||||
controlIndex: 1
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
skinId: panel
|
||||
views:
|
||||
- id: close
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button.close
|
||||
+onPress: $this:onPress
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ru.m.tankz.view;
|
||||
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.frame.FrameSwitcher;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.frame.FrameSwitcher;
|
||||
import haxework.view.VGroupView;
|
||||
import ru.m.tankz.view.classic.ClassicLevelFrame;
|
||||
import ru.m.tankz.view.dota.DotaLevelFrame;
|
||||
import ru.m.tankz.view.popup.FontPopup;
|
||||
|
||||
@@ -1,43 +1,43 @@
|
||||
---
|
||||
views:
|
||||
- $type: haxework.gui.VGroupView
|
||||
- $type: haxework.view.VGroupView
|
||||
skinId: container
|
||||
layout.margin: 10
|
||||
views:
|
||||
- $type: haxework.gui.ImageView
|
||||
- $type: haxework.view.ImageView
|
||||
image: $asset:image:resources/image/ui/logo.png
|
||||
geometry.margin.bottom: 30
|
||||
- id: classic
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button
|
||||
+onPress: $this:onPress
|
||||
text: Classic
|
||||
- id: dota
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button
|
||||
+onPress: $this:onPress
|
||||
text: DotA
|
||||
# - id: font
|
||||
# $type: haxework.gui.ButtonView
|
||||
# $type: haxework.view.ButtonView
|
||||
# skinId: button
|
||||
# +onPress: $code:choiceFont()
|
||||
# text: Font
|
||||
# - id: network
|
||||
# $type: haxework.gui.ButtonView
|
||||
# $type: haxework.view.ButtonView
|
||||
# skinId: button
|
||||
# +onPress: $this:onPress
|
||||
# text: Network (in developing)
|
||||
# fontColor: 0xff0000
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
skinId: panel
|
||||
views:
|
||||
- id: settings
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
skinId: button.settings
|
||||
+onPress: $this:onPress
|
||||
- $type: haxework.gui.SpriteView
|
||||
- $type: haxework.view.SpriteView
|
||||
geometry.size.width: 100%
|
||||
- $type: haxework.gui.LabelView
|
||||
- $type: haxework.view.LabelView
|
||||
geometry.padding: [20, 5]
|
||||
skinId: text.box
|
||||
text: $r:text:version
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
skinId: container
|
||||
views:
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
layout.margin: 5
|
||||
views:
|
||||
- id: render
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ru.m.tankz.view.classic;
|
||||
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.VGroupView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.VGroupView;
|
||||
import ru.m.tankz.view.common.IGamePanel;
|
||||
import ru.m.tankz.view.common.LifeView;
|
||||
import ru.m.tankz.game.Game;
|
||||
|
||||
@@ -5,11 +5,11 @@ layout.margin: 5
|
||||
layout.hAlign: right
|
||||
views:
|
||||
- id: level
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
skinId: text.box
|
||||
geometry.size.height: 38
|
||||
geometry.size.width: 100%
|
||||
- $type: haxework.gui.SpriteView
|
||||
- $type: haxework.view.SpriteView
|
||||
geometry.size.height: 50%
|
||||
- id: bot
|
||||
$type: ru.m.tankz.view.common.LifeView
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package ru.m.tankz.view.classic;
|
||||
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.DataView;
|
||||
import haxework.gui.frame.FrameSwitcher;
|
||||
import haxework.gui.ToggleButtonView;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.DataView;
|
||||
import haxework.view.frame.FrameSwitcher;
|
||||
import haxework.view.ToggleButtonView;
|
||||
import ru.m.tankz.config.Config;
|
||||
import ru.m.tankz.view.common.LevelFrame;
|
||||
import ru.m.tankz.preset.ClassicGame;
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
---
|
||||
skinId: container
|
||||
layout:
|
||||
$type: haxework.gui.layout.VerticalLayout
|
||||
$type: haxework.view.layout.VerticalLayout
|
||||
views:
|
||||
- $type: haxework.gui.LabelView
|
||||
- $type: haxework.view.LabelView
|
||||
skinId: text.header
|
||||
text: Classic
|
||||
- id: presets
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
layout:
|
||||
$type: haxework.gui.layout.HorizontalLayout
|
||||
$type: haxework.view.layout.HorizontalLayout
|
||||
hAlign: center
|
||||
margin: 2
|
||||
factory: $this:presetViewFactory
|
||||
+onDataSelect: $code:function(value) preset = value
|
||||
geometry.padding: 10
|
||||
- id: levels
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
layout:
|
||||
$type: haxework.gui.layout.TailLayout
|
||||
$type: haxework.view.layout.TailLayout
|
||||
rowSize: 10
|
||||
margin: 5
|
||||
factory: $this:levelViewFactory
|
||||
|
||||
@@ -4,8 +4,8 @@ import ru.m.tankz.game.GameState;
|
||||
import flash.events.Event;
|
||||
import haxe.ds.Option;
|
||||
import haxe.Timer;
|
||||
import haxework.gui.frame.FrameSwitcher;
|
||||
import haxework.gui.GroupView;
|
||||
import haxework.view.frame.FrameSwitcher;
|
||||
import haxework.view.GroupView;
|
||||
import ru.m.tankz.view.common.IGamePanel;
|
||||
import ru.m.tankz.game.Game;
|
||||
import ru.m.tankz.network.NetworkManager;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ru.m.tankz.view.common;
|
||||
|
||||
import ru.m.tankz.game.Game;
|
||||
import haxework.gui.IView;
|
||||
import haxework.view.IView;
|
||||
|
||||
interface IGamePanel extends IView<Dynamic> {
|
||||
public var game:Game;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ru.m.tankz.view.common;
|
||||
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.GroupView;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.GroupView;
|
||||
import haxework.resources.IResources;
|
||||
import ru.m.tankz.bundle.IConfigBundle;
|
||||
import ru.m.tankz.config.Config;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package ru.m.tankz.view.common;
|
||||
|
||||
import openfl.Assets;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.ImageView;
|
||||
import haxework.gui.HGroupView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.ImageView;
|
||||
import haxework.view.HGroupView;
|
||||
|
||||
@:template class LifeView extends HGroupView {
|
||||
@:view("tank") public var tankImage:ImageView;
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
layout.margin: 5
|
||||
views:
|
||||
- id: tank
|
||||
$type: haxework.gui.ImageView
|
||||
$type: haxework.view.ImageView
|
||||
- id: live
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
skinId: text.box
|
||||
geometry.size.fixed: [50, 38]
|
||||
- id: score
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
skinId: text.box
|
||||
geometry.size.fixed: [100, 38]
|
||||
|
||||
@@ -2,11 +2,11 @@ package ru.m.tankz.view.common;
|
||||
|
||||
import haxework.resources.IResources;
|
||||
import haxework.color.ColorUtil;
|
||||
import haxework.gui.DataView;
|
||||
import haxework.gui.HGroupView;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.skin.ISkin;
|
||||
import haxework.gui.ToggleButtonView;
|
||||
import haxework.view.DataView;
|
||||
import haxework.view.HGroupView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.skin.ISkin;
|
||||
import haxework.view.ToggleButtonView;
|
||||
import ru.m.tankz.control.Control;
|
||||
import ru.m.tankz.game.GameState;
|
||||
import ru.m.tankz.Type.TeamId;
|
||||
|
||||
@@ -4,12 +4,12 @@ layout.margin: 10
|
||||
layout.vAlign: middle
|
||||
views:
|
||||
- id: label
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
skinId: text
|
||||
- id: teams
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
factory: $this:teamViewFactory
|
||||
layout:
|
||||
$type: haxework.gui.layout.HorizontalLayout
|
||||
$type: haxework.view.layout.HorizontalLayout
|
||||
margin: 3
|
||||
+onDataSelect: $this:onTeamSelect
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
skinId: container
|
||||
views:
|
||||
- $type: haxework.gui.VGroupView
|
||||
- $type: haxework.view.VGroupView
|
||||
layout.margin: 5
|
||||
views:
|
||||
- id: panel
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ru.m.tankz.view.dota;
|
||||
|
||||
import haxework.gui.HGroupView;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.view.HGroupView;
|
||||
import haxework.view.LabelView;
|
||||
import ru.m.tankz.view.common.IGamePanel;
|
||||
import ru.m.tankz.view.common.LifeView;
|
||||
import ru.m.tankz.game.Game;
|
||||
|
||||
@@ -6,14 +6,14 @@ views:
|
||||
$type: ru.m.tankz.view.common.LifeView
|
||||
tank: bc
|
||||
color: 0xff4422
|
||||
- $type: haxework.gui.SpriteView
|
||||
- $type: haxework.view.SpriteView
|
||||
geometry.size.width: 25%
|
||||
- id: level
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
skinId: text.box
|
||||
geometry.size.height: 38
|
||||
geometry.size.width: 50%
|
||||
- $type: haxework.gui.SpriteView
|
||||
- $type: haxework.view.SpriteView
|
||||
geometry.size.width: 25%
|
||||
- id: dire
|
||||
$type: ru.m.tankz.view.common.LifeView
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ru.m.tankz.view.dota;
|
||||
|
||||
import haxework.gui.ButtonView;
|
||||
import haxework.gui.DataView;
|
||||
import haxework.gui.frame.FrameSwitcher;
|
||||
import haxework.view.ButtonView;
|
||||
import haxework.view.DataView;
|
||||
import haxework.view.frame.FrameSwitcher;
|
||||
import ru.m.tankz.view.common.LevelFrame;
|
||||
import ru.m.tankz.view.common.PlayerView;
|
||||
import ru.m.tankz.game.GameState;
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
---
|
||||
skinId: container
|
||||
layout:
|
||||
$type: haxework.gui.layout.VerticalLayout
|
||||
$type: haxework.view.layout.VerticalLayout
|
||||
views:
|
||||
- $type: haxework.gui.LabelView
|
||||
- $type: haxework.view.LabelView
|
||||
skinId: text.header
|
||||
text: DotA
|
||||
- id: players
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
layout:
|
||||
$type: haxework.gui.layout.VerticalLayout
|
||||
$type: haxework.view.layout.VerticalLayout
|
||||
hAlign: right
|
||||
factory: $this:playerViewFactory
|
||||
geometry.padding: 10
|
||||
- id: levels
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
layout:
|
||||
$type: haxework.gui.layout.TailLayout
|
||||
$type: haxework.view.layout.TailLayout
|
||||
rowSize: 5
|
||||
margin: 5
|
||||
factory: $this:levelViewFactory
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ru.m.tankz.view.network;
|
||||
|
||||
import haxework.gui.HGroupView;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.list.ListView;
|
||||
import haxework.view.HGroupView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.list.ListView;
|
||||
import ru.m.tankz.proto.core.GameInfoProto;
|
||||
|
||||
|
||||
|
||||
@@ -4,12 +4,12 @@ height: 44
|
||||
margins: 5
|
||||
views:
|
||||
- id: label
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
$style: label
|
||||
pWidth: 100
|
||||
pHeight: 100
|
||||
text: ""
|
||||
skin:
|
||||
$type: haxework.gui.skin.ColorSkin
|
||||
$type: haxework.view.skin.ColorSkin
|
||||
color: "#000000"
|
||||
alpha: 0.2
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ru.m.tankz.view.network;
|
||||
|
||||
import haxework.gui.HGroupView;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.list.ListView;
|
||||
import haxework.view.HGroupView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.list.ListView;
|
||||
import ru.m.tankz.proto.core.UserProto;
|
||||
|
||||
|
||||
|
||||
@@ -4,12 +4,12 @@ height: 44
|
||||
margins: 5
|
||||
views:
|
||||
- id: label
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
$style: label
|
||||
pWidth: 100
|
||||
pHeight: 100
|
||||
text: ""
|
||||
skin:
|
||||
$type: haxework.gui.skin.ColorSkin
|
||||
$type: haxework.view.skin.ColorSkin
|
||||
color: "#000000"
|
||||
alpha: 0.2
|
||||
|
||||
@@ -2,9 +2,9 @@ package ru.m.tankz.view.popup;
|
||||
|
||||
import flash.text.Font;
|
||||
import flash.text.FontType;
|
||||
import haxework.gui.list.LabelListItem;
|
||||
import haxework.gui.list.ListView;
|
||||
import haxework.gui.popup.PopupView;
|
||||
import haxework.view.list.LabelListItem;
|
||||
import haxework.view.list.ListView;
|
||||
import haxework.view.popup.PopupView;
|
||||
|
||||
class FontLabelView extends LabelListItem<Font> {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
view:
|
||||
$type: haxework.gui.VGroupView
|
||||
$type: haxework.view.VGroupView
|
||||
geometry.size.width: 400
|
||||
geometry.size.height: 80%
|
||||
geometry.padding: 10
|
||||
@@ -9,19 +9,19 @@ view:
|
||||
skinId: dark
|
||||
views:
|
||||
- id: fonts
|
||||
$type: haxework.gui.list.VListView
|
||||
$type: haxework.view.list.VListView
|
||||
geometry.size.stretch: true
|
||||
factory: $this:fontViewFactory
|
||||
+onItemSelect: $code:function(item) close(item.data)
|
||||
scroll:
|
||||
$type: haxework.gui.list.VScrollBarView
|
||||
$type: haxework.view.list.VScrollBarView
|
||||
skinId: scroll.vertical
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
geometry.size.width: 100%
|
||||
geometry.margin.top: 10
|
||||
layout.hAlign: right
|
||||
views:
|
||||
- $type: haxework.gui.ButtonView
|
||||
- $type: haxework.view.ButtonView
|
||||
skinId: button.simple
|
||||
text: Cancel
|
||||
+onPress: $code:reject('cancel')
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package ru.m.tankz.view.settings;
|
||||
|
||||
import haxework.gui.HGroupView;
|
||||
import haxework.gui.LabelView;
|
||||
import haxework.gui.list.ListView.IListItemView;
|
||||
import haxework.view.HGroupView;
|
||||
import haxework.view.LabelView;
|
||||
import haxework.view.list.ListView.IListItemView;
|
||||
import openfl.Assets;
|
||||
import openfl.events.KeyboardEvent;
|
||||
import promhx.Deferred;
|
||||
|
||||
@@ -3,10 +3,10 @@ geometry.margin: 5
|
||||
layout.margin: 5
|
||||
views:
|
||||
- id: action
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
geometry.size.fixed: [200, 38]
|
||||
skinId: text.box
|
||||
- id: key
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
geometry.size.fixed: [200, 38]
|
||||
skinId: text.box
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package ru.m.tankz.view.settings;
|
||||
|
||||
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 promhx.Promise;
|
||||
import ru.m.tankz.control.ActionConfig.ActionItem;
|
||||
import ru.m.tankz.control.ActionConfig;
|
||||
|
||||
@@ -2,29 +2,29 @@ layout.margin: 10
|
||||
layout.hAlign: center
|
||||
views:
|
||||
- id: label
|
||||
$type: haxework.gui.LabelView
|
||||
$type: haxework.view.LabelView
|
||||
skinId: text
|
||||
- $type: haxework.gui.HGroupView
|
||||
- $type: haxework.view.HGroupView
|
||||
layout.margin: 10
|
||||
views:
|
||||
- id: change
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
+onPress: $this:onPress
|
||||
skinId: button.simple
|
||||
text: Change
|
||||
- id: clear
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
+onPress: $this:onPress
|
||||
skinId: button.simple
|
||||
text: Clear
|
||||
- id: reset
|
||||
$type: haxework.gui.ButtonView
|
||||
$type: haxework.view.ButtonView
|
||||
+onPress: $this:onPress
|
||||
skinId: button.simple
|
||||
text: Reset
|
||||
- id: list
|
||||
$type: haxework.gui.DataView
|
||||
$type: haxework.view.DataView
|
||||
layout:
|
||||
$type: haxework.gui.layout.VerticalLayout
|
||||
$type: haxework.view.layout.VerticalLayout
|
||||
factory: $this:viewFactory
|
||||
+onItemSelect: $this:onItemSelect
|
||||
|
||||
Reference in New Issue
Block a user