How to remove an image from a window?
#6
To my knowledge calling .dispose is the only way when you are deleting the window together with the image in it.
If you only want to make them temporarily disappear, you can use the visible attribute and link the image's one to the window's one with a piece of code similar to this one:

Code:
class Window_Map < Window_Base
  def visible=(value)
    @visible=value
    @Map_Image.visible=value
  end
end

though it might be different depending on the cases.
Reply


Messages In This Thread
[Resolved] How to remove an image from a window? - by Charlie Fleed - 07-13-2009, 03:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   How do I make a PNG image (or animation) show up when a character dies? Ace_V 6 1,771 08-31-2025, 11:07 PM
Last Post: kyonides
   Image transitions FriKitty 2 3,408 11-24-2024, 05:00 AM
Last Post: DerVVulfman
   Sorting Items in Shop Window Mel 13 24,929 01-18-2018, 05:49 AM
Last Post: DerVVulfman
   Showing only specific skills in a window Mel 2 8,097 01-12-2016, 01:34 PM
Last Post: Mel
  Changing Window Styles in Game JackMonty 8 14,894 03-22-2013, 11:54 PM
Last Post: JackMonty
   Something I noticed about the Advanced Shop Status Window yamina-chan 5 12,573 08-21-2011, 09:16 PM
Last Post: yamina-chan
   [Atoa SBS] Changing the command window font MegaPowerNinja 3 10,935 04-12-2011, 10:23 PM
Last Post: Victor Sant
   Repositioning the actor command window. MegaPowerNinja 4 12,057 04-12-2011, 05:21 AM
Last Post: MegaPowerNinja
   Need Help on Making Battle Status Window riou 4 13,945 03-22-2011, 06:04 AM
Last Post: Victor Sant
   Window Visibility Problem computerwizoo7 7 15,108 05-10-2010, 05:53 PM
Last Post: deValdr



Users browsing this thread: 1 Guest(s)