#!/bin/sh # MetaCard 2.4 stack # The following is not ASCII text, # so now would be a good time to q out of more exec mc $0 "$@" T revAltPlugin1 on openStack palette this stack if word 1 of the systemVersion is "NT" and word 2 of the systemVersion > 5 then put queryRegistry("HKEY_CURRENT_USER\Control Panel\Colors\MenuBar") into tColor if tColor <> "" then put word 1 of tColor,word 2 of tColor,word 3 of tColor into tColor set the backgroundColor of this stack to tColor end if end if lock screen loadAltPlugs unlock screen send "answerVersion" to me in 20 milliseconds end openStack on answerVersion if exists(stack "revMenuBar") then put "RunRev version: " & revAppVersion() & return & "MetaCard engine version: " & the version & return & "Build Number: " & the buildNumber into theMsg else put "MetaCard engine version: " & the version & return & "Build Number: " & the buildNumber into theMsg end if put theMsg end answerVersion on killAllIcons repeat with x = the number of imgs in this stack down to 1 if the short name of img x is "altPlug.png" then delete img x end repeat end killAllIcons on loadAltPlugs --lock screen killAllIcons --lock messages put the short name of me into gMyName put the defaultfolder into toldDF put the fileName of me into tFile set itemDel to "/" delete last item of tFile set itemDel to "," set the defaultFolder to tFile & "/altPlugins" -- set the defaultfolder to toldDF & "/plugins" --put the files put the files into tFiles sort lines of tFiles put the topLeft of img "square.png" of stack gMyName into tTL --put gMyName & ".rev" into tMyStackName repeat for each line l in tFiles if "alt" is in l then open inv stack l --breakpoint --check to see if there is a icon for this plugin if exists(img "altPlug.png" of stack l) then copy img "altPlug.png" of stack l to stack gMyName set the topLeft of last img of stack gMyName to tTL put 32 + item 2 of tTL into item 2 of tTL delete stack l else delete stack l end if end if end repeat set the topLeft of img "bot.png" of stack gMyName to tTL set the layer of btn "btnborder" of stack gMyName to top set the defaultfolder to toldDF set the height of stack gMyName to the bottom of img "bot.png" of stack gMyName set the width of stack gMyName to 32 hide btn "btnborder" of stack gMyName show me --unlock messages --unlock screen end loadAltPlugs on SnicktMe tDir if tDir contains "L" then set the left of this stack to 0 end if if tDir contains "R" then set the right of this stack to item 3 of the screenRect end if if tDir contains "T" then set the top of this stack to 0 end if end SnicktMe on mouseMove if the short name of the target is "altPlug.png" then set the loc of btn "btnborder" to the loc of the target show btn "btnborder" else hide btn "btnborder" end if end mouseMove on mouseDown theButton if the short name of the target is "altPlug.png" then set the topColor of btn "btnborder" to 0,0,55 set the bottomColor of btn "btnborder" to 0,204,255 if theButton is 3 then --set the altRightClick of me to true set the altTargetID of me to the id of the target set the text of btn "altPlugMenu" to the altMenu of the target show btn "altPlugMenu" popup btn "altPlugMenu" end if end if end mouseDown end mouseDown on mouseDoubleDown mouseDown end mouseDoubleDown on mouseUp --if the altRightClick of me is not true then if the short name of the target is "altPlug.png" then set the topColor of btn "btnborder" to 0,204,255 set the bottomColor of btn "btnborder" to 0,0,55 put the altOnClickMe of the target into tToDoScript put the altOpenVisible of the target into tShowStack put the altPlugFileName of the target into tStackName put the filename of me into tFile set itemDel to "/" delete last item of tFile put "/altPlugins/"&tStackName after tFile put "send " & tToDoScript & " to stack " & quote & tFile & quote into tDo if tShowStack is true then palette stack tFile do tDo else hide stack tFile do tDo delete stack tFile end if end if -- end if end mouseUp on mouseDoubleUp mouseUp end mouseDoubleUp on mouseLeave if the short name of the target is "altPlug.png" then set the topColor of btn "btnborder" to 0,204,255 set the bottomColor of btn "btnborder" to 0,0,55 end if end mouseLeave w  revstackfalse altTargetID1360altRightClicktrue  cREVLoadInfoloadstartup cREVGeneralscriptChecksumTM;ԈFtf bookmarks handlerListopenStack answerVersion killAllIcons loadAltPlugs SnicktMe mouseMove mouseDown mouseDoubleDown mouseUp mouseDoubleUp mouseLeave tempScript prevHandler answerVersionscriptSelectionchar 420 to 419script4

