Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
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
Quentin Vrel
projet-cdaw
Commits
39f775cf
Commit
39f775cf
authored
Dec 04, 2020
by
quentin.vrel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
player's hands are visible
parent
a404ec85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
13 deletions
+39
-13
Betaparty.vue
frontend/src/views/Betaparty.vue
+39
-13
No files found.
frontend/src/views/Betaparty.vue
View file @
39f775cf
<
template
>
<
template
>
<div
class=
"
about
"
>
<div
class=
"
party
"
>
<hand
class=
"player-hand"
/>
<hand
class=
"player-hand"
/>
<div
class=
"winds"
>
<div
class=
"winds"
>
<img
:src=
"this.topWindGlyph"
class=
"player-wind top-wind"
>
<img
:src=
"this.topWindGlyph"
class=
"player-wind top-wind"
>
...
@@ -7,6 +7,15 @@
...
@@ -7,6 +7,15 @@
<img
:src=
"this.bottomWindGlyph"
class=
"player-wind bottom-wind"
>
<img
:src=
"this.bottomWindGlyph"
class=
"player-wind bottom-wind"
>
<img
:src=
"this.leftWindGlyph"
class=
"player-wind left-wind"
>
<img
:src=
"this.leftWindGlyph"
class=
"player-wind left-wind"
>
</div>
</div>
<div
class=
"left-hand"
>
<img
v-for=
"i in 13"
:key=
"i"
:src=
"backTile"
width=
46
height=
62
>
</div>
<div
class=
"top-hand"
>
<img
v-for=
"i in 13"
:key=
"i"
:src=
"backTile"
width=
46
height=
62
>
</div>
<div
class=
"right-hand"
>
<img
v-for=
"i in 13"
:key=
"i"
:src=
"backTile"
width=
46
height=
62
>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -20,18 +29,13 @@ export default {
...
@@ -20,18 +29,13 @@ export default {
data
(){
//data must be a function
data
(){
//data must be a function
return
{
return
{
id
:
10
,
id
:
10
,
topWindGlyph
:
null
,
topWindGlyph
:
require
(
'@/assets/img/mahjong-tiles/Black/Pei.svg'
),
rightWindGlyph
:
null
,
rightWindGlyph
:
require
(
'@/assets/img/mahjong-tiles/Black/Shaa.svg'
),
bottomWindGlyph
:
null
,
bottomWindGlyph
:
require
(
'@/assets/img/mahjong-tiles/Black/Nan.svg'
),
leftWindGlyph
:
null
,
leftWindGlyph
:
require
(
'@/assets/img/mahjong-tiles/Black/Ton.svg'
),
}
backTile
:
require
(
'@/assets/img/mahjong-tiles/Black/Back.svg'
),
}
},
},
mounted
()
{
this
.
topWindGlyph
=
require
(
'@/assets/img/mahjong-tiles/Black/Pei.svg'
)
this
.
rightWindGlyph
=
require
(
'@/assets/img/mahjong-tiles/Black/Shaa.svg'
)
this
.
bottomWindGlyph
=
require
(
'@/assets/img/mahjong-tiles/Black/Nan.svg'
)
this
.
leftWindGlyph
=
require
(
'@/assets/img/mahjong-tiles/Black/Ton.svg'
)
}
}
}
</
script
>
</
script
>
...
@@ -40,7 +44,7 @@ export default {
...
@@ -40,7 +44,7 @@ export default {
.player-hand
{
.player-hand
{
position
:
absolute
;
position
:
absolute
;
bottom
:
9%
;
bottom
:
9%
;
left
:
20
0px
;
left
:
31
0px
;
}
}
.winds
{
.winds
{
...
@@ -95,5 +99,27 @@ export default {
...
@@ -95,5 +99,27 @@ export default {
left
:
0
;
left
:
0
;
right
:
202px
;
right
:
202px
;
}
}
.top-hand
{
position
:
absolute
;
left
:
400px
;
}
.right-hand
{
position
:
absolute
;
transform
:
rotate
(
-90deg
)
;
top
:
454px
;
left
:
864px
;
}
.left-hand
{
position
:
absolute
;
transform
:
rotate
(
90deg
);
left
:
-70px
;
top
:
454px
;
}
/*
.party *{
background: rgba(255, 255, 255, 0.1);
}
*/
</
style
>
</
style
>
\ No newline at end of file
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