Advertisement
LittleAngel

Untitled

Mar 17th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. void OnGUI () {
  2.  
  3. // Loot Window
  4. if (openLootWindow) { // If the "open loot window" toggle is true
  5. GUI.Window (0, lootWindow, DrawLootWindow, "Loot"); // The title of this window could be passed as a string from the LootableItem
  6. }
  7.  
  8. // Inventory Window
  9. if (openInventoryWindow) { // If the "open inventory window" toggle is true
  10. GUI.Window (1, inventoryWindow, DrawInventoryWindow, "Inventory"); // The title of this window could be passed as a string from the LootableItem
  11. }
  12.  
  13. // Character Window
  14. if (openCharacterWindow) {
  15. GUI.Window (2, characterWindow, DrawCharacterWindow, "Character"); // Set this to player.name, not "Character"
  16. }
  17.  
  18. // ToolTip Window
  19. if (toolTip) {
  20. GUI.Window (3, tooltipWindow, DrawToolTipWindow, ""); // Displays the tooltip
  21. GUI.BringWindowToFront(3);
  22. }
  23. GUI.Label (new Rect (150, 275, 300, 20), announcementString);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement