Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ignore:
Timestamp:
10/24/08 12:12:09 (4 years ago)
Author:
alex
Message:

updated movie to incorporate new version of library scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib3/Alex_HierMenuParent.ls

    r15 r18  
    1 -- Hierarchisches Menu by Alex da Franca ©2001 da.Franca@online.de 
     1-- Hierarchisches Menu by Alex da Franca c2001 da.Franca@online.de 
    22------------------------------------------------------------------ 
    33 
     
    212212   
    213213  pMyScrollBarScript = mGetXScript(#SliderScrollbarMenuParent) 
    214   if not voidP(pMyScrollBarScript) then pMyScrollBarScript = new(pMyScrollBarScript) 
     214  if not listP(pMyScrollBarScript) then 
     215    if ilk(pMyScrollBarScript) = #instance then pMyScrollBarScript = pMyScrollBarScript.script 
     216    pMyScrollBarScript = new(pMyScrollBarScript) 
     217  else 
     218    pMyScrollBarScript = 0 
     219  end if 
    215220   
    216221  pShadowScript = mGetXScript(#DropShadowPScript) 
    217   if not voidP(pShadowScript) then pShadowScript = new(pShadowScript) 
     222  if not listP(pShadowScript) then 
     223    if ilk(pShadowScript) = #instance then pShadowScript = pShadowScript.script 
     224    pShadowScript = new(pShadowScript) 
     225  else 
     226    pShadowScript = 0 
     227  end if 
    218228   
    219229  return me 
     
    16061616   
    16071617  -- properties dieses behviors global speichern, damit beim naechsten beginsprite dieses behaviors der alte zustand wieder hergestellt wird (z.B. bei einem sprung in ein anderes movie) 
     1618  if objectP(pMenuProps) then 
    16081619  if pMenuProps.getaprop(#saveProps) then 
    16091620    global gSicherprop 
     
    16171628  end if 
    16181629  --  (the actorlist).deleteOne(me) 
     1630  end if 
    16191631   
    16201632  -- aufraeumen 
     
    18911903      if pMyScrollBarScript.mGetEnabled() <> 1 then 
    18921904        mUpdateScrollBarRect me 
    1893         pMyScrollBarScript.SetEnabled(1) 
     1905      pMyScrollBarScript.SetEnabled(1) 
    18941906      end if 
    18951907       
     
    19721984    if ilk(pShadowScript) <> #instance then 
    19731985      pShadowScript = mGetXScript(#DropShadowPScript) 
    1974       if not voidP(pShadowScript) then pShadowScript = new(pShadowScript) 
     1986      if not listP(pShadowScript) then 
     1987        if ilk(pShadowScript) = #instance then pShadowScript = pShadowScript.script 
     1988        pShadowScript = new(pShadowScript) 
     1989      else 
     1990        pShadowScript = 0 
     1991      end if 
    19751992    end if 
    19761993     
     
    21212138       
    21222139      if ilk(hgfarbe) = #color then 
    2123         ttimg.fill(ttimg.rect, hgfarbe) 
     2140      ttimg.fill(ttimg.rect, hgfarbe) 
    21242141      else if hgfarbe = #image then 
    21252142        ttimg.copypixels(hgfarbe, ttimg.rect, hgfarbe.rect) 
     
    31713188      dertimer = the ticks 
    31723189      --    dieAnimTime = min((abs(pAnimStart) * max(2,(15 / abs(pAnimStart)))), 40) 
    3173       dieAnimTime = min((abs(pAnimStart) * 5), 40) -- animationszeit abhaengig von der hoehe des stuecks, das animiert wird,, jedoch maximal 40 ms 
     3190      dieAnimTime = min((abs(pAnimStart) * 5), 25) -- animationszeit abhaengig von der hoehe des stuecks, das animiert wird,, jedoch maximal 40 ms 
    31743191      diebeschl = 12.0 
    31753192       
     
    35013518      --------------------------------- 
    35023519       
    3503       if usealternateColor then 
    3504         if n mod 2 then 
    3505           derlocVHL = pZeilenhoehe * (n - pScrollOffset) 
    3506           tr = rect(0, (derlocVHL + obenoffset + 1), (pBuffImg.rect.right - 1), (derlocV + 1 + obenoffset - pMenuProps.getaprop(#myLineWidth))) 
    3507           pBuffImg.fill(tr, alternateColor) 
    3508           if usealph then 
    3509             pAlphaImage.fill(tr, rgb(0,0,0)) 
    3510           end if 
    3511           treeviewdata.setaprop(#alternatecolor, 1) 
    3512         else 
    3513           treeviewdata.setaprop(#alternatecolor, 0) 
    3514         end if 
    3515       end if 
    3516        
     3520    if usealternateColor then 
     3521      if n mod 2 then 
     3522        derlocVHL = pZeilenhoehe * (n - pScrollOffset) 
     3523        tr = rect(0, (derlocVHL + obenoffset + 1), (pBuffImg.rect.right - 1), (derlocV + 1 + obenoffset - pMenuProps.getaprop(#myLineWidth))) 
     3524        pBuffImg.fill(tr, alternateColor) 
     3525        if usealph then 
     3526          pAlphaImage.fill(tr, rgb(0,0,0)) 
     3527        end if 
     3528        treeviewdata.setaprop(#alternatecolor, 1) 
     3529      else 
     3530        treeviewdata.setaprop(#alternatecolor, 0) 
     3531      end if 
     3532    end if 
     3533     
    35173534    end if 
    35183535     
     
    37333750    if ilk(pStrichel) = #image then 
    37343751       
    3735       -- strichellinie: 
    3736       --    strichzahl = templiste.stelleH - 1 
    3737       strichzahl = stelleH - 1 
    3738        
    3739       oben = derlocV + obenoffset - pZeilenhoehe 
    3740       unten = oben + pStrichel.rect.height 
    3741       links = STRlinks 
    3742        
    3743       if ilk(pAlphaImage) = #image then 
    3744          
    3745         repeat with z = 1 to strichzahl 
    3746           pBuffImg.copyPixels(pStrichel, rect(links, oben, (links + 1), unten), pStrichel.rect) 
    3747           pAlphaImage.copyPixels(pStrichelAlpha, rect(links, oben, (links + 1), unten), pStrichel.rect, [#ink:#darkest]) 
    3748           links = links + tabAbstand 
    3749         end repeat 
    3750          
    3751       else 
    3752         repeat with z = 1 to strichzahl 
    3753           pBuffImg.copyPixels(pStrichel, rect(links, oben, (links + 1), unten), pStrichel.rect) 
    3754           links = links + tabAbstand 
    3755         end repeat 
    3756       end if 
    3757        
     3752    -- strichellinie: 
     3753    --    strichzahl = templiste.stelleH - 1 
     3754    strichzahl = stelleH - 1 
     3755     
     3756    oben = derlocV + obenoffset - pZeilenhoehe 
     3757    unten = oben + pStrichel.rect.height 
     3758    links = STRlinks 
     3759     
     3760    if ilk(pAlphaImage) = #image then 
     3761       
     3762      repeat with z = 1 to strichzahl 
     3763        pBuffImg.copyPixels(pStrichel, rect(links, oben, (links + 1), unten), pStrichel.rect) 
     3764        pAlphaImage.copyPixels(pStrichelAlpha, rect(links, oben, (links + 1), unten), pStrichel.rect, [#ink:#darkest]) 
     3765        links = links + tabAbstand 
     3766      end repeat 
     3767       
     3768    else 
     3769      repeat with z = 1 to strichzahl 
     3770        pBuffImg.copyPixels(pStrichel, rect(links, oben, (links + 1), unten), pStrichel.rect) 
     3771        links = links + tabAbstand 
     3772      end repeat 
     3773    end if 
     3774     
    37583775    end if 
    37593776     
Note: See TracChangeset for help on using the changeset viewer.