Skip to content

Panorama API — Panels

Global

Global VScripts functions

Methods

Method Return Type Native Name Description
usesBaseImplementation(methodName: String) Boolean = Returns true when [methodName] has not been overridden in any subclass — i.e., the declaring class of the resolved method is still [PanelBase]. Used by [overriddenFunctionEventCalls] to decide which event functions have been overridden.
runScriptInPanelContext(script: String) Unit = externalSource() RunScriptInPanelContext
addClass(name: String) Unit = externalSource() AddClass
addClasses(vararg args: Any) Unit = externalSource() AddClasses
removeClass(name: String) Unit = externalSource() RemoveClass
removeClasses(vararg args: Any) Unit = externalSource() RemoveClasses
ascendantHasClass(name: String) Boolean = externalSource() BAscendantHasClass
hasClass(name: String) Boolean = externalSource() BHasClass
toggleClass(name: String) Unit = externalSource() ToggleClass
triggerClass(name: String) Unit = externalSource() TriggerClass
clearPanelEvent(event: PanelEvent) Unit = externalSource() ClearPanelEvent
getChild(index: Int) Panel? = externalSource() GetChild
getChildIndex(child: Panel) Int = externalSource() GetChildIndex
children() List<Panel> = emptyList() Children
findChildrenWithClassTraverse(classname: String) List<Panel> = externalSource() FindChildrenWithClassTraverse
findChildrenWithAttributeTraverse(attribute: String) List<Panel> = externalSource() FindChildrenWithAttributeTraverse
getParent() Panel? = null GetParent
setParent(parent: Panel) Unit = externalSource() SetParent
findChild(childId: String) Panel? = externalSource() FindChild
findChildTraverse(childId: String) Panel? = externalSource() FindChildTraverse
findChildInLayoutFile(childId: String) Panel? = externalSource() FindChildInLayoutFile
findPanelInThisOrParentLayoutFile(id: String) Panel? = externalSource() FindPanelInThisOrParentLayoutFile
findAncestor(id: String) Panel? = externalSource() FindAncestor
removeAndDeleteChildren() Unit = externalSource() RemoveAndDeleteChildren
getPositionWithinWindow() Map<String, Int> = emptyMap() GetPositionWithinWindow
getPositionWithinAncestor(ancestor: Panel) Map<String, Int> = emptyMap() GetPositionWithinAncestor
getPosition(arg1: Boolean) Map<String, Int> = emptyMap() GetPosition
applyStyles(bool: Boolean) Unit = externalSource() ApplyStyles
clearPropertyFromCode(property: String) Unit = externalSource() ClearPropertyFromCode
deleteAsync(time: Float) Unit = externalSource() DeleteAsync
setFocus() Unit = externalSource() SetFocus
updateFocusInContext() Unit = externalSource() UpdateFocusInContext
setDisableFocusOnMouseDown(value: Boolean) Unit = externalSource() SetDisableFocusOnMouseDown
loadLayoutSnippet(snippetName: String) Boolean = externalSource() BLoadLayoutSnippet
hasLayoutSnippet(snippetName: String) Boolean = externalSource() BHasLayoutSnippet
getSnippetNames(vararg args: Any) Unit = externalSource() BGetSnippetNames
setTopOfInputContext(value: Boolean) Unit = externalSource() SetTopOfInputContext
scrollToTop() Unit = externalSource() ScrollToTop
scrollToBottom() Unit = externalSource() ScrollToBottom
scrollToLeftEdge() Unit = externalSource() ScrollToLeftEdge
scrollToRightEdge() Unit = externalSource() ScrollToRightEdge
playPanelSound(name: String) Number = externalSource() PlayPanelSound
setInputNamespace(namespace: String) Unit = externalSource() SetInputNamespace
registerForReadyEvents(callback: (event: Any) -> Unit) Unit = externalSource() RegisterForReadyEvents
data(vararg args: Any) Unit = externalSource() Data
setSendScrollPositionChangedEvents(value: Boolean) Unit = externalSource() SetSendScrollPositionChangedEvents
setCompositionLayerTextureName(name: String) Unit = externalSource() SetCompositionLayerTextureName
writeCompositionLayerPNG(path: String) Unit = externalSource() WriteCompositionLayerPNG
setImage(path: String) Unit = externalSource() SetImage
setScaling(scale: ScalingFunction) Unit = externalSource() SetScaling
setLocString(token: String) Unit = externalSource() SetLocString
setAlreadyLocalizedText(token: String) Unit = externalSource() SetAlreadyLocalizedText
raiseChangeEvents(bool: Boolean) Unit = externalSource() RaiseChangeEvents
selectAll() Unit = externalSource() SelectAll
clearSelection() Unit = externalSource() ClearSelection
hasOption(id: String) Boolean = externalSource() HasOption
addOption(panel: Panel) Unit = externalSource() AddOption
removeOption(id: String) Unit = externalSource() RemoveOption
removeAllOptions() Unit = externalSource() RemoveAllOptions
setSelected(id: String) Unit = externalSource() SetSelected
accessDropDownMenu() Panel? = null AccessDropDownMenu
findDropDownMenuChild(string: String) Panel? = externalSource() FindDropDownMenuChild
setSelectedIndex(index: Int) Unit = externalSource() SetSelectedIndex
setSelected(value: Boolean) Unit = externalSource() SetSelected

