mirror of
https://github.com/onyx-and-iris/voicemeeter-api-powershell.git
synced 2026-04-09 17:33:33 +00:00
existing to methods
prelim manual testing passes for potato
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class Special : IRemote {
|
||||
Special ([Object]$remote) : base ($remote) {
|
||||
AddActionMembers -PARAMS @('restart', 'shutdown', 'show')
|
||||
AddActionMembers -PARAMS @('restart', 'shutdown', 'show', 'lock')
|
||||
}
|
||||
|
||||
[string] identifier () {
|
||||
@@ -17,32 +17,21 @@ class Special : IRemote {
|
||||
Stop-Process -Name 'VoicemeeterMacroButtons'
|
||||
}
|
||||
|
||||
hidden $_hide = $($this | Add-Member ScriptProperty 'hide' `
|
||||
{
|
||||
$this._hide = $this.Setter('show', $false)
|
||||
} `
|
||||
{}
|
||||
)
|
||||
[void] Hide () {
|
||||
$this.Setter('show', $false)
|
||||
}
|
||||
|
||||
hidden $_showvbanchat = $($this | Add-Member ScriptProperty 'showvbanchat' `
|
||||
{
|
||||
$this.Getter('DialogShow.VBANCHAT')
|
||||
} `
|
||||
{
|
||||
param([bool]$arg)
|
||||
$this._showvbanchat = $this.Setter('DialogShow.VBANCHAT', $arg)
|
||||
}
|
||||
)
|
||||
[void] Unlock () {
|
||||
$this.Setter('lock', $false)
|
||||
}
|
||||
|
||||
hidden $_lock = $($this | Add-Member ScriptProperty 'lock' `
|
||||
{
|
||||
$this._lock = $this.Getter('lock')
|
||||
} `
|
||||
{
|
||||
param([bool]$arg)
|
||||
$this._lock = $this.Setter('lock', $arg)
|
||||
}
|
||||
)
|
||||
[void] ShowVBANChat () {
|
||||
$this.Setter('DialogShow.VBANCHAT', $true)
|
||||
}
|
||||
|
||||
[void] HideVBANChat () {
|
||||
$this.Setter('DialogShow.VBANCHAT', $false)
|
||||
}
|
||||
|
||||
[void] Load ([string]$filename) {
|
||||
$this.Setter('load', $filename)
|
||||
|
||||
Reference in New Issue
Block a user