on openStack

palette this stack

if word 1 of the systemVersion is "NT" and word 2 of the systemVersion > 5 then

put queryRegistry("HKEY_CURRENT_USER\Control Panel\Colors\MenuBar") into tColor

if tColor <> "" then

put word 1 of tColor,word 2 of tColor,word 3 of tColor into tColor

set the backgroundColor of this stack to tColor

end if

end if

lock screen

loadAltPlugs

unlock screen

send "answerVersion" to me in 20 milliseconds

end openStack

on answerVersion

if exists(stack "revMenuBar") then

put "RunRev version: " & revAppVersion() & return & "MetaCard engine version: " & the version & return & "Build Number: " & the buildNumber into theMsg

else

put "MetaCard engine version: " & the version & return & "Build Number: " & the buildNumber into theMsg

end if

put theMsg

end answerVersion

on killAllIcons

repeat with x = the number of imgs in this stack down to 1

if the short name of img x is "altPlug.png" then delete img x

end repeat

end killAllIcons

on loadAltPlugs

--lock screen

killAllIcons

--lock messages

put the short name of me into gMyName

put the defaultfolder into toldDF

put the fileName of me into tFile

set itemDel to "/"

delete last item of tFile

set itemDel to ","

set the defaultFolder to tFile & "/altPlugins"

-- set the defaultfolder to toldDF & "/plugins"

--put the files

put the files into tFiles

sort lines of tFiles

put the topLeft of img "square.png" of stack gMyName into tTL

--put gMyName & ".rev" into tMyStackName

repeat for each line l in tFiles

if "alt" is in l then

open inv stack l

--breakpoint

--check to see if there is a icon for this plugin

if exists(img "altPlug.png" of stack l) then

copy img "altPlug.png" of stack l to stack gMyName

set the topLeft of last img of stack gMyName to tTL

put 32 + item 2 of tTL into item 2 of tTL

delete stack l

else

delete stack l

end if

end if

end repeat

set the topLeft of img "bot.png" of stack gMyName to tTL

set the layer of btn "btnborder" of stack gMyName to top

set the defaultfolder to toldDF

set the height of stack gMyName to the bottom of img "bot.png" of stack gMyName

set the width of stack gMyName to 32

hide btn "btnborder" of stack gMyName

show me

--unlock messages

--unlock screen

end loadAltPlugs

on SnicktMe tDir

if tDir contains "L" then

set the left of this stack to 0

end if

if tDir contains "R" then

set the right of this stack to item 3 of the screenRect

end if

if tDir contains "T" then

set the top of this stack to 0

end if

end SnicktMe

on mouseMove

if the short name of the target is "altPlug.png" then

set the loc of btn "btnborder" to the loc of the target

show btn "btnborder"

else

hide btn "btnborder"

end if

end mouseMove

on mouseDown theButton

if the short name of the target is "altPlug.png" then

set the topColor of btn "btnborder" to 0,0,55

set the bottomColor of btn "btnborder" to 0,204,255

if theButton is 3 then

--set the altRightClick of me to true

set the altTargetID of me to the id of the target

set the text of btn "altPlugMenu" to the altMenu of the target

show btn "altPlugMenu"

popup btn "altPlugMenu"

end if

end if

end mouseDown

end mouseDown

on mouseDoubleDown

mouseDown

end mouseDoubleDown

on mouseUp

--if the altRightClick of me is not true then

if the short name of the target is "altPlug.png" then

set the topColor of btn "btnborder" to 0,204,255

set the bottomColor of btn "btnborder" to 0,0,55

put the altOnClickMe of the target into tToDoScript

put the altOpenVisible of the target into tShowStack

put the altPlugFileName of the target into tStackName

put the filename of me into tFile

set itemDel to "/"

delete last item of tFile

put "/altPlugins/"&tStackName after tFile

put "send " & tToDoScript & " to stack " & quote & tFile & quote into tDo

if tShowStack is true then

palette stack tFile

do tDo

else

hide stack tFile

do tDo

delete stack tFile

end if

end if

-- end if

end mouseUp

on mouseDoubleUp

mouseUp

end mouseDoubleUp

on mouseLeave

if the short name of the target is "altPlug.png" then

set the topColor of btn "btnborder" to 0,204,255

set the bottomColor of btn "btnborder" to 0,0,55

end if

end mouseLeave

 @  cREVGeneral bookmarks handlerList tempScript prevHandlerscriptSelection char 1 to 0scriptjPQRST square.png@# RPNG  IHDR gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATx$A 1> m{l0Ҿ+s"@'LҐ@CJ_F)ht UșIW%@Ƶ<1GKqJb0&Ѥ؂eԯ^q/3[ޅ4+c ]?V 0+]'jb.8#fXcO,@ V?X8fb$Fed`alri'8l &HlAiFpfbB@1ahH(10 8 rg@7 o>8{Fe`_1!$ ߖIENDB` cREVGeneral revUniqueID 1042844725319 altPlugPropson menuPick t switch t case "Set Location HERE" save this stack answer information "This control palette will open at this location" & cr & \ "the next time you launch." break case "Close" close this stack break case "Version" answer "Version Number: 0.9" break end switch send "altresetBtn" to img "top.png" in 10 milliseconds hide me exit to top end menuPick @ #"Set Location HERE Version - Close cREVGeneralscriptChecksumcۭ;_QE=) bookmarks revUniqueID 1042860792529 handlerListmenuPickscriptSelectionchar 186 to 185 prevHandler mouseDown tempScriptscriptG

on menuPick t

switch t

case "Set Location HERE"

save this stack

answer information "This control palette will open at this location" & cr & \

"the next time you launch."

break

case "Close"

close this stack

break

case "Version"

answer "Version Number: 0.9"

break

end switch

send "altresetBtn" to img "top.png" in 10 milliseconds

hide me

exit to top

end menuPick

j altPlugMenuon menuPick t --set the altRightClick of this stack to false put the altMenuHandlers of img id (the altTargetID of this stack) into tToDoScript put the menuHistory of me into t --put t && tToDoScript put line t of tToDoScript into tToDoScript put the altOpenVisable of img id (the altTargetID of this stack) into tShowStack put the altPlugFileName of img id (the altTargetID of this stack) into tStackName put the filename of this stack into tFile set itemDel to "/" delete last item of tFile put "/altPlugins/"&tStackName after tFile if tShowStack is true then open stack tFile else open inv stack tFile end if put "send " & tToDoScript & " to stack " & quote & tFile & quote into tDo do tDo hide me end menuPick @8P #Info - Version cREVGeneralscriptChecksumkR쮠9b bookmarks revUniqueID 1042860792529 handlerListmenuPickscriptSelection prevHandlermenuPick tempScriptscript

on menuPick t

--set the altRightClick of this stack to false

put the altMenuHandlers of img id (the altTargetID of this stack) into tToDoScript

put the menuHistory of me into t

--put t && tToDoScript

put line t of tToDoScript into tToDoScript

put the altOpenVisable of img id (the altTargetID of this stack) into tShowStack

put the altPlugFileName of img id (the altTargetID of this stack) into tStackName

put the filename of this stack into tFile

set itemDel to "/"

delete last item of tFile

put "/altPlugins/"&tStackName after tFile

if tShowStack is true then

open stack tFile

else

open inv stack tFile

end if

put "send " & tToDoScript & " to stack " & quote & tFile & quote into tDo

