Jump to content

Rari

Member
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Rari's Achievements

  1. As a part of a mod I am working on, I would like to modify media\lua\client\ISUI\ISInventoryPaneContextMenu.lua to allow you to write in journals with colored pens and crayons. I've tried temporarily making the modification (adding extra conditions when defining the local variable "editable") in the actual game file, and that worked. I've tried creating a lua file in my mod with these contents, but I'm not getting the desired results. ISInventoryPaneContextMenu.createMenu = function(player, isInPlayerInventory, items, x, y, origin) if canBeWrite then local editable = getSpecificPlayer(player):getInventory():contains("Pencil") or getSpecificPlayer(player):getInventory():contains("Pen") or getSpecificPlayer(player):getInventory():contains("RedPen") or getSpecificPlayer(player):getInventory():contains("BluePen") or getSpecificPlayer(player):getInventory():contains("Crayons") if canBeWrite:getLockedBy() and canBeWrite:getLockedBy() ~= getSpecificPlayer(player):getUsername() then editable = false end if not editable then context:addOption(getText("ContextMenu_Read_Note") .. canBeWrite:getName(), canBeWrite, ISInventoryPaneContextMenu.onWriteSomething, false, player); else context:addOption(getText("ContextMenu_Write_Note") .. canBeWrite:getName(), canBeWrite, ISInventoryPaneContextMenu.onWriteSomething, true, player); end end -- use the event (as you would 'OnTick' etc) to add items to context menu without mod conflicts. triggerEvent("OnFillInventoryObjectContextMenu", player, context, items); return context; end Can anyone show me how to make this actually work in a mod? What am doing wrong?
  2. I'm having a similar problem to GHawkins. I've watched ItemZed Additional Options by TurboTuTone several times and I'm not sure what I'm doing wrong. Is there a video or guide somewhere that I'm not seeing for how to set this up?
  3. Playing on IWBUMS 37.5 with friend ScarSquirrel. The above fix isn't working, we're still seeing the black screen when the other player wakes up.
×
×
  • Create New...