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
e6bca361
Commit
e6bca361
authored
Apr 12, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewards types
parent
a6e6c15f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
133 additions
and
7 deletions
+133
-7
role.component.html
src/app/pieces/role/role.component.html
+48
-4
role.component.scss
src/app/pieces/role/role.component.scss
+84
-3
role.component.ts
src/app/pieces/role/role.component.ts
+1
-0
No files found.
src/app/pieces/role/role.component.html
View file @
e6bca361
...
...
@@ -33,10 +33,54 @@
<div
class=
"piece-form-rewards"
>
<label
for=
"reward"
>
Récompense(s)
</label>
<div
class=
"piece-form-rewards-reward"
>
<label>
Type
</label>
<select>
<option>
test
</option>
</select>
<div
class=
"piece-form-rewards-reward-type"
>
<label>
Type
</label>
<select
[(
ngModel
)]="
rewardType
"
>
<option
value=
"1"
>
Débuter une nouvelle quête
</option>
<option
value=
"2"
>
Travailler un champ de compétence
</option>
<option
value=
"3"
>
Récupérer le contact d'un PNJ
</option>
<option
value=
"4"
>
Atteindre un objectif pédagoqique
</option>
<option
value=
"5"
>
Récupérer un objet
</option>
<option
value=
"6"
>
Changer de discussion
</option>
<option
value=
"7"
>
Autre
</option>
</select>
</div>
<div
class=
"piece-form-rewards-reward-objects"
*
ngIf=
"rewardType == 5"
>
<div
class=
"piece-form-rewards-reward-objects-object"
>
<input
type=
"number"
/>
<input
type=
"text"
placeholder=
"Nom de l'objet"
/>
</div>
<button
mat-button
><mat-icon
fontIcon=
"add"
></mat-icon></button>
</div>
<div
class=
"piece-form-rewards-reward-character"
*
ngIf=
"rewardType == 3"
>
<select>
<option>
Personnage 1
</option>
</select>
</div>
<div
class=
"piece-form-rewards-reward-discussion"
*
ngIf=
"rewardType == 6"
>
<select>
<option>
Discussion 1
</option>
</select>
</div>
<div
class=
"piece-form-rewards-reward-skill"
*
ngIf=
"rewardType == 2"
>
<input
type=
"number"
/>
<select>
<option>
Compétence 1
</option>
</select>
</div>
<div
class=
"piece-form-rewards-reward-quest"
*
ngIf=
"rewardType == 1"
>
<select>
<option>
Quête 1
</option>
</select>
</div>
<div
class=
"piece-form-rewards-reward-objective"
*
ngIf=
"rewardType == 4"
>
<select>
<option>
Objectif pédagoqique 1
</option>
</select>
</div>
</div>
</div>
...
...
src/app/pieces/role/role.component.scss
View file @
e6bca361
...
...
@@ -178,17 +178,98 @@
display
:
flex
;
flex-direction
:
column
;
button
{
position
:
relative
;
width
:
50px
;
height
:
50px
;
background-color
:
white
;
left
:
100%
;
transform
:
translateX
(
-100%
);
border-radius
:
10px
;
margin-bottom
:
5px
;
mat-icon
{
transform
:
scale
(
1
.3
);
}
}
&
-reward
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
flex-direction
:
column
;
select
{
height
:
50px
;
border
:
none
;
border-radius
:
10px
;
background-color
:
white
;
width
:
80%
;
width
:
100%
;
}
input
[
type
=
"number"
]
{
width
:
15%
;
}
input
[
type
=
"text"
]
{
width
:
100%
;
}
&
-type
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
margin-bottom
:
5px
;
select
{
width
:
80%
;
}
}
&
-objects
{
display
:
flex
;
flex-direction
:
column
;
&
-object
{
display
:
flex
;
flex-direction
:
row
;
margin-bottom
:
5px
;
input
[
type
=
"text"
]
{
margin-left
:
5px
;
}
}
}
&
-character
{
display
:
flex
;
flex-direction
:
row
;
margin-bottom
:
5px
;
}
&
-discussion
{
display
:
flex
;
flex-direction
:
row
;
margin-bottom
:
5px
;
}
&
-skill
{
display
:
flex
;
flex-direction
:
row
;
margin-bottom
:
5px
;
select
{
margin-left
:
5px
;
}
}
&
-quest
{
display
:
flex
;
flex-direction
:
row
;
margin-bottom
:
5px
;
}
&
-objective
{
display
:
flex
;
flex-direction
:
row
;
}
}
}
...
...
src/app/pieces/role/role.component.ts
View file @
e6bca361
...
...
@@ -13,6 +13,7 @@ export class RoleComponent implements OnInit {
}
displayMenu
:
string
=
'hide'
;
rewardType
:
number
=
0
;
onClickComments
():
void
{
...
...
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