DOTAHeroModelOverlay

Native name: DOTAHeroModelOverlay


DOTAPlay

Native name: DOTAPlay


TabButton

Native name: TabButton


CustomUIElement

Native name: CustomUIElement


Global

Global VScripts functions

Methods

Method Return Type Native Name Description
startAnimating() Unit = externalSource() StartAnimating
stopAnimating() Unit = externalSource() StopAnimating
setMovie(source: String) Unit = externalSource() SetMovie
setControls(controls: MovieControls) Unit = externalSource() SetControls
setTitle(title: String) Unit = externalSource() SetTitle
play() Unit = externalSource() Play
pause() Unit = externalSource() Pause
stop() Unit = externalSource() Stop
setRepeat(repeat: Boolean) Unit = externalSource() SetRepeat
setPlaybackVolume(volume: Float) Unit = externalSource() SetPlaybackVolume
getPanoramaSurfacePanel() Panel? = null GetPanoramaSurfacePanel
setScenePanelToLocalHero(heroId: Any) Boolean = externalSource() SetScenePanelToLocalHero
setPostProcessFade(value: Float) Unit = externalSource() SetPostProcessFade
setCustomPostProcessMaterial(material: String) Unit = externalSource() SetCustomPostProcessMaterial
reloadScene() Unit = externalSource() ReloadScene
clearScene(unknown1: Boolean) Unit = externalSource() ClearScene
startParticles() Unit = externalSource() StartParticles
stopParticlesImmediately(b: Boolean) Unit = externalSource() StopParticlesImmediately
stopParticlesWithEndcaps() Unit = externalSource() StopParticlesWithEndcaps
setItemByDefinition(itemDef: Int) Unit = externalSource() SetItemByDefinition
setAccountID(accountid: Int) Unit = externalSource() SetAccountID
setDirection(value: Any) Unit = externalSource() SetDirection
setRequiresSelection(value: Boolean) Unit = externalSource() SetRequiresSelection
setShowDefaultValue(value: Boolean) Unit = externalSource() SetShowDefaultValue
setValueNoEvents(value: Float) Unit = externalSource() SetValueNoEvents
setSelectedChild(selected: Panel) Unit = externalSource() SetSelectedChild
setURL(url: String) Unit = externalSource() SetURL
setIgnoreCursor(value: Boolean) Unit = externalSource() SetIgnoreCursor
runJavascript(js: String) Unit = externalSource() RunJavascript