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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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     
Note: See TracChangeset for help on using the changeset viewer.