basically, change this
Code: Select all
<Action name="Custom Work" key="C">
...
(scrShowScreen gScreen &dsTinkerCustomWork;)
...
</Action>
...
<DockScreen UNID="&dsTinkerCustomWork;"
type= "customItemPicker"
backgroundID= "&rsItemListScreen;"
nestedScreen= "true"
>
<List>
(map (typGetData &svTinkers; 'Recipes) 'excludeNil theRecipe
(tinkerCreateItem theRecipe 1)
)
</List>
<Panes>
<Default>
<OnPaneInit>
(block (theItem theRecipe theComponents desc componentDesc componentPrice workCost errorDesc missingComponents maxCount availableComponents)
(setq theItem (scrGetItem gScreen))
; Find the recipe for this item
(setq theRecipe
(@ (filter (typGetData &svTinkers; 'Recipes) theRecipe
(eq (@ theRecipe 'item) (itmGetType theItem))
)
0
)
)
...
Code: Select all
<Action name="Custom Work" key="C">
...
(block Nil
(setq gSovereign &svTinkers;)
(setq gRecipes 'Recipes)
(scrShowScreen gScreen "&dsTinkerCustomWork;")
)
...
</Action>
...
<DockScreen UNID="&dsTinkerCustomWork;"
type= "customItemPicker"
backgroundID= "&rsItemListScreen;"
nestedScreen= "true"
>
<List>
(map (typGetData gSovereign gRecipes) 'excludeNil theRecipe
(tinkerCreateItem theRecipe 1)
)
</List>
<Panes>
<Default>
<OnPaneInit>
(block (theItem theRecipe theComponents desc componentDesc componentPrice workCost errorDesc missingComponents maxCount availableComponents)
(setq theItem (scrGetItem gScreen))
; Find the recipe for this item
(setq theRecipe
(@ (filter (typGetData gSovereign gRecipes) theRecipe
(eq (@ theRecipe 'item) (itmGetType theItem))
)
0
)
)
...