Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
9c3324de
Commit
9c3324de
authored
1 year ago
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove cutting line when moving a task
parent
bcdad39a
verification
Unity
dynamic
traces
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
role.ts
src/app/class/role/role.ts
+7
-6
No files found.
src/app/class/role/role.ts
View file @
9c3324de
...
...
@@ -64,7 +64,7 @@ export class Role {
}
else
if
(
direction
==
'top'
)
{
if
(
!
(
this
.
tasks
[
i
-
1
].
some
(
element
=>
element
instanceof
Task
)))
{
this
.
tasks
[
i
-
1
][
j
]
=
tmp
;
this
.
tasks
[
i
]
.
splice
(
j
,
1
)
;
this
.
tasks
[
i
]
[
j
]
=
null
;
}
else
if
(
this
.
tasks
[
i
-
1
].
some
(
element
=>
element
?.
type
==
'final'
||
element
?.
type
==
'repeat'
))
{
if
(
this
.
tasks
[
i
][
j
]?.
type
==
'final'
||
this
.
tasks
[
i
][
j
]?.
type
==
'repeat'
)
{
this
.
tasks
[
i
][
j
]
=
this
.
tasks
[
i
-
1
][
this
.
getLastTaskIndex
(
i
-
1
)];
...
...
@@ -73,11 +73,12 @@ export class Role {
let
deplace
=
this
.
tasks
[
i
-
1
][
this
.
getLastTaskIndex
(
i
-
1
)];
this
.
tasks
[
i
-
1
][
this
.
getLastTaskIndex
(
i
-
1
)]
=
tmp
;
this
.
tasks
[
i
-
1
][
this
.
getLastTaskIndex
(
i
-
1
)
+
1
]
=
deplace
;
this
.
tasks
[
i
]
.
splice
(
j
,
1
)
;
this
.
tasks
[
i
]
[
j
]
=
null
;
}
}
else
{
this
.
tasks
[
i
-
1
][
this
.
getLastTaskIndex
(
i
-
1
)
+
1
]
=
tmp
;
this
.
tasks
[
i
].
splice
(
j
,
1
);
this
.
tasks
[
i
][
j
]
=
null
;
}
if
(
!
this
.
tasks
[
i
].
some
(
element
=>
element
instanceof
Task
))
{
this
.
tasks
.
splice
(
i
,
1
);
...
...
@@ -88,7 +89,7 @@ export class Role {
}
if
(
!
(
this
.
tasks
[
i
+
1
].
some
(
element
=>
element
instanceof
Task
)))
{
this
.
tasks
[
i
+
1
][
j
]
=
tmp
;
this
.
tasks
[
i
]
.
splice
(
j
,
1
)
;
this
.
tasks
[
i
]
[
j
]
=
null
;
}
else
if
(
this
.
tasks
[
i
+
1
].
some
(
element
=>
element
?.
type
==
'final'
||
element
?.
type
==
'repeat'
))
{
if
(
this
.
tasks
[
i
][
j
]?.
type
==
'final'
||
this
.
tasks
[
i
][
j
]?.
type
==
'repeat'
)
{
this
.
tasks
[
i
][
j
]
=
this
.
tasks
[
i
+
1
][
this
.
getLastTaskIndex
(
i
+
1
)];
...
...
@@ -97,11 +98,11 @@ export class Role {
let
deplace
=
this
.
tasks
[
i
+
1
][
this
.
getLastTaskIndex
(
i
+
1
)];
this
.
tasks
[
i
+
1
][
this
.
getLastTaskIndex
(
i
+
1
)]
=
tmp
;
this
.
tasks
[
i
+
1
][
this
.
getLastTaskIndex
(
i
+
1
)
+
1
]
=
deplace
;
this
.
tasks
[
i
]
.
splice
(
j
,
1
)
;
this
.
tasks
[
i
]
[
j
]
=
null
;
}
}
else
{
this
.
tasks
[
i
+
1
][
this
.
getLastTaskIndex
(
i
+
1
)
+
1
]
=
tmp
;
this
.
tasks
[
i
]
.
splice
(
j
,
1
)
;
this
.
tasks
[
i
]
[
j
]
=
null
;
}
}
}
...
...
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