GetBagItems
1.程序代码如下
function TaFrmMain.GetBagItems(idx: Integer): TDirectDrawSurface; //绘制背包内物品图片
begin
if UseBagItem and (Mirorsf = 0) then
Begin
Result := WBagItem1.Images[idx]; //调用 Data\Items.wil 文件
if Result=nil then
Result := WBagItem.Images[idx];
End
else
Result := WBagItem.Images[idx];