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
92a1e612
Commit
92a1e612
authored
Jan 31, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Choice symbol menu
parent
b634930b
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
104 additions
and
16 deletions
+104
-16
educational-objective.component.scss
...ducational-objective/educational-objective.component.scss
+0
-1
educational-objective.component.ts
.../educational-objective/educational-objective.component.ts
+1
-1
game-context.component.scss
src/app/pieces/game-context/game-context.component.scss
+0
-1
game-context.component.ts
src/app/pieces/game-context/game-context.component.ts
+1
-1
game-educationnal-objective.component.scss
...nnal-objective/game-educationnal-objective.component.scss
+0
-1
game-educationnal-objective.component.ts
...ionnal-objective/game-educationnal-objective.component.ts
+1
-1
mission-context.component.scss
...app/pieces/mission-context/mission-context.component.scss
+0
-1
mission-context.component.ts
src/app/pieces/mission-context/mission-context.component.ts
+1
-1
role.component.scss
src/app/pieces/role/role.component.scss
+0
-1
role.component.ts
src/app/pieces/role/role.component.ts
+1
-1
task.component.html
src/app/pieces/task/task.component.html
+30
-1
task.component.scss
src/app/pieces/task/task.component.scss
+48
-2
task.component.ts
src/app/pieces/task/task.component.ts
+21
-3
No files found.
src/app/pieces/educational-objective/educational-objective.component.scss
View file @
92a1e612
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
width
:
150px
;
width
:
150px
;
height
:
50px
;
height
:
50px
;
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
opacity
:
0
.75
;
z-index
:
-1
;
z-index
:
-1
;
top
:
-51px
;
top
:
-51px
;
left
:
50%
;
left
:
50%
;
...
...
src/app/pieces/educational-objective/educational-objective.component.ts
View file @
92a1e612
...
@@ -12,7 +12,7 @@ export class EducationalObjectiveComponent implements OnInit {
...
@@ -12,7 +12,7 @@ export class EducationalObjectiveComponent implements OnInit {
ngOnInit
():
void
{
ngOnInit
():
void
{
}
}
displayMenu
:
S
tring
=
'hide'
;
displayMenu
:
s
tring
=
'hide'
;
onClickComments
():
void
{
onClickComments
():
void
{
...
...
src/app/pieces/game-context/game-context.component.scss
View file @
92a1e612
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
width
:
150px
;
width
:
150px
;
height
:
50px
;
height
:
50px
;
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
opacity
:
0
.75
;
z-index
:
-1
;
z-index
:
-1
;
top
:
-51px
;
top
:
-51px
;
left
:
50%
;
left
:
50%
;
...
...
src/app/pieces/game-context/game-context.component.ts
View file @
92a1e612
...
@@ -12,7 +12,7 @@ export class GameContextComponent implements OnInit {
...
@@ -12,7 +12,7 @@ export class GameContextComponent implements OnInit {
ngOnInit
():
void
{
ngOnInit
():
void
{
}
}
displayMenu
:
S
tring
=
'hide'
;
displayMenu
:
s
tring
=
'hide'
;
onClickComments
():
void
{
onClickComments
():
void
{
...
...
src/app/pieces/game-educationnal-objective/game-educationnal-objective.component.scss
View file @
92a1e612
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
width
:
150px
;
width
:
150px
;
height
:
50px
;
height
:
50px
;
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
opacity
:
0
.75
;
z-index
:
-1
;
z-index
:
-1
;
top
:
-51px
;
top
:
-51px
;
left
:
50%
;
left
:
50%
;
...
...
src/app/pieces/game-educationnal-objective/game-educationnal-objective.component.ts
View file @
92a1e612
...
@@ -12,7 +12,7 @@ export class GameEducationnalObjectiveComponent implements OnInit {
...
@@ -12,7 +12,7 @@ export class GameEducationnalObjectiveComponent implements OnInit {
ngOnInit
():
void
{
ngOnInit
():
void
{
}
}
displayMenu
:
S
tring
=
'hide'
;
displayMenu
:
s
tring
=
'hide'
;
onClickComments
():
void
{
onClickComments
():
void
{
...
...
src/app/pieces/mission-context/mission-context.component.scss
View file @
92a1e612
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
width
:
150px
;
width
:
150px
;
height
:
50px
;
height
:
50px
;
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
opacity
:
0
.75
;
z-index
:
-1
;
z-index
:
-1
;
top
:
-51px
;
top
:
-51px
;
left
:
50%
;
left
:
50%
;
...
...
src/app/pieces/mission-context/mission-context.component.ts
View file @
92a1e612
...
@@ -12,7 +12,7 @@ export class MissionContextComponent implements OnInit {
...
@@ -12,7 +12,7 @@ export class MissionContextComponent implements OnInit {
ngOnInit
():
void
{
ngOnInit
():
void
{
}
}
displayMenu
:
S
tring
=
'hide'
;
displayMenu
:
s
tring
=
'hide'
;
onClickComments
():
void
{
onClickComments
():
void
{
...
...
src/app/pieces/role/role.component.scss
View file @
92a1e612
...
@@ -11,7 +11,6 @@
...
@@ -11,7 +11,6 @@
width
:
150px
;
width
:
150px
;
height
:
50px
;
height
:
50px
;
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
opacity
:
0
.75
;
z-index
:
-1
;
z-index
:
-1
;
top
:
-51px
;
top
:
-51px
;
left
:
50%
;
left
:
50%
;
...
...
src/app/pieces/role/role.component.ts
View file @
92a1e612
...
@@ -12,7 +12,7 @@ export class RoleComponent implements OnInit {
...
@@ -12,7 +12,7 @@ export class RoleComponent implements OnInit {
ngOnInit
():
void
{
ngOnInit
():
void
{
}
}
displayMenu
:
S
tring
=
'hide'
;
displayMenu
:
s
tring
=
'hide'
;
onClickComments
():
void
{
onClickComments
():
void
{
...
...
src/app/pieces/task/task.component.html
View file @
92a1e612
...
@@ -9,11 +9,40 @@
...
@@ -9,11 +9,40 @@
<mat-icon
fontIcon=
"more_vert"
(
click
)="
onClickDots
()"
></mat-icon>
<mat-icon
fontIcon=
"more_vert"
(
click
)="
onClickDots
()"
></mat-icon>
</div>
</div>
<div
class=
"piece-symbolchoice"
[
class
]="
displaySymbolChoice
"
>
<label>
Choisir un symbole de tâche commune :
</label>
<div
class=
"piece-symbolchoice-symbols"
>
<mat-icon
[
style
.
color
]="'#
d79297
'"
fontIcon=
"favorite"
(
click
)="
setSymbol
('
favorite
','#
d79297
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
9ad5ec
'"
fontIcon=
"diamond"
(
click
)="
setSymbol
('
diamond
','#
9ad5ec
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
e9ec54
'"
fontIcon=
"star"
(
click
)="
setSymbol
('
star
','#
e9ec54
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
f5cee3
'"
fontIcon=
"hexagon"
(
click
)="
setSymbol
('
hexagon
','#
f5cee3
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
d3d2d2
'"
fontIcon=
"add"
(
click
)="
setSymbol
('
add
','#
d3d2d2
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
9ad5ec
'"
fontIcon=
"circle"
(
click
)="
setSymbol
('
circle
','#
9ad5ec
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
b6cc87
'"
fontIcon=
"eco"
(
click
)="
setSymbol
('
eco
','#
b6cc87
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
d0bbdb
'"
fontIcon=
"play_arrow"
(
click
)="
setSymbol
('
play_arrow
','#
d0bbdb
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
8b7e64
'"
fontIcon=
"remove"
(
click
)="
setSymbol
('
remove
','#
8b7e64
')"
></mat-icon>
</div>
<div
class=
"piece-symbolchoice-symbols"
>
<mat-icon
[
style
.
color
]="'#
d79297
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
d79297
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
9ad5ec
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
9ad5ec
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
e9ec54
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
e9ec54
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
f5cee3
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
f5cee3
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
d3d2d2
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
d3d2d2
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
9ad5ec
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
9ad5ec
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
b6cc87
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
b6cc87
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
d0bbdb
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
d0bbdb
')"
></mat-icon>
<mat-icon
[
style
.
color
]="'#
8b7e64
'"
fontIcon=
"square"
(
click
)="
setSymbol
('
square
','#
8b7e64
')"
></mat-icon>
</div>
</div>
<div
class=
"piece-form"
>
<div
class=
"piece-form"
>
<div
class=
"piece-form-top"
>
<div
class=
"piece-form-top"
>
<input
class=
"piece-form-top-identifier"
name=
"identifier"
type=
"text"
placeholder=
"A"
min=
"1"
maxlength=
"5"
/>
<input
class=
"piece-form-top-identifier"
name=
"identifier"
type=
"text"
placeholder=
"A"
min=
"1"
maxlength=
"5"
/>
<div
class=
"piece-form-top-title"
>
Tâche
</div>
<div
class=
"piece-form-top-title"
>
Tâche
</div>
<div
class=
"piece-form-top-symbol"
></div>
<div
class=
"piece-form-top-symbol"
(
click
)="
changeDisplaySymbolChoice
()"
>
<mat-icon
*
ngIf=
"symbol"
[
style
.
color
]="
symbolColor
"
[
fontIcon
]="
symbol
"
></mat-icon>
</div>
</div>
</div>
<textarea
class=
"piece-form-content"
placeholder=
"Acheter des citrons"
></textarea>
<textarea
class=
"piece-form-content"
placeholder=
"Acheter des citrons"
></textarea>
<div
class=
"piece-form-bottom"
>
<div
class=
"piece-form-bottom"
>
...
...
src/app/pieces/task/task.component.scss
View file @
92a1e612
...
@@ -12,9 +12,8 @@
...
@@ -12,9 +12,8 @@
width
:
150px
;
width
:
150px
;
height
:
50px
;
height
:
50px
;
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
opacity
:
0
.75
;
z-index
:
-1
;
z-index
:
-1
;
top
:
-5
1
px
;
top
:
-5
0
px
;
left
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
transition
:
transform
0
.5s
ease
;
transition
:
transform
0
.5s
ease
;
...
@@ -39,6 +38,42 @@
...
@@ -39,6 +38,42 @@
transform
:
translateX
(
-50%
)
translateY
(
100%
);
transform
:
translateX
(
-50%
)
translateY
(
100%
);
}
}
&
-symbolchoice
{
position
:
absolute
;
background-color
:
#f7f7f7
;
width
:
300px
;
height
:
100px
;
border-top-right-radius
:
10px
;
border-bottom-right-radius
:
10px
;
border
:
solid
black
1px
;
padding
:
10px
;
right
:
0
;
top
:
5px
;
z-index
:
-1
;
transition
:
transform
0
.5s
ease
;
label
{
font-size
:
14px
;
}
mat-icon
{
cursor
:
pointer
;
transform
:
scale
(
1
.2
);
}
mat-icon
:hover
{
opacity
:
0
.75
;
}
&
-symbols
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-around
;
margin-top
:
10px
;
}
}
&
-symbolchoice
.show
{
transform
:
translateX
(
100%
);
}
&
-attach
{
&
-attach
{
z-index
:
1
;
z-index
:
1
;
&
-left
{
&
-left
{
...
@@ -113,6 +148,17 @@
...
@@ -113,6 +148,17 @@
background-color
:
white
;
background-color
:
white
;
border-radius
:
10px
;
border-radius
:
10px
;
padding
:
5px
10px
5px
10px
;
padding
:
5px
10px
5px
10px
;
cursor
:
pointer
;
mat-icon
{
position
:
relative
;
left
:
50%
;
height
:
50%
;
transform
:
translateX
(
-50%
)
translateY
(
50%
)
scale
(
1
.3
);
overflow
:
visible
;
}
}
&
-symbol
:hover
{
opacity
:
0
.75
;
}
}
}
}
&
-content
{
&
-content
{
...
...
src/app/pieces/task/task.component.ts
View file @
92a1e612
...
@@ -12,11 +12,15 @@ export class TaskComponent implements OnInit {
...
@@ -12,11 +12,15 @@ export class TaskComponent implements OnInit {
ngOnInit
():
void
{
ngOnInit
():
void
{
}
}
displayMenu
:
String
=
'hide'
;
displayMenu
:
string
=
'hide'
;
displaySymbolChoice
:
string
=
'hide'
;
durationUnit
:
S
tring
=
'UT'
;
durationUnit
:
s
tring
=
'UT'
;
duration
:
number
=
1
;
duration
:
number
=
1
;
pieceWidth
:
String
=
'400px'
;
pieceWidth
:
string
=
'400px'
;
symbol
:
string
=
''
;
// A changer quand implémentation des données
symbolColor
:
string
=
''
;
//A changer quand implémentation des données
durationChange
():
void
{
durationChange
():
void
{
if
(
this
.
durationUnit
===
'UT'
)
{
if
(
this
.
durationUnit
===
'UT'
)
{
...
@@ -48,6 +52,20 @@ export class TaskComponent implements OnInit {
...
@@ -48,6 +52,20 @@ export class TaskComponent implements OnInit {
}
}
changeDisplaySymbolChoice
():
void
{
if
(
this
.
displaySymbolChoice
==
'show'
)
{
this
.
displaySymbolChoice
=
'hide'
;
}
else
{
this
.
displaySymbolChoice
=
'show'
;
}
}
setSymbol
(
symbol
:
string
,
symbolColor
:
string
):
void
{
this
.
symbol
=
symbol
;
this
.
symbolColor
=
symbolColor
;
this
.
displaySymbolChoice
=
'hide'
;
}
}
}
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