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
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
mycard
Commits
9e93ed3f
Commit
9e93ed3f
authored
Dec 07, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tray
parent
00af611c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
+11
-12
app/ygopro.component.html
app/ygopro.component.html
+6
-3
apps.json
apps.json
+2
-2
index.js
index.js
+2
-6
locale/messages.en-US.xlf
locale/messages.en-US.xlf
+1
-1
No files found.
app/ygopro.component.html
View file @
9e93ed3f
...
...
@@ -104,13 +104,16 @@
</div>
<div
class=
"col-sm-5"
>
<div
class=
"checkbox"
>
<label
i18n
>
允许启动效果优先权
</label><input
name=
"enable_priority"
type=
"checkbox"
[(ngModel)]=
"room.enable_priority"
>
<input
id=
"enable_priority"
name=
"enable_priority"
type=
"checkbox"
[(ngModel)]=
"room.enable_priority"
>
<label
i18n
for=
"enable_priority"
>
允许启动效果优先权
</label>
</div>
<div
class=
"checkbox"
>
<label
i18n
>
不检查卡组
</label><input
name=
"no_check_deck"
type=
"checkbox"
[(ngModel)]=
"room.no_check_deck"
>
<input
id=
"no_check_deck"
name=
"no_check_deck"
type=
"checkbox"
[(ngModel)]=
"room.no_check_deck"
>
<label
i18n
for=
"no_check_deck"
>
不检查卡组
</label>
</div>
<div
class=
"checkbox"
>
<label
i18n
>
开局不洗卡组
</label><input
name=
"no_shuffle_deck"
type=
"checkbox"
[(ngModel)]=
"room.no_shuffle_deck"
>
<input
id=
"no_shuffle_deck"
name=
"no_shuffle_deck"
type=
"checkbox"
[(ngModel)]=
"room.no_shuffle_deck"
>
<label
for=
"no_shuffle_deck"
i18n
>
开局不洗卡组
</label>
</div>
</div>
</div>
...
...
apps.json
View file @
9e93ed3f
...
...
@@ -2187,9 +2187,9 @@
"description"
:
{
"zh-CN"
:
"A script engine for
\"
yu-gi-oh!
\"
and sample gui."
},
"category"
:
"
emulator
"
,
"category"
:
"
module
"
,
"tags"
:
[
"
yugioh
"
"
language
"
],
"dependencies"
:
{
"win32"
:
[
...
...
index.js
View file @
9e93ed3f
...
...
@@ -162,9 +162,9 @@ function createWindow() {
})
}
let
tray
;
function
createTray
()
{
console
.
log
(
'
create tray begin
'
);
let
tray
=
new
Tray
(
path
.
join
(
process
.
env
[
'
NODE_ENV
'
]
==
'
production
'
?
process
.
resourcesPath
:
app
.
getAppPath
(),
'
images
'
,
'
icon.ico
'
));
tray
=
new
Tray
(
path
.
join
(
process
.
env
[
'
NODE_ENV
'
]
==
'
production
'
?
process
.
resourcesPath
:
app
.
getAppPath
(),
'
images
'
,
'
icon.ico
'
));
tray
.
on
(
'
click
'
,
(
event
)
=>
{
mainWindow
.
isVisible
()
?
mainWindow
.
hide
()
:
mainWindow
.
show
();
});
...
...
@@ -183,23 +183,19 @@ function createTray() {
]);
tray
.
setToolTip
(
'
MyCard
'
);
tray
.
setContextMenu
(
contextMenu
);
console
.
log
(
'
create tray finish
'
);
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app
.
on
(
'
ready
'
,
()
=>
{
console
.
log
(
'
create window
'
);
createWindow
();
if
(
process
.
platform
==
'
win32
'
)
{
console
.
log
(
'
before create tray
'
);
createTray
()
}
if
(
process
.
env
[
'
NODE_ENV
'
]
==
'
production
'
)
{
autoUpdater
.
checkForUpdates
()
}
console
.
log
(
'
update
'
);
});
// Quit when all windows are closed.
...
...
locale/messages.en-US.xlf
View file @
9e93ed3f
...
...
@@ -298,7 +298,7 @@
</trans-unit>
<trans-unit
datatype=
"html"
id=
"d4038dd5d0e9d5139d425fc7bea40e40d965cc5b"
>
<source>
额外选项
</source>
<target>
Additional
Options
</target>
<target>
Additional
Options
</target>
</trans-unit>
<trans-unit
datatype=
"html"
id=
"01cfbee3f1d69f5adae299b7b8c8d75034aef53b"
>
...
...
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