mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 00:33:50 +02:00
New age gated instance
This commit is contained in:
@@ -1332,6 +1332,7 @@ speechSynthesis.getVoices();
|
||||
roleRestricted: false, // only present with group instance type
|
||||
instancePersistenceEnabled: null,
|
||||
playerPersistenceEnabled: null,
|
||||
ageGate: null,
|
||||
// VRCX
|
||||
$fetchedAt: '',
|
||||
...json
|
||||
@@ -12571,6 +12572,7 @@ speechSynthesis.getVoices();
|
||||
'instanceDialogGroupAccessType',
|
||||
'plus'
|
||||
),
|
||||
ageGate: await configRepository.getBool('instanceDialogAgeGate', false),
|
||||
strict: false,
|
||||
location: '',
|
||||
shortName: '',
|
||||
@@ -12744,6 +12746,9 @@ speechSynthesis.getVoices();
|
||||
params.canRequestInvite = true;
|
||||
}
|
||||
}
|
||||
if (D.ageGate) {
|
||||
params.ageGate = true;
|
||||
}
|
||||
try {
|
||||
var args = await API.createInstance(params);
|
||||
D.location = args.json.location;
|
||||
@@ -12827,6 +12832,10 @@ speechSynthesis.getVoices();
|
||||
'instanceDialogQueueEnabled',
|
||||
this.newInstanceDialog.queueEnabled
|
||||
);
|
||||
await configRepository.setBool(
|
||||
'instanceDialogAgeGate',
|
||||
this.newInstanceDialog.ageGate
|
||||
);
|
||||
};
|
||||
|
||||
$app.methods.showNewInstanceDialog = async function (tag) {
|
||||
|
||||
Reference in New Issue
Block a user