do tDo

hide me

end menuPick

bot.png @ PNG  IHDR {gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxbdcٕ 0J21HF7ï ߿2| } &3|'׏ ? K@(`hAeAf~4M_s_U2 R%lPɆhF5)3=v_/UrL P{K5 o8NBЦPGM j>ֆu~Z,ɹ(:o*i&Vtwm[ aӁp@h @w+ 1H=w7Vq Ra (I 6EE(V0=E˵rWkP6tN4a{>?@qcFbQJafLj}~X&ca҆ N ֽJX%dq#lRV_f 542ZwO$Q>Ѫ Q C,uQdeB+Lcq ""gPQPbUP(Vn2NR'tv@Ԉ__' >n&H/kC*ʇI, (4&ЂN/@P(?Q<-dhUx3bOA0JQ|KHB/N^s1vj}L+ E:D WQ7ypFsAYBjaDF"FcsZF$1 Atp v\zm\j.x٥5EP3$F!̂suL A0pDG*1LLR[Ӡ&'D{o@aeǵzAM@sAs, CTtadsT ׏kǜ6r>Y] Bߒux >OZkEBXU+ e@"!]bD)՛c)dW<ɽc3 ?H gɫU@S0@(Eڤ.ޞ-?Ǧ@wi -e-Tg\"V_Er[a(lB`]G 7 8sjtE\`J ɫ?(!Za" l*@ Eس J\ņ j [>aD݆>e?@؇?a&D@v*;  '+Y`x.IENDB` cREVGeneral revUniqueID 1042884589608Top.png  Pon mouseDown theButton if the shiftKey is down then loadAltPlugs set the uAllowDrag of me to false exit to top end if if theButton is 3 then show btn "altPlugProps" popup btn "altPlugProps" else set the uAllowDrag of me to true end if end mouseDown on mouseMove x,y if the uAllowDrag of me then put globalLoc(x & "," & y) into tLoc set topLeft of this stack to item 1 of tLoc - item 1 of the clickLoc, item 2 of tLoc - item 2 of the clickLoc end if pass mouseMove end mouseMove on mouseUp if the uAllowDrag of me then set the uAllowDrag of me to empty put empty into tSnickt put 20 into altSnick put item 3 of the screenrect into tRight put item 4 of the screenrect into tBottom if the left of this stack < altSnick then put "L" after tSnickt end if if the right of this stack > tRight - altSnick then put "R" after tSnickt end if if the top of this stack < altSnick then put "T" after tSnickt end if SnicktMe tSnickt end if hide btn "altPlugProps" end mouseUp on mouseRelease mouseUp end mouseRelease on altResetBtn click at the loc of me end altResetBtn # uAllowDrag 1PNG  IHDR #z gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATxb YXl|F&aJphs,{dbabb7n FtK? D11irq!Wp&?2h[ $8,@6ac(ݤ:p=8S_̯bffWUJPTy ̌\I 7oQD3)A*dP$9YABILd2+]bdctGoK001~W@u]YV6Vc>K 3 ?Bu131=79J LG@1U*AƀQ?|$]vѼ ޷T@L+V /NHp-J6_WDq'0hAr04h?F1)AeAX4r@悭aIHhIT5е@g) 0%2060+Y ii2022 X, [ ki" s@1A_]^[J l0;3 8F^!VYqvVN`tɩp Pd8y@| @Tmן32k[)s5{,̺N*@`{i2+({U7cef7_̤$tx.>ЁL|,9qvFN%A% 1!) R@b\"7< x )q6lP0#,Fp 2?hZo> X@n @A1Pgp_׀Uσ߀ <?hFFxEP\M *t6ef蟄0Ђ\ H?!2oP$ D_XÆ D0ԙ( .3ϟ?=L9X9 \kQ>\š_^&`E&y ]VpOn`HWrsH}S/#Θޕ  $o<[Ɖ-, [ 2jsqU:_~SbÝ"cf*ӆ^8,bxތE /Nj7vPoriX޶0rcOh+)Eu}} J!^Z^H@'amp$ X/d{H7%A,>g qAhSF( ii"%C|,A: w#3-.Ԟ, c`'` %#I8WU!H+گeb;ڟO Z`Q6 < w?`$LE Hf[wA1Lt)0LFS'&A!LR Y `HIWlIENDB` cREVGeneralscriptChecksumEfOrT}@ revUniqueID 1042884596856 bookmarks handlerList4mouseDown mouseMove mouseUp mouseRelease altResetBtn tempScript prevHandlerscriptSelectionchar 1204 to 1203scriptc

on mouseDown theButton

if the shiftKey is down then

loadAltPlugs

set the uAllowDrag of me to false

exit to top

end if

if theButton is 3 then

show btn "altPlugProps"

popup btn "altPlugProps"

else

set the uAllowDrag of me to true

end if

end mouseDown

on mouseMove x,y

if the uAllowDrag of me then

put globalLoc(x & "," & y) into tLoc

set topLeft of this stack to item 1 of tLoc - item 1 of the clickLoc, item 2 of tLoc - item 2 of the clickLoc

end if

pass mouseMove

end mouseMove

on mouseUp

if the uAllowDrag of me then

set the uAllowDrag of me to empty

put empty into tSnickt

put 20 into altSnick

put item 3 of the screenrect into tRight

put item 4 of the screenrect into tBottom

if the left of this stack < altSnick then

put "L" after tSnickt

end if

if the right of this stack > tRight - altSnick then

put "R" after tSnickt

end if

if the top of this stack < altSnick then

put "T" after tSnickt

end if

SnicktMe tSnickt

end if

hide btn "altPlugProps"

end mouseUp

on mouseRelease

mouseUp

end mouseRelease

on altResetBtn

click at the loc of me

end altResetBtn

P altPlug.png @# altOpenVisiblefalsealtPlugFileNamerevAltArchive.revaltMenuInfo - Version altOnClickMe altShowMealtMenuHandlersaltGetInfo altGetVersion saves and archives the topstackPNG  IHDR szzgAMA aIDATxMEճ/GLx#!ƃEvd[~-~%UD BQhRp8B}>aeƻ L@2 }%Lk +"elzTL̫/ӕ>}ImFGHS+j ?~&9'ޖ\[9=E*Dfmb7j*lDsk=Y d+/{jUYn;s5Y ^zn8w0Oe$sG ʛO)ڐ8g/o߁}Nq8FG^pVXvenݕSxr;cz߂he.+'=w\{tc^sn/Vk.Y+nf@lSDΣ| +x[s:}/@V1S1 h^;YsR9fTa*6MH)'+d%@ p [&bLaפ8ZRahR,i}me뉀,6` !PxF!%'& Th*iq90IENDB` cREVGeneral revUniqueID 1043833510886R altPlug.png @c altOpenVisibletruealtPlugFileNamerevAltHtml.revaltMenuInfo altOnClickMe altShowMealtMenuHandlers altGetInfohtmlText editorPNG  IHDR szzgAMA a9IDATx_UE?smu%5R[쏑a!i!/>?-%ʹ,rA15LXf93fι瞽w̝33}͙#ږu$IPBK Hu}bܳB\7`xJî,`xJ%(uB+(# hPDLTP2JQFDՈRJDTS*@R$*HDXkB Y C lBzENPfRp Gۯ;}\ob'TJ II>ZgCew}2dkx$؉Jixi G{ikE\iRY4۠}W!Zdx>>]3gnw}&a2gNv*+_7~| jDTryxZʦ~|z2pP֧֙ǰQ(&[k@su/ MwšA}og͜"Oނ}|V 9 ["sOn\&N4:<8).ih[cREF`k $_ =\5Ţ$&_6fTl-Z E5H#K;z2%\GVMZ mQX Ȑnbb|(,&6>5,5' ]KeKfKeKeЂLeMcMcMbMaOaPbQ_Q]QZNUHM?F9>18)0#*$  ]KeKeLeLeMcMdMbNbPbQbR`Q^R[OVIN@G:?29*0$+"  _KeKeLeLcMcMcNbNbObPbRaR_S\PWIOAH;@3:*1$+"  _KeKeLeLcMcMcNbOcPbQbSbS_T]QXIOBI29  _KeKeLeLcMcMbMbNbOaPaR`R^R[OVGM@G8>29*1$+"  _Ke=KeLeLcMcMbMbNbOaOaQ`Q]R[NSGM@G7>28)0$*" _JcKeJcKeKdLcMcMbMaNbN`OaQ`Q]PYMRGL@F7=/5)0!'! ]JcKdKdLcLbMbM`MaN`O`Q_P\PXMRFK>C6=.5)0!'! ZJcKdKdLaLbMbM`M_N_N_O]P\OXLQEJ=B6<.5&, 'XJbJcKbLaK`K`L_M^M^N]O]OZNWKPBG=B39+1%,$ X(5p)5r)5s)5t)4u)4w)3x*3z*3|+1~*0+/(*$&"| y vrnkgdcS cREVGeneral bookmarks revUniqueID 1043833511009 handlerListscriptSelection char 1 to 0 prevHandler tempScriptscriptT altPlug.png @ altOpenVisibletruealtPlugFileNamerevAltPropList.revaltMenuInfo altOnClickMealtShowPropListaltMenuHandlers altGetInfoProperty List Palette߉PNG  IHDR szzgAMA aIDATxyU?6f-Fʄ ",?*h#2hv"2[^de`;3㜙;wy˹}ܑgn$k"?b@q64A@4jEw/T*UapP͡EȀ BG@ 4 @1%!LW! qR&qB'TZDUԀ)8iAa' "$@%@$De"EPD,Ʀ@5!.[P lFzENPwrp  =pXЬD0p Hō"A#͜D.臀z *EE#9q }A}QSВ&7uCL,iV)To.i{Yiu#DW˲&1gt Is;fxzx;hUx?Bj#i=<VfJ$]qM[qO[.;ð ^4~cEvX+j ṡͦl VsN4/9O`fgyuɛ䙥y!\F?2C̞9`p„-y]SP6ߛ;25?L3#=i2.{cr;rϝ4!Ueer˸oR (ŧv¢)b?a}A23wm{\>gGj _Dm+a h;S`JNjF@X_-X4qw&8f ijllum

Infoon mouseMove end mouseMove   cREVGeneralscriptChecksum:}3c:j~ bookmarks handlerList mouseMovescriptSelection char 16 to 15 prevHandler tempScriptscriptO

