Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnGUI () {
- // Loot Window
- if (openLootWindow) { // If the "open loot window" toggle is true
- GUI.Window (0, lootWindow, DrawLootWindow, "Loot"); // The title of this window could be passed as a string from the LootableItem
- }
- // Inventory Window
- if (openInventoryWindow) { // If the "open inventory window" toggle is true
- GUI.Window (1, inventoryWindow, DrawInventoryWindow, "Inventory"); // The title of this window could be passed as a string from the LootableItem
- }
- // Character Window
- if (openCharacterWindow) {
- GUI.Window (2, characterWindow, DrawCharacterWindow, "Character"); // Set this to player.name, not "Character"
- }
- // ToolTip Window
- if (toolTip) {
- GUI.Window (3, tooltipWindow, DrawToolTipWindow, ""); // Displays the tooltip
- GUI.BringWindowToFront(3);
- }
- GUI.Label (new Rect (150, 275, 300, 20), announcementString);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement