Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
DG_FAF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
DG_FAF
Commits
30e487a1
Commit
30e487a1
authored
Apr 08, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文字输入框对齐方式为左对齐,支持换行
parent
d2ab9264
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
DG_FAF.fire
assets/DG_FAF/scene/DG_FAF.fire
+1
-1
DG_FAF.ts
assets/DG_FAF/scene/DG_FAF.ts
+7
-1
defaultData_DG_FAF.ts
assets/DG_FAF/script/defaultData_DG_FAF.ts
+1
-1
No files found.
assets/DG_FAF/scene/DG_FAF.fire
View file @
30e487a1
...
...
@@ -34423,7 +34423,7 @@
}
],
"_prefab": null,
"_opacity":
0
,
"_opacity":
255
,
"_color": {
"__type__": "cc.Color",
"r": 255,
...
...
assets/DG_FAF/scene/DG_FAF.ts
View file @
30e487a1
...
...
@@ -599,7 +599,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
validater
=
this
.
setConnectionChoice
(
configItem
,
isDebug
);
this
.
scoreValidater
.
push
(
validater
);
break
;
// 文字输入
区
// 文字输入
组
case
TEXTINPUT_GROUP
:
validater
=
this
.
setTextInputGroup
(
configItem
,
isDebug
);
this
.
scoreValidater
.
push
(
validater
);
...
...
@@ -1906,8 +1906,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
let
text
=
await
this
.
asyncShowKeyboardModal
(
lastText
);
const
inputLabel
=
this
.
newInputTextNode
(
text
,
0
);
const
labelCom
=
inputLabel
.
getComponent
(
cc
.
Label
);
inputLabel
.
x
=
rect
.
width
/
2
;
inputLabel
.
y
=
rect
.
height
/
2
;
inputLabel
.
width
=
rect
.
width
;
inputLabel
.
height
=
rect
.
height
;
labelCom
.
horizontalAlign
=
0
;
labelCom
.
overflow
=
3
;
currentInputText
=
text
;
// 更新清除方法
...
...
assets/DG_FAF/script/defaultData_DG_FAF.ts
View file @
30e487a1
This diff is collapsed.
Click to expand it.
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