Change requested
This commit is contained in:
parent
12da5e64f8
commit
95d8cf9257
@ -85,5 +85,5 @@ WA.ui.registerMenuCommand("test", () => {
|
|||||||
```
|
```
|
||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<img src="./assets/menu-command.png" class="figure-img img-fluid rounded" alt="" />
|
<img src="https://workadventu.re/img/docs/menu-command.png" class="figure-img img-fluid rounded" alt="" />
|
||||||
</div>
|
</div>
|
Binary file not shown.
Before Width: | Height: | Size: 9.6 KiB |
@ -23,7 +23,7 @@ class WorkadventureChatCommands extends IframeApiContribution<WorkadventureChatC
|
|||||||
data: {
|
data: {
|
||||||
'message': message,
|
'message': message,
|
||||||
'author': author
|
'author': author
|
||||||
} as ChatEvent
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
|
|||||||
"type": 'openTab',
|
"type": 'openTab',
|
||||||
"data": {
|
"data": {
|
||||||
url
|
url
|
||||||
} as OpenTabEvent
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
|
|||||||
"type": 'goToPage',
|
"type": 'goToPage',
|
||||||
"data": {
|
"data": {
|
||||||
url
|
url
|
||||||
} as GoToPageEvent
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
|
|||||||
"type": 'loadPage',
|
"type": 'loadPage',
|
||||||
"data": {
|
"data": {
|
||||||
url
|
url
|
||||||
} as LoadPageEvent
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ class WorkadventureNavigationCommands extends IframeApiContribution<Workadventur
|
|||||||
"type": 'openCoWebSite',
|
"type": 'openCoWebSite',
|
||||||
"data": {
|
"data": {
|
||||||
url
|
url
|
||||||
} as OpenCoWebSiteEvent
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -101,10 +101,10 @@ class WorkadventureRoomCommands extends IframeApiContribution<WorkadventureRoomC
|
|||||||
subject.subscribe(callback);
|
subject.subscribe(callback);
|
||||||
}
|
}
|
||||||
showLayer(layerName: string): void {
|
showLayer(layerName: string): void {
|
||||||
sendToWorkadventure({type: 'showLayer', data: {'name': layerName} as LayerEvent});
|
sendToWorkadventure({type: 'showLayer', data: {'name': layerName}});
|
||||||
}
|
}
|
||||||
hideLayer(layerName: string): void {
|
hideLayer(layerName: string): void {
|
||||||
sendToWorkadventure({type: 'hideLayer', data: {'name': layerName} as LayerEvent});
|
sendToWorkadventure({type: 'hideLayer', data: {'name': layerName}});
|
||||||
}
|
}
|
||||||
setProperty(layerName: string, propertyName: string, propertyValue: string | number | boolean | undefined): void {
|
setProperty(layerName: string, propertyName: string, propertyValue: string | number | boolean | undefined): void {
|
||||||
sendToWorkadventure({
|
sendToWorkadventure({
|
||||||
@ -113,7 +113,7 @@ class WorkadventureRoomCommands extends IframeApiContribution<WorkadventureRoomC
|
|||||||
'layerName': layerName,
|
'layerName': layerName,
|
||||||
'propertyName': propertyName,
|
'propertyName': propertyName,
|
||||||
'propertyValue': propertyValue,
|
'propertyValue': propertyValue,
|
||||||
} as SetPropertyEvent
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
getCurrentRoom(): Promise<Room> {
|
getCurrentRoom(): Promise<Room> {
|
||||||
|
@ -90,7 +90,7 @@ class WorkAdventureUiCommands extends IframeApiContribution<WorkAdventureUiComma
|
|||||||
'type': 'registerMenuCommand',
|
'type': 'registerMenuCommand',
|
||||||
'data': {
|
'data': {
|
||||||
menutItem: commandDescriptor
|
menutItem: commandDescriptor
|
||||||
} as MenuItemRegisterEvent
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -432,15 +432,15 @@ export class MediaManager {
|
|||||||
}
|
}
|
||||||
element.classList.add('active');
|
element.classList.add('active');
|
||||||
element.childNodes.forEach((value: ChildNode, index) => {
|
element.childNodes.forEach((value: ChildNode, index) => {
|
||||||
const elementChildre = element.children.item(index);
|
const elementChildren = element.children.item(index);
|
||||||
if (!elementChildre) {
|
if (!elementChildren) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
elementChildre.classList.remove('active');
|
elementChildren.classList.remove('active');
|
||||||
if ((index + 1) > volume) {
|
if ((index + 1) > volume) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
elementChildre.classList.add('active');
|
elementChildren.classList.add('active');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user