Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. public void AddHotBarSlot(uint nSlot, uint nSkillId)
  2. {
  3. Trace.WriteLine(String.Format("Adding skill {0} to slot {1}", nSkillId,nSlot));
  4.  
  5. Buttons button = m_HotBar.Button[nSlot];
  6.  
  7. if (button == null)
  8. {
  9. button = new Buttons(nSkillId);
  10. return;
  11. }
  12.  
  13. if (button.Type != ButtonType.Skill)
  14. {
  15. // Update database if this hotbar already exists
  16. }
  17.  
  18. button = new Buttons(nSkillId);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement