gabicho

Warper
Member
Joined
Feb 16, 2015
Messages
4
Reaction score
1
First Language
english
Primarily Uses
N/A
Hello! I was wondering if there was a way to have a separate opacity setting for the "select key item" menu that pops up in an event?
I'm using a custom item menu script (Seiryuki's CATEGORIZE ITEM SCENE) that changes the opacity settings for the item screen on the menu which makes it completely transparent. However, this messes with the key item menu that comes up with an event.
I wanted to keep the transparent menu-item screen while having an opaque key item menu for events. Is this possible?

Here's the part of the custom script that deals with the item list and also changes the key item menu::
class Window_ItemList < Window_Selectable

alias icat_initialize initialize
def initialize(x, y, width, height)
icat_initialize(x, y, 575, height)
@category = ICAT::VISIBLE_CATEGORY_INDEX
self.opacity = 255
end

def include?(item)
return false if item == nil
case @category
when :item
item.is_a?(RPG::Item) && !item.key_item?
when :weapon
item.is_a?(RPG::Weapon)
when :armor
item.is_a?(RPG::Armor)
when :key_item
item.is_a?(RPG::Item) && item.key_item?
when :all_item
item.is_a?(RPG::Item) || item.is_a?(RPG::Armor) || item.is_a?(RPG::Weapon)
else
###### NEED TO CHECK FOR CUSTOM CATEGORIES HERE AND
###### DECIDE IF TO INCLUDE THE ITEM TO IT
@icategory = item.item_category
for i in @icategory do
if @category == i
return item.item_category.include?(@category)
end
end
return false
end #when
end #def

end #class
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,351
Reaction score
9,057
First Language
English
Primarily Uses
RMMV

I've moved this thread to Script Support. Thank you.

 

tvghost

Veteran
Veteran
Joined
Dec 22, 2014
Messages
359
Reaction score
112
First Language
English
Primarily Uses
RMVXA
Add "self.opacity = 255" in Window_KeyItem like this:

Code:
class Window_KeyItem < Window_ItemList
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(message_window)
    @message_window = message_window
    super(0, 0, Graphics.width, fitting_height(4))
    self.openness = 0
    self.opacity = 255
    deactivate
    set_handler(:ok,     method(:on_ok))
    set_handler(:cancel, method(:on_cancel))
  end

and in the custom scipt, in class Window_ItemList < Window_Selectable (def initialize) add self.opacity = 0, like this:

Code:
class Window_ItemList < Window_Selectable
 
  alias icat_initialize initialize
  def initialize(x, y, width, height)
    icat_initialize(x, y, width, height)
    @category = ICAT::VISIBLE_CATEGORY_INDEX
    self.opacity = 0
  end

upload_2019-1-10_10-8-44.png
upload_2019-1-10_10-9-0.png
 

gabicho

Warper
Member
Joined
Feb 16, 2015
Messages
4
Reaction score
1
First Language
english
Primarily Uses
N/A
^
Thank you so much!! It worked perfectly!
 

Latest Threads

Latest Profile Posts

After a long absence I am back
Sigh gonna have to scrap a big thing for my battle system but that's fine, I can event it all just gonna take more time than I'd like. But that just leaves room for more cosmetic stuff so it's not the worst thing in the world.
Falling Crew1.png

the four main characters falling into a pocket dimension known as Escape Space.
Writing a game about my trauma and I want to do a level about struggling with my sexuality. It's a horror game and each level is different with a different monster chase but I have no idea how to go about this level any ideas?
It's been a while since i posted so here's something i've been working on.
Game_Mockup7_6.png

Forum statistics

Threads
118,550
Messages
1,116,876
Members
155,587
Latest member
nekos
Top