Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- luaorig/lib.mainmenu.charlist.lua 2010-02-26 23:24:02.000000000 +0100
- +++ lua/lib.mainmenu.charlist.lua 2010-10-02 15:09:39.660081759 +0200
- @@ -17,6 +17,27 @@
- for k,char in ipairs(mychars) do if (char.name == "") then return char.id end end
- end
- +function MainMenu_CharList_DrawCharacter ()
- + local chardata = GetCharFileData(user,0)
- + if (chardata) then
- +
- + local maxlayers = 24
- + local layers = 1
- + local arr = {}
- + for layers = 1, maxlayers do
- + if (chardata.equip[layers]) then
- + --table.insert(arr,chardata.equip[layers].artid)
- + local tiledata = GetStaticTileType(chardata.equip[layers].artid)
- + local modelid = tiledata.miAnimID
- + table.insert(arr,(string.format("{artid=%s,animid=%s,hue=%s}", chardata.equip[layers].artid, modelid, chardata.equip[layers].hue)))
- + end
- + end
- + local charequip = table.concat(arr,",")
- + --print ("GetCharEquip", charequip)
- + MainMenuShowModel(400,0,5,0,{charequip})
- + end
- +end
- +
- function MainMenu_CharList_Start ()
- -- print("########################")
- -- print("MainMenu_CharList_Start")
- @@ -26,6 +47,8 @@
- local mychars = MainMenu_GetSortedCharlist()
- + MainMenu_CharList_DrawCharacter()
- +
- local bFreeSlotAvailable = false
- local bAllSlotsEmpty = true
- for k,char in ipairs(mychars) do
- @@ -125,6 +148,8 @@
- -- acc list
- function MainMenu_CharList_Back ()
- + MainMenuShowDefModel()
- + MainMenuShowDefStatic()
- MainMenuResetNetwork()
- MainMenu_ShardList_Start()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement