Skip to content

Commit

Permalink
Theme Central - Opening window when already open
Browse files Browse the repository at this point in the history
  • Loading branch information
acvxqs committed Jul 31, 2016
1 parent fbdf630 commit c6dfcf2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions script/newtheme.mrc
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ disps Theme saved as ' $+ %file $+ '
}
elseif ($dialog(pnp.mts)) {
dialog -v pnp.mts
if (($1 isnum) && ($gettok($did(501,$1),1,32) != $null)) {
did -c $dname 501 $1
if (($1 isnum) && ($gettok($did(pnp.mts,501,$1),1,32) != $null)) {
did -c pnp.mts 501 $1
page.show $1
}
}
Expand Down Expand Up @@ -692,11 +692,11 @@ alias -l update.sound {
}
; Returns currently selected item, if any
alias -l curr.item {
return $did(416,$did(404,1).sel)
return $did(pnp.mts,416,$did(pnp.mts,404,1).sel)
}
; Returns sound of currently selected item, if any
alias -l curr.sound {
return $gettok($did(415,$didwm(415,Snd $+ $curr.item *,1)),2-,32)
return $gettok($did(pnp.mts,415,$didwm(pnp.mts,415,Snd $+ $curr.item *,1)),2-,32)
}

; Save Theme area events
Expand Down Expand Up @@ -1093,10 +1093,10 @@ did -ra pnp.mts 508 Preview >>
}

; (do nothing if same page as before)
if ($did(503) == $1) return
if ($did(pnp.mts,503) == $1) return

; If area hasn't been visited yet, we must prep it
if ($did(502,$1) == 0) {
if ($did(pnp.mts,502,$1) == 0) {
; 1/2/3/4/6 use colors, so while we prep, hide them
if ($istok(1.2.3.4.6,$1,46)) did -c pnp.mts 19

Expand Down
12 changes: 6 additions & 6 deletions script/ptm/NEWTHEME.ptm
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ alias theme {
}
elseif ($dialog(pnp.mts)) {
dialog -v pnp.mts
if (($1 isnum) && ($gettok($did(501,$1),1,32) != $null)) {
did -c $dname 501 $1
if (($1 isnum) && ($gettok($did(pnp.mts,501,$1),1,32) != $null)) {
did -c pnp.mts 501 $1
page.show $1
}
}
Expand Down Expand Up @@ -693,11 +693,11 @@ alias -l update.sound {
}
; Returns currently selected item, if any
alias -l curr.item {
return $did(416,$did(404,1).sel)
return $did(pnp.mts,416,$did(404,1).sel)
}
; Returns sound of currently selected item, if any
alias -l curr.sound {
return $gettok($did(415,$didwm(415,Snd $+ $curr.item *,1)),2-,32)
return $gettok($did(pnp.mts,415,$didwm(pnp.mts,415,Snd $+ $curr.item *,1)),2-,32)
}

; Save Theme area events
Expand Down Expand Up @@ -1094,10 +1094,10 @@ alias -l page.show {
}

; (do nothing if same page as before)
if ($did(503) == $1) return
if ($did(pnp.mts,503) == $1) return

; If area hasn't been visited yet, we must prep it
if ($did(502,$1) == 0) {
if ($did(pnp.mts,502,$1) == 0) {
; 1/2/3/4/6 use colors, so while we prep, hide them
if ($istok(1.2.3.4.6,$1,46)) did -c pnp.mts 19

Expand Down

0 comments on commit c6dfcf2

Please sign in to comment.