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
syntax_j
mycard
Commits
35525669
Commit
35525669
authored
Aug 10, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sokuroll
parent
aea7f2fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
6 deletions
+16
-6
app/app-detail.component.html
app/app-detail.component.html
+2
-0
app/app-detail.component.ts
app/app-detail.component.ts
+5
-0
app/apps.service.ts
app/apps.service.ts
+9
-6
No files found.
app/app-detail.component.html
View file @
35525669
...
...
@@ -40,6 +40,8 @@
<i
class=
"fa fa-play"
aria-hidden=
"true"
></i>
<span
i18n
>
运行
</span></button>
<button
*ngIf=
"currentApp.actions.get('network')"
[disabled]=
"!appsService.allReady(currentApp)"
(click)=
"runApp(currentApp,'network')"
type=
"button"
class=
"btn btn-primary btn-sm"
>
<i
class=
"fa fa-play"
aria-hidden=
"true"
></i>
<span>
运行 (联机版)
</span></button>
<button
*ngIf=
"currentApp.runnable() && currentApp.id === 'th123' && currentApp.references.get('sokuroll').isReady()"
(click)=
"runRoll(currentApp)"
[disabled]=
"!appsService.allReady(currentApp)"
type=
"button"
class=
"btn btn-primary btn-sm"
>
<i
class=
"fa fa-play"
aria-hidden=
"true"
></i>
<span
i18n
>
运行 (Roll)
</span></button>
<button
i18n
*ngIf=
"currentApp.runnable() && currentApp.actions.get('custom')"
[disabled]=
"!appsService.allReady(currentApp)"
(click)=
"custom(currentApp)"
type=
"button"
class=
"btn btn-secondary btn-sm"
>
设置
</button>
...
...
app/app-detail.component.ts
View file @
35525669
...
...
@@ -203,6 +203,11 @@ export class AppDetailComponent implements OnInit, OnChanges {
this
.
appsService
.
runApp
(
app
,
'
custom
'
);
}
async
runRoll
(
app
:
App
)
{
await
this
.
appsService
.
runApp
(
app
,
'
roll_main
'
);
await
this
.
appsService
.
runApp
(
app
,
'
roll
'
);
}
async
importGame
(
targetApp
:
App
,
option
:
InstallOption
,
referencesInstall
:
{
[
id
:
string
]:
boolean
})
{
$
(
'
#import-modal
'
).
modal
(
'
hide
'
);
let
dir
=
path
.
dirname
(
this
.
import_path
);
...
...
app/apps.service.ts
View file @
35525669
...
...
@@ -767,19 +767,22 @@ export class AppsService {
const
handle
=
await
app
.
spawnApp
(
children
,
action_name
);
handle
.
stdout
.
on
(
'
data
'
,
(
data
)
=>
{
console
.
log
(
`stdout:
${
data
}
`
);
console
.
log
(
`
${
app
.
id
}
${
action_name
}
stdout:
${
data
}
`
);
});
handle
.
stderr
.
on
(
'
data
'
,
(
data
)
=>
{
console
.
log
(
`stderr:
${
data
}
`
);
console
.
log
(
`
${
app
.
id
}
${
action_name
}
stderr:
${
data
}
`
);
});
handle
.
on
(
'
close
'
,
(
code
)
=>
{
console
.
log
(
`child process exited with code
${
code
}
`
);
remote
.
getCurrentWindow
().
restore
();
console
.
log
(
`
${
app
.
id
}
${
action_name
}
: child process exited with code
${
code
}
`
);
if
(
action_name
!==
'
roll
'
)
{
remote
.
getCurrentWindow
().
restore
();
}
});
remote
.
getCurrentWindow
().
minimize
();
if
(
action_name
!==
'
roll
'
)
{
remote
.
getCurrentWindow
().
minimize
();
}
}
browse
(
app
:
App
)
{
...
...
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