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
dbf96472
Commit
dbf96472
authored
Mar 10, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add chronologie by mission and by role
parent
7db6e4ca
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
134 additions
and
81 deletions
+134
-81
app.component.html
src/app/app.component.html
+97
-68
app.component.scss
src/app/app.component.scss
+6
-1
step.component.html
src/app/pieces/step/step.component.html
+3
-3
step.component.scss
src/app/pieces/step/step.component.scss
+2
-1
step.component.ts
src/app/pieces/step/step.component.ts
+19
-2
task.component.ts
src/app/pieces/task/task.component.ts
+7
-6
No files found.
src/app/app.component.html
View file @
dbf96472
This diff is collapsed.
Click to expand it.
src/app/app.component.scss
View file @
dbf96472
...
@@ -24,11 +24,14 @@
...
@@ -24,11 +24,14 @@
transform-origin
:
top
left
;
transform-origin
:
top
left
;
padding
:
60px
5px
10px
5px
;
padding
:
60px
5px
10px
5px
;
margin-right
:
7px
;
margin-right
:
7px
;
margin-top
:
900px
;
}
}
&
-scenario
{
&
-scenario
{
&
-chronologie
{
&
-chronologie
{
margin-bottom
:
100px
;
margin-bottom
:
100px
;
position
:
relative
;
left
:
800px
;
&
-title
{
&
-title
{
font-family
:
'Glacial Indifference Bold'
;
font-family
:
'Glacial Indifference Bold'
;
...
@@ -57,8 +60,10 @@
...
@@ -57,8 +60,10 @@
&
-mission
{
&
-mission
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
column
;
margin-bottom
:
100px
;
margin-bottom
:
100px
;
position
:
relative
;
top
:
-868px
;
&
-missionPieces
{
&
-missionPieces
{
display
:
flex
;
display
:
flex
;
...
...
src/app/pieces/step/step.component.html
View file @
dbf96472
<div
class=
"piece"
(
mouseover
)="
displayMenu=
'show'
"
(
mouseleave
)="
displayMenu=
'hide'
"
>
<div
class=
"piece"
[
ngStyle
]="{'
width
'
:
pieceWidth
}"
(
mouseover
)="
displayMenu=
'show'
"
(
mouseleave
)="
displayMenu=
'hide'
"
>
<div
class=
"piece-attach piece-attach-right"
></div>
<div
class=
"piece-attach piece-attach-right"
></div>
<div
class=
"piece-attach piece-attach-left"
></div>
<div
class=
"piece-attach piece-attach-left"
></div>
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<textarea></textarea>
<textarea></textarea>
<div
class=
"piece-form-duration"
>
<div
class=
"piece-form-duration"
>
<label
for=
"duration"
>
Durée
</label>
<label
for=
"duration"
>
Durée
</label>
<input
name=
"duration"
type=
"text"
/>
<input
name=
"duration"
type=
"text"
[(
ngModel
)]="
duration
"
(
input
)="
durationChange
()"
/>
<select
name=
"duration"
>
<select
name=
"duration"
[(
ngModel
)]="
durationUnit
"
(
change
)="
durationChange
()"
>
<option
value=
"UT"
>
UT
</option>
<option
value=
"UT"
>
UT
</option>
<option
value=
"min"
>
min
</option>
<option
value=
"min"
>
min
</option>
<option
value=
"tours"
>
tours
</option>
<option
value=
"tours"
>
tours
</option>
...
...
src/app/pieces/step/step.component.scss
View file @
dbf96472
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
height
:
300px
;
height
:
300px
;
position
:
relative
;
position
:
relative
;
background-color
:
var
(
--
piece-background-color
);
background-color
:
var
(
--
piece-background-color
);
transition
:
all
0
.5s
ease
;
&
-menu
{
&
-menu
{
position
:
absolute
;
position
:
absolute
;
...
@@ -94,7 +95,7 @@
...
@@ -94,7 +95,7 @@
background-image
:
url("../../../assets/background-images/step.png")
;
background-image
:
url("../../../assets/background-images/step.png")
;
background-position
:
center
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
30%
;
background-size
:
100px
;
}
}
&
-duration
{
&
-duration
{
...
...
src/app/pieces/step/step.component.ts
View file @
dbf96472
...
@@ -7,13 +7,16 @@ import { Component, OnInit } from '@angular/core';
...
@@ -7,13 +7,16 @@ import { Component, OnInit } from '@angular/core';
})
})
export
class
StepComponent
implements
OnInit
{
export
class
StepComponent
implements
OnInit
{
displayMenu
:
string
=
'hide'
;
pieceWidth
=
'400px'
;
duration
=
1
;
durationUnit
=
'UT'
;
constructor
()
{
}
constructor
()
{
}
ngOnInit
():
void
{
ngOnInit
():
void
{
}
}
displayMenu
:
string
=
'hide'
;
onClickComments
():
void
{
onClickComments
():
void
{
}
}
...
@@ -26,4 +29,18 @@ export class StepComponent implements OnInit {
...
@@ -26,4 +29,18 @@ export class StepComponent implements OnInit {
}
}
durationChange
():
void
{
if
(
this
.
durationUnit
===
'UT'
)
{
if
(
this
.
duration
>=
1
&&
this
.
duration
<=
10
)
{
this
.
pieceWidth
=
(
this
.
duration
*
400
)
+
'px'
;
}
else
if
(
this
.
duration
>
10
)
{
this
.
pieceWidth
=
'4000px'
;
}
else
{
this
.
pieceWidth
=
'400px'
;
}
}
else
{
this
.
pieceWidth
=
'400px'
;
}
}
}
}
src/app/pieces/task/task.component.ts
View file @
dbf96472
...
@@ -7,11 +7,6 @@ import { Component, OnInit } from '@angular/core';
...
@@ -7,11 +7,6 @@ import { Component, OnInit } from '@angular/core';
})
})
export
class
TaskComponent
implements
OnInit
{
export
class
TaskComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
():
void
{
}
displayMenu
:
string
=
'hide'
;
displayMenu
:
string
=
'hide'
;
displaySymbolChoice
:
string
=
'hide'
;
displaySymbolChoice
:
string
=
'hide'
;
displayPrequires
:
string
=
'hide'
;
displayPrequires
:
string
=
'hide'
;
...
@@ -22,10 +17,16 @@ export class TaskComponent implements OnInit {
...
@@ -22,10 +17,16 @@ export class TaskComponent implements OnInit {
symbol
:
string
=
''
;
// A changer quand implémentation des données
symbol
:
string
=
''
;
// A changer quand implémentation des données
symbolColor
:
string
=
''
;
//A changer quand implémentation des données
symbolColor
:
string
=
''
;
//A changer quand implémentation des données
constructor
()
{
}
ngOnInit
():
void
{
}
durationChange
():
void
{
durationChange
():
void
{
if
(
this
.
durationUnit
===
'UT'
)
{
if
(
this
.
durationUnit
===
'UT'
)
{
if
(
this
.
duration
>=
1
&&
this
.
duration
<=
10
)
{
if
(
this
.
duration
>=
1
&&
this
.
duration
<=
10
)
{
this
.
pieceWidth
=
(
this
.
duration
*
400
)
+
'px'
;
this
.
pieceWidth
=
(
this
.
duration
*
400
)
+
'px'
;
}
else
if
(
this
.
duration
>
10
)
{
}
else
if
(
this
.
duration
>
10
)
{
this
.
pieceWidth
=
'4000px'
;
this
.
pieceWidth
=
'4000px'
;
...
...
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