Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaoye
mycard
Commits
1607ada9
Commit
1607ada9
authored
Jul 15, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test update game watch table
parent
1c941bf6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
8 deletions
+40
-8
app/ygopro.component.css
app/ygopro.component.css
+29
-0
app/ygopro.component.html
app/ygopro.component.html
+9
-8
app/ygopro.component.ts
app/ygopro.component.ts
+2
-0
No files found.
app/ygopro.component.css
View file @
1607ada9
...
...
@@ -203,6 +203,35 @@ form {
font-size
:
14px
;
}
#game-replay-watch
th
.mode
{
width
:
15%
;
}
#game-replay-watch
th
.users
{
width
:
15%
;
}
#game-replay-watch
th
.extra
{
width
:
20%
;
}
#game-replay-watch
td
.title
,
#game-replay-watch
td
.users
,
#game-replay-watch
td
.extra
{
overflow-x
:
hidden
;
white-space
:
nowrap
;
}
#game-replay-watch
td
.title
{
max-width
:
360px
;
}
#game-replay-watch
td
.users
{
max-width
:
90px
;
}
#game-replay-watch
td
.extra
{
max-width
:
120px
;
}
#game-replay-watch
.avatar
{
width
:
18px
;
height
:
18px
;
...
...
app/ygopro.component.html
View file @
1607ada9
...
...
@@ -129,7 +129,7 @@
</div>
<div
class=
"form-group"
>
<label
i18n
for=
"game-create-rule"
>
决斗模式
</label>
<select
class=
"form-control form-control-sm"
id=
"game-create-mode"
name=
"mode"
(change)=
"room.options.start_lp = room.options.mode == 2 ?
16000 : 8000
"
[(ngModel)]=
"room.options.mode"
>
<select
class=
"form-control form-control-sm"
id=
"game-create-mode"
name=
"mode"
(change)=
"room.options.start_lp = room.options.mode == 2 ?
default_options.start_lp_tag : default_options.start_lp
"
[(ngModel)]=
"room.options.mode"
>
<option
i18n
value=
"0"
>
单局模式
</option>
<option
i18n
value=
"1"
>
比赛模式
</option>
<option
i18n
value=
"2"
>
TAG
</option>
...
...
@@ -224,11 +224,11 @@
<table
class=
"table table-striped table-hover"
>
<thead>
<tr>
<th
class=
"
titl
e"
>
<
span
i18n
>
游戏模式
</span
>
<th
class=
"
mod
e"
>
<
!--<span i18n>游戏模式</span>--
>
<div
id=
"watch-filter"
class=
"dropdown"
>
<button
i18n
class=
"btn btn-secondary dropdown-toggle btn-sm"
type=
"button"
id=
"dropdownMenuButton"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
筛选
游戏模式
</button>
<div
class=
"dropdown-menu"
>
<h6
i18n
class=
"dropdown-header"
>
匹配
</h6>
...
...
@@ -261,9 +261,9 @@
</div>
</div>
</th>
<th
i18n
class=
"
users
"
>
游戏标题
</th>
<th
i18n
class=
"
mode
"
>
玩家
</th>
<th
i18n
class=
"extra"
>
详情
</th>
<th
i18n
class=
"
title
"
>
游戏标题
</th>
<th
i18n
class=
"
users
"
>
玩家
</th>
<th
i18n
class=
"extra"
>
额外选项
</th>
</tr>
</thead>
<tbody>
...
...
@@ -287,7 +287,8 @@
<td
class=
"extra"
>
<span
*ngIf=
"!(room.arena || room.id.startsWith('AI#'))"
>
<span
*ngIf=
"room.options.rule != default_options.rule"
>
{{{'0': 'OCG', '1': 'TCG', '2': 'O/T', '3': '专有卡禁止'}[room.options.rule]}}
</span>
<span
i18n
*ngIf=
"room.options.start_lp != default_options.start_lp"
>
{{room.options.start_lp}} LP
</span>
<span
i18n
*ngIf=
"room.options.start_lp != default_options.start_lp && room.options.mode != 2"
>
{{room.options.start_lp}} LP
</span>
<span
i18n
*ngIf=
"room.options.start_lp != default_options.start_lp_tag && room.options.mode == 2"
>
{{room.options.start_lp}} LP
</span>
<span
i18n
*ngIf=
"room.options.start_hand != default_options.start_hand"
>
{{room.options.start_hand}} 初始
</span>
<span
i18n
*ngIf=
"room.options.draw_count != default_options.draw_count"
>
{{room.options.draw_count}} 抽卡
</span>
<span
i18n
*ngIf=
"room.options.enable_priority != default_options.enable_priority"
>
旧规则
</span>
...
...
app/ygopro.component.ts
View file @
1607ada9
...
...
@@ -69,6 +69,7 @@ interface Options {
mode
:
number
;
rule
:
number
;
start_lp
:
number
;
start_lp_tag
:
number
;
start_hand
:
number
;
draw_count
:
number
;
enable_priority
:
boolean
;
...
...
@@ -137,6 +138,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
mode
:
1
,
rule
:
this
.
settingsService
.
getLocale
().
startsWith
(
'
zh
'
)
?
0
:
1
,
start_lp
:
8000
,
start_lp_tag
:
16000
,
start_hand
:
5
,
draw_count
:
1
,
enable_priority
:
false
,
...
...
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