Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.59 KB | None | 0 0
  1. --- luaorig/lib.mainmenu.charlist.lua   2010-02-26 23:24:02.000000000 +0100
  2. +++ lua/lib.mainmenu.charlist.lua   2010-10-02 15:09:39.660081759 +0200
  3. @@ -17,6 +17,27 @@
  4.      for k,char in ipairs(mychars) do if (char.name == "") then return char.id end end
  5.  
  6.  end
  7.  
  8.  
  9.  
  10. +function MainMenu_CharList_DrawCharacter ()
  11.  
  12. +    local chardata = GetCharFileData(user,0)
  13.  
  14. +   if (chardata) then
  15.  
  16. +
  17.  
  18. +       local maxlayers = 24
  19.  
  20. +       local layers = 1
  21.  
  22. +       local arr = {}
  23.  
  24. +       for layers = 1, maxlayers do
  25.  
  26. +           if (chardata.equip[layers]) then
  27.  
  28. +               --table.insert(arr,chardata.equip[layers].artid)
  29.  
  30. +               local tiledata = GetStaticTileType(chardata.equip[layers].artid)
  31.  
  32. +               local modelid = tiledata.miAnimID
  33.  
  34. +               table.insert(arr,(string.format("{artid=%s,animid=%s,hue=%s}", chardata.equip[layers].artid, modelid, chardata.equip[layers].hue)))
  35.  
  36. +           end
  37.  
  38. +       end
  39.  
  40. +       local charequip = table.concat(arr,",")
  41.  
  42. +       --print ("GetCharEquip", charequip)
  43.  
  44. +       MainMenuShowModel(400,0,5,0,{charequip})
  45.  
  46. +   end
  47.  
  48. +end
  49.  
  50. +
  51.  
  52.  function MainMenu_CharList_Start ()
  53.  
  54.  --  print("########################")
  55.  
  56.  --  print("MainMenu_CharList_Start")
  57.  
  58. @@ -26,6 +47,8 @@
  59.      
  60.  
  61.      local mychars = MainMenu_GetSortedCharlist()
  62.  
  63.      
  64.  
  65. +    MainMenu_CharList_DrawCharacter()
  66.  
  67. +    
  68.  
  69.      local bFreeSlotAvailable = false
  70.  
  71.      local bAllSlotsEmpty = true
  72.  
  73.      for k,char in ipairs(mychars) do
  74.  
  75. @@ -125,6 +148,8 @@
  76.  -- acc list
  77.  
  78.  
  79.  
  80.  function MainMenu_CharList_Back ()
  81.  
  82. +    MainMenuShowDefModel()
  83.  
  84. +    MainMenuShowDefStatic()
  85.  
  86.      MainMenuResetNetwork()
  87.  
  88.      MainMenu_ShardList_Start()
  89.  
  90.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement