Changeset 101
- Timestamp:
- 03/05/09 12:45:14 (3 years ago)
- Location:
- trunk/lingosource
- Files:
-
- 9 edited
-
castlib1/subversion_version_field.txt (modified) (1 diff)
-
castlib2/Alex_HierMenuParent.ls (modified) (1 diff)
-
castlib2/ButtonImageCreator.ls (modified) (1 diff)
-
castlib2/ButtonManager.ls (modified) (4 diffs)
-
castlib2/GetSetPrefs.ls (modified) (1 diff)
-
castlib2/ImageUtilityScripts.ls (modified) (2 diffs)
-
castlib2/PseudoXMLPS.ls (modified) (2 diffs)
-
castlib2/aleXtrasMovieScript.ls (modified) (2 diffs)
-
castlib2/commonMovieScript.ls (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/subversion_version_field.txt
r99 r101 1 r10 11 r102 -
trunk/lingosource/castlib2/Alex_HierMenuParent.ls
r99 r101 3806 3806 on mDrawText me 3807 3807 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" 3809 3810 3810 3811 -- obenoffset = obenoffset - integer(pZeilenhoehe * (pZeilenhoehe / 150.0)) -
trunk/lingosource/castlib2/ButtonImageCreator.ls
r97 r101 976 976 977 977 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 ---------------------------------------------------------- 979 986 980 987 return retlist -
trunk/lingosource/castlib2/ButtonManager.ls
r97 r101 618 618 619 619 -- 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 624 on 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 669 end 662 670 663 671 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx … … 748 756 pOptionsListe[#keyboardshortcut] = pKeyboardshortcut 749 757 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 750 762 sendSprite(me.spritenum, #mButtonManager_OverrideOptions, pOptionsListe) 751 763 end … … 772 784 -- INPUT: <options> ; property list ; huge number of properties describing the button, most of which comes from mGetDefaultButtonList() 773 785 -- 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 775 788 -- RETURNS: - 776 789 -- CALLER: - … … 836 849 tabname = options.getaprop(#myName) 837 850 838 if voidP(tabname) then -- Sonderfall: ohne name loescht ALLE vorherigen tabellen851 if voidP(tabname) then -- Exception!: buttons without a name replaces ALL buttons 839 852 tabname = "button1" 840 853 -
trunk/lingosource/castlib2/GetSetPrefs.ls
r97 r101 179 179 -- delete line 1 of prefsText 180 180 181 gPrefs = call(#mGetListFromXMLString , mGetXScript(#PseudoXMLPS), prefsText)181 gPrefs = call(#mGetListFromXMLStringX, mGetXScript(#PseudoXMLPS), prefsText) 182 182 if objectP(gPrefs) then globs[#gPrefs] = gPrefs 183 183 -
trunk/lingosource/castlib2/ImageUtilityScripts.ls
r97 r101 305 305 if ft = 32 then 306 306 maske = img.extractalpha() 307 maskImg = image(breite, hoehe, 32) -- 32 bit is twice as fast on the mac ???!!! and can be used as mask also307 maskImg = image(breite, hoehe, 8, #grayscale) -- 32 bit is twice as fast on the mac ???!!! and can be used as mask also 308 308 usemask = 1 309 309 else … … 311 311 end if 312 312 313 tempImg = image(breite, hoehe, origft, img.usealpha, img.paletteref)313 tempImg = image(breite, hoehe, origft, 0, img.paletteref) 314 314 if usemask then img.useAlpha = 0 315 315 -
trunk/lingosource/castlib2/PseudoXMLPS.ls
r97 r101 757 757 758 758 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 760 769 end if 761 770 … … 1186 1195 1187 1196 on mGetListFromPListString me, str 1188 return mConvertKeyList(me, mGetListFromXMLString (me, str, 0))1197 return mConvertKeyList(me, mGetListFromXMLStringX(me, str, 0)) 1189 1198 end 1190 1199 -
trunk/lingosource/castlib2/aleXtrasMovieScript.ls
r97 r101 49 49 halt 50 50 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 51 58 alextras = rawnew(cms.script) 52 59 if ilk(alextras) <> #instance then … … 55 62 end if 56 63 (script "aleXtrasMovieScript").pAleXtras = alextras 64 57 65 end if 58 66 return alextras -
trunk/lingosource/castlib2/commonMovieScript.ls
r97 r101 387 387 -- ACTION: Create/Get timeout object 388 388 -- 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|| 391 391 -- || theHandler || symbol || handler to be called on each timepout event|| 392 392 -- || theTarget || object || object to be sent the timeout event <theHandler>||
Note: See TracChangeset
for help on using the changeset viewer.
