mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-02 21:16:07 +02:00
Support launch URLs, Fixes
This commit is contained in:
@@ -346,10 +346,14 @@ namespace VRCX
|
|||||||
|
|
||||||
public void FocusWindow()
|
public void FocusWindow()
|
||||||
{
|
{
|
||||||
if (MainForm.Instance.WindowState == FormWindowState.Minimized)
|
MainForm.Instance.Invoke(new Action(() =>
|
||||||
MainForm.Instance.WindowState = FormWindowState.Normal;
|
{
|
||||||
MainForm.Instance.Show();
|
if (MainForm.Instance.WindowState == FormWindowState.Minimized)
|
||||||
MainForm.Instance.Activate();
|
MainForm.Instance.WindowState = FormWindowState.Normal;
|
||||||
|
|
||||||
|
MainForm.Instance.Show();
|
||||||
|
MainForm.Instance.Activate();
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
public string FollowUrl(string url)
|
public string FollowUrl(string url)
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ Section "Install" SecInstall
|
|||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
|
|
||||||
File /r /x *.log "..\bin\x64\Release\*.*"
|
File /r /x *.log /x *.pdb "..\bin\x64\Release\*.*"
|
||||||
|
|
||||||
WriteRegStr HKLM "Software\VRCX" "InstallDir" $INSTDIR
|
WriteRegStr HKLM "Software\VRCX" "InstallDir" $INSTDIR
|
||||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||||
|
|||||||
+11
-8
@@ -59,16 +59,19 @@ namespace VRCX
|
|||||||
/// <param name="forms"></param>
|
/// <param name="forms"></param>
|
||||||
public static void SetThemeToGlobal(List<Form> forms)
|
public static void SetThemeToGlobal(List<Form> forms)
|
||||||
{
|
{
|
||||||
//For each form, set the theme, then move focus onto it to force refresh
|
MainForm.Instance.Invoke(new Action(() =>
|
||||||
foreach(Form form in forms)
|
|
||||||
{
|
{
|
||||||
//Set the theme of the window
|
//For each form, set the theme, then move focus onto it to force refresh
|
||||||
SetThemeToGlobal(form.Handle);
|
foreach (Form form in forms)
|
||||||
|
{
|
||||||
|
//Set the theme of the window
|
||||||
|
SetThemeToGlobal(form.Handle);
|
||||||
|
|
||||||
//Change opacity to foce full redraw
|
//Change opacity to foce full redraw
|
||||||
form.Opacity = 0.99999;
|
form.Opacity = 0.99999;
|
||||||
form.Opacity = 1;
|
form.Opacity = 1;
|
||||||
}
|
}
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void SetThemeToGlobal(IntPtr handle)
|
private static void SetThemeToGlobal(IntPtr handle)
|
||||||
|
|||||||
+3
-3
@@ -19365,16 +19365,16 @@ speechSynthesis.getVoices();
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$app.methods.eventLaunchCommand = function (command) {
|
$app.methods.eventLaunchCommand = function (input) {
|
||||||
if (!API.isLoggedIn) {
|
if (!API.isLoggedIn) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var args = command.split('/');
|
var args = input.split('/');
|
||||||
var command = args[0];
|
var command = args[0];
|
||||||
var commandArg = args[1];
|
var commandArg = args[1];
|
||||||
switch (command) {
|
switch (command) {
|
||||||
case 'world':
|
case 'world':
|
||||||
this.showWorldDialog(commandArg);
|
this.directAccessWorld(input.replace('world/', ''));
|
||||||
break;
|
break;
|
||||||
case 'avatar':
|
case 'avatar':
|
||||||
this.showAvatarDialog(commandArg);
|
this.showAvatarDialog(commandArg);
|
||||||
|
|||||||
+2
-3
@@ -2993,14 +2993,13 @@ html
|
|||||||
el-dropdown-menu(#default="dropdown")
|
el-dropdown-menu(#default="dropdown")
|
||||||
template(v-for="groupAPI in API.favoriteWorldGroups" :key="groupAPI.name")
|
template(v-for="groupAPI in API.favoriteWorldGroups" :key="groupAPI.name")
|
||||||
el-dropdown-item(style="display:block;margin:10px 0" @click.native="selectWorldImportGroup(groupAPI)" :disabled="groupAPI.count >= groupAPI.capacity") {{ groupAPI.displayName }} ({{ groupAPI.count }}/{{ groupAPI.capacity }})
|
el-dropdown-item(style="display:block;margin:10px 0" @click.native="selectWorldImportGroup(groupAPI)" :disabled="groupAPI.count >= groupAPI.capacity") {{ groupAPI.displayName }} ({{ groupAPI.count }}/{{ groupAPI.capacity }})
|
||||||
el-button(size="small" @click="importWorldImportTable" style="margin:10px" :disabled="worldImportTable.data.length === 0 || !worldImportDialog.worldImportFavoriteGroup") Import Worlds
|
el-button(size="small" @click="importWorldImportTable" style="margin:5px" :disabled="worldImportTable.data.length === 0 || !worldImportDialog.worldImportFavoriteGroup") Import Worlds
|
||||||
span(v-if="worldImportDialog.worldImportFavoriteGroup") {{ worldImportTable.data.length }} / {{ worldImportDialog.worldImportFavoriteGroup.capacity - worldImportDialog.worldImportFavoriteGroup.count }}
|
span(v-if="worldImportDialog.worldImportFavoriteGroup") {{ worldImportTable.data.length }} / {{ worldImportDialog.worldImportFavoriteGroup.capacity - worldImportDialog.worldImportFavoriteGroup.count }}
|
||||||
span(v-if="worldImportDialog.importProgress" style="margin:10px") Import Progress: {{ worldImportDialog.importProgress }}/{{ worldImportDialog.importProgressTotal }}
|
span(v-if="worldImportDialog.importProgress" style="margin:10px") Import Progress: {{ worldImportDialog.importProgress }}/{{ worldImportDialog.importProgressTotal }}
|
||||||
br
|
br
|
||||||
el-button(size="small" @click="clearWorldImportTable") Clear Table
|
el-button(size="small" @click="clearWorldImportTable") Clear Table
|
||||||
br
|
|
||||||
template(v-if="worldImportDialog.errors")
|
template(v-if="worldImportDialog.errors")
|
||||||
el-button(size="small" @click="worldImportDialog.errors = ''") Clear Errors
|
el-button(size="small" @click="worldImportDialog.errors = ''" style="margin-left:5px") Clear Errors
|
||||||
h2(style="font-weight:bold;margin:0") Errors:
|
h2(style="font-weight:bold;margin:0") Errors:
|
||||||
pre(v-text="worldImportDialog.errors" style="white-space:pre-wrap;font-size:12px")
|
pre(v-text="worldImportDialog.errors" style="white-space:pre-wrap;font-size:12px")
|
||||||
data-tables(v-if="worldImportDialog.visible" v-bind="worldImportTable" v-loading="worldImportDialog.loading" style="margin-top:10px")
|
data-tables(v-if="worldImportDialog.visible" v-bind="worldImportTable" v-loading="worldImportDialog.loading" style="margin-top:10px")
|
||||||
|
|||||||
Reference in New Issue
Block a user