on mouseMove

end mouseMove

 @reset defaultfolderEpon mouseUp set the defaultfolder to "C:/Program Files/Revolution 1.5A1" end mouseUp --if the backdrop is not gray then -- set the backdrop to gray -- else -- set the backdrop to none -- end if > cREVGeneralscriptChecksumy\0,/&^ZG# bookmarks revUniqueID 1042871291785 handlerListmouseUpscriptSelection char 75 to 74 prevHandlermouseUp tempScriptscripty

on mouseUp

set the defaultfolder to "C:/Program Files/Revolution 1.5A1"

end mouseUp

--if the backdrop is not gray then

-- set the backdrop to gray

-- else

-- set the backdrop to none

-- end if

 load plugsEp'on mouseUp loadAltPlugs end mouseUp ~t  cREVGeneralscriptChecksumz[Ug bookmarks revUniqueID 1042871269005 handlerListmouseUpscriptSelection char 14 to 25 prevHandlermouseUp tempScriptscriptW

on mouseUp

loadAltPlugs

end mouseUp

edit stack scriptEp?on mouseUp edit the script of stack "altPlugin" end mouseUp d cREVGeneralscriptChecksum ِ ^>]5T revUniqueID 1042871466924 bookmarks handlerListmouseUp tempScript prevHandlermouseUpscriptSelection char 50 to 49script

on mouseUp

edit the script of stack "altPlugin"

end mouseUp