Pinkishu

Untitled

Sep 13th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. function updateCharInfo()
  2.     charInfoFrame:SetName("Char Info: "..selectedChar)
  3.  
  4.     charInfoFrame_List:Clear()
  5.  
  6.     for i,v in ipairs(priorityStrs) do
  7.         local listText = loveframes.Create("text")
  8.         listText:SetText("---------------")
  9.         charInfoFrame_List:AddItem(listText)
  10.  
  11.         listText = loveframes.Create("text")
  12.         listText:SetText(v)
  13.         charInfoFrame_List:AddItem(listText)
  14. print(data.people[selectedChar].strings[i])
  15.         listText = loveframes.Create("text")
  16.         listText:SetText("\""..data.people[selectedChar].strings[i].."\"")
  17.         giftInfoFrame_List:AddItem(listText)
  18.  
  19.         listText = loveframes.Create("text")
  20.         listText:SetText(" ")
  21.         charInfoFrame_List:AddItem(listText)
  22.  
  23.         for k,v in pairs(data.people[selectedChar].items) do
  24.             if v == i then
  25.                 listText = loveframes.Create("text")
  26.                 listText:SetText("- "..k)
  27.                 charInfoFrame_List:AddItem(listText)
  28.             end
  29.         end
  30.     end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment