Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-engine
Commits
82fb46cf
Commit
82fb46cf
authored
May 27, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'designtime' of
http://gitlab2.dui88.com/laoqifeng/zeroing-engine
into designtime
parents
d51ac915
243f691e
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
39 additions
and
0 deletions
+39
-0
BitmapText.ts
src/zeroing/game-warpper/nodes/BitmapText.ts
+5
-0
HtmlView.ts
src/zeroing/game-warpper/nodes/HtmlView.ts
+1
-0
Image.ts
src/zeroing/game-warpper/nodes/Image.ts
+5
-0
Label.ts
src/zeroing/game-warpper/nodes/Label.ts
+5
-0
Node.ts
src/zeroing/game-warpper/nodes/Node.ts
+4
-0
ScrollList.ts
src/zeroing/game-warpper/nodes/ScrollList.ts
+6
-0
ScrollView.ts
src/zeroing/game-warpper/nodes/ScrollView.ts
+1
-0
TextInput.ts
src/zeroing/game-warpper/nodes/TextInput.ts
+1
-0
shapes.ts
src/zeroing/game-warpper/nodes/shapes.ts
+11
-0
No files found.
src/zeroing/game-warpper/nodes/BitmapText.ts
View file @
82fb46cf
...
@@ -25,6 +25,11 @@ export class BitmapText extends Container implements IUIComponent {
...
@@ -25,6 +25,11 @@ export class BitmapText extends Container implements IUIComponent {
@
dirtyFieldTrigger
@
dirtyFieldTrigger
public
letterSpacing
:
number
=
0
;
public
letterSpacing
:
number
=
0
;
constructor
()
{
super
();
this
.
_instanceType
=
"BitmapText"
;
}
onModify
(
value
,
key
)
{
onModify
(
value
,
key
)
{
switch
(
key
)
{
switch
(
key
)
{
case
'text'
:
case
'text'
:
...
...
src/zeroing/game-warpper/nodes/HtmlView.ts
View file @
82fb46cf
...
@@ -19,6 +19,7 @@ export class HtmlView extends FloatDisplay implements IUIComponent{
...
@@ -19,6 +19,7 @@ export class HtmlView extends FloatDisplay implements IUIComponent{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
_instanceType
=
"HtmlView"
;
this
.
afterConstructor
();
this
.
afterConstructor
();
}
}
...
...
src/zeroing/game-warpper/nodes/Image.ts
View file @
82fb46cf
...
@@ -34,6 +34,11 @@ export class Image extends Sprite implements IUIComponent {
...
@@ -34,6 +34,11 @@ export class Image extends Sprite implements IUIComponent {
}
}
}
}
constructor
()
{
super
();
this
.
_instanceType
=
"Image"
;
}
private
updateSource
()
{
private
updateSource
()
{
let
url
=
this
.
_source
;
let
url
=
this
.
_source
;
...
...
src/zeroing/game-warpper/nodes/Label.ts
View file @
82fb46cf
...
@@ -18,6 +18,11 @@ export class Label extends TextField implements IUIComponent {
...
@@ -18,6 +18,11 @@ export class Label extends TextField implements IUIComponent {
private
_registeredEvents
=
[];
private
_registeredEvents
=
[];
private
_htmlText
;
private
_htmlText
;
constructor
()
{
super
();
this
.
_instanceType
=
"Label"
;
}
/**
/**
* 重载文本设置
* 重载文本设置
* @param value
* @param value
...
...
src/zeroing/game-warpper/nodes/Node.ts
View file @
82fb46cf
...
@@ -7,4 +7,8 @@ import {IUIComponent} from "./IUIComponent";
...
@@ -7,4 +7,8 @@ import {IUIComponent} from "./IUIComponent";
export
class
Node
extends
Container
implements
IUIComponent
{
export
class
Node
extends
Container
implements
IUIComponent
{
isUI
=
true
;
isUI
=
true
;
constructor
()
{
super
();
this
.
_instanceType
=
"Node"
;
}
}
}
\ No newline at end of file
src/zeroing/game-warpper/nodes/ScrollList.ts
View file @
82fb46cf
...
@@ -14,6 +14,11 @@ export class ScrollListItem extends ScrollListItemBase implements IUIComponent {
...
@@ -14,6 +14,11 @@ export class ScrollListItem extends ScrollListItemBase implements IUIComponent {
view
:
Container
;
view
:
Container
;
constructor
()
{
super
();
this
.
_instanceType
=
"ScrollListItem"
;
}
setView
(
view
)
{
setView
(
view
)
{
this
.
addChild
(
view
);
this
.
addChild
(
view
);
this
.
view
=
view
;
this
.
view
=
view
;
...
@@ -32,6 +37,7 @@ export class ScrollList extends ScrollListBase {
...
@@ -32,6 +37,7 @@ export class ScrollList extends ScrollListBase {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
_instanceType
=
"ScrollList"
;
this
.
itemClass
=
ScrollListItem
;
this
.
itemClass
=
ScrollListItem
;
...
...
src/zeroing/game-warpper/nodes/ScrollView.ts
View file @
82fb46cf
...
@@ -25,6 +25,7 @@ export class ScrollView extends ScrollViewBase implements IUIComponent {
...
@@ -25,6 +25,7 @@ export class ScrollView extends ScrollViewBase implements IUIComponent {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
_instanceType
=
"ScrollView"
;
for
(
let
item
of
proxyMethods
){
for
(
let
item
of
proxyMethods
){
this
[
item
]
=
this
.
viewPort
[
item
].
bind
(
this
.
viewPort
);
this
[
item
]
=
this
.
viewPort
[
item
].
bind
(
this
.
viewPort
);
...
...
src/zeroing/game-warpper/nodes/TextInput.ts
View file @
82fb46cf
...
@@ -51,6 +51,7 @@ export class TextInput extends Label implements IUIComponent {
...
@@ -51,6 +51,7 @@ export class TextInput extends Label implements IUIComponent {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
_instanceType
=
"TextInput"
;
this
.
setup
();
this
.
setup
();
this
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
onClickStatic
,
this
);
this
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
onClickStatic
,
this
);
...
...
src/zeroing/game-warpper/nodes/shapes.ts
View file @
82fb46cf
...
@@ -25,6 +25,7 @@ class ShapeBase extends Graphics implements IUIComponent {
...
@@ -25,6 +25,7 @@ class ShapeBase extends Graphics implements IUIComponent {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
_instanceType
=
"ShapeBase"
;
this
.
addEventListener
(
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
this
.
addEventListener
(
Event
.
ENTER_FRAME
,
this
.
onEnterFrame
,
this
);
this
.
addEventListener
(
Event
.
RESIZE
,
this
.
onResize
,
this
);
this
.
addEventListener
(
Event
.
RESIZE
,
this
.
onResize
,
this
);
...
@@ -64,6 +65,11 @@ export class Rect extends ShapeBase {
...
@@ -64,6 +65,11 @@ export class Rect extends ShapeBase {
@
dirtyFieldDetector
@
dirtyFieldDetector
borderRadius
:
number
=
0
;
borderRadius
:
number
=
0
;
constructor
()
{
super
();
this
.
_instanceType
=
"Rect"
;
}
protected
redraw
()
{
protected
redraw
()
{
const
{
width
,
height
,
borderRadius
,}
=
this
;
const
{
width
,
height
,
borderRadius
,}
=
this
;
if
(
width
==
0
||
height
==
0
){
if
(
width
==
0
||
height
==
0
){
...
@@ -81,6 +87,11 @@ export class Rect extends ShapeBase {
...
@@ -81,6 +87,11 @@ export class Rect extends ShapeBase {
* 圆形
* 圆形
*/
*/
export
class
Circle
extends
ShapeBase
{
export
class
Circle
extends
ShapeBase
{
constructor
()
{
super
();
this
.
_instanceType
=
"Circle"
;
}
protected
redraw
()
{
protected
redraw
()
{
super
.
redraw
();
super
.
redraw
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment