- Timestamp:
- 12/16/07 18:44:26 (4 years ago)
- Location:
- branches/beta
- Files:
-
- 4 edited
-
HandlerMenu_OSC.dcr (modified) (previous)
-
HandlerMenu_OSC.dir (modified) (previous)
-
castlib1/keyboardNavigation_FrameLoop.ls (modified) (1 diff)
-
castlib1/thisMoviesScript.ls (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/castlib1/keyboardNavigation_FrameLoop.ls
r65 r99 2 2 3 3 property pActive 4 4 -- 5 5 on exitFrame me 6 6 -
branches/beta/castlib1/thisMoviesScript.ls
r65 r99 74 74 li = [] 75 75 mscr = [] 76 currMScripts = [] 77 76 78 pscr = [] 79 currPScripts = [] 80 77 81 bscr = [] 78 82 currBScripts = [] 79 83 80 84 li.add([#title: "Movie scripts", #items: mscr]) 81 85 li.add([#title: "Behavior scripts", #items: bscr]) 82 86 li.add([#title: "Parent scripts", #items: pscr]) 87 88 83 89 84 90 ---------------- menu divider for better readability: … … 113 119 mclnum = n 114 120 115 mscr.add([#title:"Castlib" && n &":", #items:[], #type:#divider]) 121 currMScripts = [] 122 mscr.add([#title:"Castlib" && n &":", #items:currMScripts, #type:#divider]) 116 123 117 124 end if 118 125 ---------------- // menu divider 119 126 120 mscr.add(thisScriptList)127 currMScripts.add(thisScriptList) 121 128 #parent: 122 129 … … 124 131 if pclnum <> n then 125 132 pclnum = n 126 pscr.add([#title:"Castlib" && n &":", #items:[], #type:#divider]) 133 currPScripts = [] 134 pscr.add([#title:"Castlib" && n &":", #items:currPScripts, #type:#divider]) 127 135 end if 128 136 ---------------- // menu divider 129 137 130 pscr.add(thisScriptList)138 currPScripts.add(thisScriptList) 131 139 #score: 132 140 … … 134 142 if bclnum <> n then 135 143 bclnum = n 136 bscr.add([#title:"Castlib" && n &":", #items:[], #type:#divider]) 144 currBScripts = [] 145 bscr.add([#title:"Castlib" && n &":", #items:currBScripts, #type:#divider]) 137 146 end if 138 147 ---------------- // menu divider 139 148 140 bscr.add(thisScriptList)149 currBScripts.add(thisScriptList) 141 150 end case 142 151 … … 249 258 defaultItem = [#title: "", #items: [], #scripttype: memref.scripttype, #memName:dername, #memNum:memref.membernum, #clibNum:memref.castlibnum, #sel:[1,1]] 250 259 251 found = mParseScriptText(scrtext, theItems, defaultItem, kw, searchmode, len) 252 260 if len < 1 then 261 pCachedResults = xscr().mGetGlobalValue(#pCachedResults) 262 if ilk(pCachedResults) <> #proplist then 263 pCachedResults = [:] 264 xscr().mSetGlobalValue(#pCachedResults, pCachedResults) 265 end if 266 cached = pCachedResults.getaprop(string(memref)) 267 if ilk(cached) = #proplist then 268 theDate = cached.getaprop(#moddate) 269 if theDate = memref.modifiedDate then 270 found = 1 271 thisScriptList.setaprop(#items, cached.getaprop(#items)) 272 else 273 pCachedResults.deleteprop(string(memref)) 274 end if 275 end if 276 end if 277 if found <> 1 then 278 found = mParseScriptText(scrtext, theItems, defaultItem, kw, searchmode, len) 279 if len < 1 then 280 pCachedResults = xscr().mGetGlobalValue(#pCachedResults) 281 if ilk(pCachedResults) <> #proplist then 282 pCachedResults = [:] 283 xscr().mSetGlobalValue(#pCachedResults, pCachedResults) 284 end if 285 pCachedResults.setaprop(string(memref), [#theDate:memref.modifiedDate, #items:duplicate(theItems)]) 286 end if 287 end if 253 288 end if 254 289
Note: See TracChangeset
for help on using the changeset viewer.
