"Select Key Item" menu opacity

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
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV

I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

ZirconStorms

Veteran
Veteran
Joined
Dec 22, 2014
Messages
359
Reaction score
111
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,847
Messages
1,016,972
Members
137,561
Latest member
JaCrispy85
Top