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

Changeset 101


Ignore:
Timestamp:
03/05/09 12:45:14 (3 years ago)
Author:
alex
Message:

adressed wrong text position on line. bug in my code was revealed through fixedLineSpace bug in D11

Location:
trunk/lingosource
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/subversion_version_field.txt

    r99 r101  
    1 r101 
     1r102 
  • trunk/lingosource/castlib2/Alex_HierMenuParent.ls

    r99 r101  
    38063806on mDrawText me 
    38073807   
    3808   obenoffset = pHeaderOffset - (pZeilenhoehe - pMenuProps.getaprop(#myFontsize))/2 + 1 -- 1 -- + 1 
     3808  --  obenoffset = pHeaderOffset - (pZeilenhoehe - pMenuProps.getaprop(#myFontsize))/2 + 1 -- 1 -- + 1 
     3809  obenoffset = pHeaderOffset -- dunno what the above line was about, but it fails now, I guess it is a remnant from "older times" 
    38093810   
    38103811  --  obenoffset = obenoffset - integer(pZeilenhoehe * (pZeilenhoehe / 150.0)) 
  • trunk/lingosource/castlib2/ButtonImageCreator.ls

    r97 r101  
    976976   
    977977   
    978    
     978  ----------- now just add the property names of the table script and the buttonscript 
     979  retlist.addProp(#myContent, retlist[#normal]) 
     980  retlist.addProp(#myNormalImage, retlist[#normal]) 
     981  retlist.addProp(#myPressImage, retlist[#pressed]) 
     982  retlist.addProp(#myOverImage, retlist[#hilite]) 
     983  retlist.addProp(#myDisabledImage, retlist[#disabled]) 
     984  retlist.addProp(#mySelectedImage, retlist[#selected]) 
     985  ---------------------------------------------------------- 
    979986   
    980987  return retlist 
  • trunk/lingosource/castlib2/ButtonManager.ls

    r97 r101  
    618618 
    619619-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    620 -- 
    621 --on getPropertyDescriptionList 
    622 --  if the currentspritenum = 0 then exit 
    623 --  liste = [:] 
    624 --  fontliste = call(#InitFonts, [pIncludes.getaprop(#commonmoviescript)]) 
    625 --  if not listP(fontliste) then fontliste = ["Arial"] 
    626 --   
    627 --  liste[#pCallFunction] = [#default:#funktion, #format:#symbol, #comment:"Event to sendAllSprites:"] 
    628 --  liste[#pBroadcastSprites] = [#format:#list, #default:[], #comment:"Send event to: ([] = All, [-1] = Moviescript, [0] = this Sprite)"] 
    629 --  liste[#pEventsToProcess] = [#format:#list, #default:[#mouseUp], #comment:"Which events to process:"] 
    630 --  liste[#pKeyboardshortcut] = [#default:"", #format:#string, #comment:"Keyboardshortcut:"] 
    631 --   
    632 --  liste[#pLabel] = [#default:"Label", #format:#string, #comment:"Labeltext:"] 
    633 --   
    634 --  liste[#pFarbe] = [#default:rgb(170,170,170),#format:#color,#comment: "Color:"] 
    635 --  liste[#pBevel] = [#default:"1 - Small Bevel", #format:#string, #range:["0 - No Bevel","1 - Small Bevel", "2 - Normal Bevel","3 - Large Bevel"], #comment:"Bevel:"] 
    636 --  liste[#pUseMember] = [#default:"myAquaButton", #format:#string, #comment:"Use prepared members based on name:"] 
    637 --   
    638 --  liste[#pSaveImgs] = [#default:0, #format:#integer, #comment:"Save text images to which castlib (0 = dont save)"] 
    639 --   
    640 --  liste[#pUseDefaultLayout] = [#default:0, #format:#boolean, #comment:"Use global layout settings from handler mGetDefaultButtonList()"] 
    641 --  liste[#pDefaultLayoutPreset] = [#default:"", #format:#string, #comment:"layout preset (only used when global layout = 1)"] 
    642 --   
    643 --  liste[#pMarginH] = [#format:#integer, #default:20, #range:[#min:0, #max:30], #comment:"Margin horiz.:"] 
    644 --  liste[#pMarginV] = [#format:#integer, #default:10, #range:[#min:0, #max:20], #comment:"Margin vert.:"] 
    645 --   
    646 --  liste[#pRotation] = [#format:#integer, #default:0, #range:[#min:0, #max:360], #comment:"Rotation:"] 
    647 --   
    648 --  liste[#pFont] = [#format:#string, #default:fontliste[1], #range:fontliste, #comment:"Font:"] 
    649 --  liste[#pFontGroesse] = [#format:#integer, #default:10, #range:[#min:7, #max:36], #comment:"Fontsize:"] 
    650 --  liste[#pFontFarbe] = [#default:rgb(0,0,0),#format:#color,#comment: "Fontcolor"] 
    651 --  liste[#pFontHLFarbe] = [#default:rgb(0,0,0),#format:#color,#comment: "Font highlight color"] 
    652 --  liste[#pFontAA] = [#default:0,#format:#boolean,#comment: "Font Anti-Aliasing"] 
    653 --  liste[#pEnabled] = [#default:true, #format:#boolean, #comment:"Initially enabled ?"] 
    654 --  liste[#pDisableBlend] = [#format:#integer, #default:100, #range:[#min:0, #max:100], #comment:"When disabled dim to blend:"] 
    655 --  liste[#pStayHilited] = [#default:false, #format:#boolean, #comment:"Stay hilited on mouseLeave while mouse pressed ?"] 
    656 --  liste[#pRepeatDownEvent] = [#format:#integer, #default:0, #comment:"Repeat the mouseDown event while the mouse is down every <x> ms"] 
    657 --  liste[#pToggle] = [#default:false, #format:#boolean, #comment:"Toggle Button ?"] 
    658 --  liste[#pGroupName] = [#default:"", #format:#string, #comment:"Radio button group name:"] 
    659 --  liste[#pSelected] = [#default:true, #format:#boolean, #comment:"Initially Selected ?"] 
    660 --  return liste 
    661 --end 
     620 
     621 
     622-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     623 
     624on getPropertyDescriptionList 
     625  if the currentspritenum = 0 then exit 
     626  liste = [:] 
     627   
     628  cmonm = mGetXScript() 
     629  if not voidP(cmonm) then fontliste = call(#InitFonts, cmonm) 
     630   
     631  if not listP(fontliste) then fontliste = ["Arial"] 
     632   
     633  liste[#pCallFunction] = [#default:#funktion, #format:#symbol, #comment:"Event to sendAllSprites:"] 
     634  liste[#pBroadcastSprites] = [#format:#list, #default:[], #comment:"Send event to: ([] = All, [-1] = Moviescript, [0] = this Sprite)"] 
     635  liste[#pEventsToProcess] = [#format:#list, #default:[#mouseUp], #comment:"Which events to process:"] 
     636  liste[#pKeyboardshortcut] = [#default:"", #format:#string, #comment:"Keyboardshortcut:"] 
     637   
     638  liste[#pLabel] = [#default:"Label", #format:#string, #comment:"Labeltext:"] 
     639   
     640  liste[#pFarbe] = [#default:rgb(170,170,170),#format:#color,#comment: "Color:"] 
     641  liste[#pBevel] = [#default:"1 - Small Bevel", #format:#string, #range:["0 - No Bevel","1 - Small Bevel", "2 - Normal Bevel","3 - Large Bevel"], #comment:"Bevel:"] 
     642  liste[#pUseMember] = [#default:"myAquaButton", #format:#string, #comment:"Use prepared members based on name:"] 
     643   
     644  liste[#pSaveImgs] = [#default:0, #format:#integer, #comment:"Save text images to which castlib (0 = dont save)"] 
     645   
     646  liste[#pUseDefaultLayout] = [#default:0, #format:#boolean, #comment:"Use global layout settings from handler mGetDefaultButtonList()"] 
     647  liste[#pDefaultLayoutPreset] = [#default:"", #format:#string, #comment:"layout preset (only used when global layout = 1)"] 
     648   
     649  liste[#pMarginH] = [#format:#integer, #default:20, #range:[#min:0, #max:30], #comment:"Margin horiz.:"] 
     650  liste[#pMarginV] = [#format:#integer, #default:10, #range:[#min:0, #max:20], #comment:"Margin vert.:"] 
     651   
     652  liste[#pRotation] = [#format:#integer, #default:0, #range:[#min:0, #max:360], #comment:"Rotation:"] 
     653   
     654  liste[#pFont] = [#format:#string, #default:fontliste[1], #range:fontliste, #comment:"Font:"] 
     655  liste[#pFontGroesse] = [#format:#integer, #default:10, #range:[#min:7, #max:36], #comment:"Fontsize:"] 
     656  liste[#pFontFarbe] = [#default:rgb(0,0,0),#format:#color,#comment: "Fontcolor"] 
     657  liste[#pFontHLFarbe] = [#default:rgb(0,0,0),#format:#color,#comment: "Font highlight color"] 
     658  liste[#pFontAA] = [#default:0,#format:#boolean,#comment: "Font Anti-Aliasing"] 
     659  liste[#pEnabled] = [#default:true, #format:#boolean, #comment:"Initially enabled ?"] 
     660  liste[#pDisableBlend] = [#format:#integer, #default:100, #range:[#min:0, #max:100], #comment:"When disabled dim to blend:"] 
     661  liste[#pStayHilited] = [#default:false, #format:#boolean, #comment:"Stay hilited on mouseLeave while mouse pressed ?"] 
     662  liste[#pRepeatDownEvent] = [#format:#integer, #default:0, #comment:"Repeat the mouseDown event while the mouse is down every <x> ms"] 
     663  liste[#pToggle] = [#default:false, #format:#boolean, #comment:"Toggle Button ?"] 
     664  liste[#pNoIcon] = [#default:false, #format:#boolean, #comment:"Don't use checkbox icon for toggle button"] 
     665  liste[#pGroupName] = [#default:"", #format:#string, #comment:"Radio button group name:"] 
     666  liste[#pSelected] = [#default:true, #format:#boolean, #comment:"Initially Selected ?"] 
     667   
     668  return liste 
     669end 
    662670 
    663671-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     
    748756  pOptionsListe[#keyboardshortcut] = pKeyboardshortcut 
    749757   
     758  -- further properties known to this script (3-D only): 
     759  -- #renderformat ; default rgba8880 for images without alpha and rgba8888 for images with alpha 
     760  -- #useModel ; use the model with the name specified by #useModel (String) instead of an overlay (-> default) 
     761   
    750762  sendSprite(me.spritenum, #mButtonManager_OverrideOptions, pOptionsListe) 
    751763end 
     
    772784  -- INPUT: <options> ; property list ; huge number of properties describing the button, most of which comes from mGetDefaultButtonList() 
    773785  --                    see script "defaultLayoutDefinitions" for all properties, which are available for the layout of the button 
    774   --                see the below example for the porperties concerning this script: 
     786  --                see the below example for the properties concerning this script 
     787  --                see handler "mInitProps" in this script for properties too 
    775788  -- RETURNS: - 
    776789  -- CALLER: - 
     
    836849  tabname = options.getaprop(#myName) 
    837850   
    838   if voidP(tabname) then -- Sonderfall: ohne name loescht ALLE vorherigen tabellen 
     851  if voidP(tabname) then -- Exception!: buttons without a name replaces ALL buttons 
    839852    tabname = "button1" 
    840853     
  • trunk/lingosource/castlib2/GetSetPrefs.ls

    r97 r101  
    179179--    delete line 1 of prefsText 
    180180     
    181     gPrefs = call(#mGetListFromXMLString, mGetXScript(#PseudoXMLPS), prefsText) 
     181    gPrefs = call(#mGetListFromXMLStringX, mGetXScript(#PseudoXMLPS), prefsText) 
    182182    if objectP(gPrefs) then globs[#gPrefs] = gPrefs 
    183183     
  • trunk/lingosource/castlib2/ImageUtilityScripts.ls

    r97 r101  
    305305  if ft = 32 then 
    306306    maske = img.extractalpha() 
    307     maskImg = image(breite, hoehe, 32) -- 32 bit is twice as fast on the mac ???!!! and can be used as mask also 
     307    maskImg = image(breite, hoehe, 8, #grayscale) -- 32 bit is twice as fast on the mac ???!!! and can be used as mask also 
    308308    usemask = 1 
    309309  else 
     
    311311  end if 
    312312   
    313   tempImg = image(breite, hoehe, origft, img.usealpha, img.paletteref) 
     313  tempImg = image(breite, hoehe, origft, 0, img.paletteref) 
    314314  if usemask then img.useAlpha = 0 
    315315   
  • trunk/lingosource/castlib2/PseudoXMLPS.ls

    r97 r101  
    757757   
    758758  if val.length = 7 then 
    759     if (val.char[1] = "#") and (offset(val.char[2], "abcdef0123456789") > 0) then return rgb(val) 
     759    if (val.char[1] = "#") then 
     760      isColor = 1 
     761      repeat with n = 2 to 7 
     762        if (offset(val.char[n], "abcdef0123456789") < 1) then 
     763          isColor = 0 
     764          exit repeat 
     765        end if 
     766      end repeat 
     767      if isColor = 1 then return rgb(val) 
     768    end if 
    760769  end if  
    761770   
     
    11861195 
    11871196on mGetListFromPListString me, str 
    1188   return mConvertKeyList(me, mGetListFromXMLString(me, str, 0)) 
     1197  return mConvertKeyList(me, mGetListFromXMLStringX(me, str, 0)) 
    11891198end 
    11901199 
  • trunk/lingosource/castlib2/aleXtrasMovieScript.ls

    r97 r101  
    4949      halt 
    5050    end if 
     51     
     52    if voidP(cms.script) then -- strangely enough this happened suddenly, dunno why... 
     53      -- until now it happened only in authoring with the stopped movie 
     54      -- therefore I just exit here without alert 
     55      halt 
     56    end if 
     57     
    5158    alextras = rawnew(cms.script) 
    5259    if ilk(alextras) <> #instance then 
     
    5562    end if 
    5663    (script "aleXtrasMovieScript").pAleXtras = alextras 
     64     
    5765  end if 
    5866  return alextras 
  • trunk/lingosource/castlib2/commonMovieScript.ls

    r97 r101  
    387387  --         ACTION: Create/Get timeout object 
    388388  --                 This handler works the same with the old player <10 and the new player >=10 
    389   --         INPUT: ||ÊtheName     || string  || name for new timeout object|| 
    390   --                ||ÊtheDuration || integer || timeout perios in milliseconds|| 
     389  --         INPUT: || theName     || string  || name for new timeout object|| 
     390  --                || theDuration || integer || timeout perios in milliseconds|| 
    391391  --                || theHandler  || symbol  || handler to be called on each timepout event|| 
    392392  --                || theTarget   || object  || object to be sent the timeout event <theHandler>|| 
Note: See TracChangeset for help on using the changeset viewer.