Add shared contract launcher link
This commit is contained in:
parent
d1632dc5d8
commit
0074f0e10c
2 changed files with 14 additions and 0 deletions
|
|
@ -673,6 +673,16 @@ function openRepo(): void {
|
|||
window.location.assign("https://repo.andraxion.net/");
|
||||
}
|
||||
|
||||
function openSharedContractNote(): void {
|
||||
const noteUrl = new URL("./Future - Shared Contract.html", window.location.href);
|
||||
const popup = window.open(noteUrl.toString(), "_blank", "noopener,noreferrer");
|
||||
if (popup) {
|
||||
popup.focus();
|
||||
return;
|
||||
}
|
||||
window.location.assign(noteUrl.toString());
|
||||
}
|
||||
|
||||
function openAdminPanelWindow(): boolean {
|
||||
const nextUrl = new URL(window.location.href);
|
||||
nextUrl.searchParams.set("admin", "requests");
|
||||
|
|
@ -1354,6 +1364,9 @@ function WorldshaperLauncher() {
|
|||
<button type="button" className="launcher-primary-btn" onClick={() => void handleLaunch()} disabled={isBusy}>
|
||||
Launch
|
||||
</button>
|
||||
<button type="button" className="launcher-secondary-btn" onClick={openSharedContractNote} disabled={isBusy}>
|
||||
Shared Contract
|
||||
</button>
|
||||
<button type="button" className="launcher-secondary-btn" onClick={openRepo} disabled={isBusy}>
|
||||
Open Repo
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ export default defineConfig({
|
|||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(__dirname, "index.html"),
|
||||
futureSharedContract: resolve(__dirname, "Future - Shared Contract.html"),
|
||||
worldshaperStudio: resolve(__dirname, "worldshaper-studio.html"),
|
||||
worldshaperHeightViewer: resolve(__dirname, "worldshaper-height-viewer.html"),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue