[Ace] Change position of an icon in a window

I'm new to RGSS3 and basically I am trying a few things out just to learn. 

I'm trying to build my own menu system where I use an icon in front of the selected item. 
I already know how to draw the icon but I can't seem to re-position it. 

This is what I have so far:

class Window_Quest_List < Window_Base  def initialize()      super(0,50,Graphics.width * 0.4,Graphics.height-50)      draw_icon(386,5,10,true)    end        def update      super      check_input    end        def check_input      if(Input.trigger?🙂DOWN))          @index = @index + 1          //Change position of the icon      end      if(Input.trigger?🙂UP))          @index = @index -1         //Change position of the icon      end    endendSo I guess that in the check_input method, I need to do something to update the position of the icon.

However I notice that the draw_icon does not give me a reference to an object that I can manipulate. 

If I use a sprite it would work however I do not know how I can draw a sprite based upon an icon index... 
Just thought about something... 

Don't know if it's the best solution but would it be good if I put the icon in its own window, above my original window. I can reposition the window with the icon. If I put the opacity to 0, I only see the icon, right?

I have this additional class:

Code:
class Window_Icon < Window_Base   def initialize(index,x,y)     super(x,y,50,50)     draw_icon(index,0,0,true)     self.opacity = 0   endend
you'd probably need to clear the contents then redraw on the position... unless you use a new sprite for every icon instead of the default which simply blt's an icon into the window sprite's bitmap...


AFAIK, if you set opacity of the window to 0, even the icon will become transparent... just make it not use a windowskin via self.windowskin = nil or if it errors, make a new windowskin that doesn't have the border and backgrounds and use it for the icon window


PS: Don't double post (within 72 hours), use edit button please
Thanks. I tried with the opacity and it works. The icon is visible. It's only the background of the window and the border where the opacity is applied. 

So this window approach is working fine for me. I can change its position easily by setting its x and y. 
though then again, making just a new sprite and moving it's x,y is easier and has less overhead than making a window just to show an icon

Original thread: https://forums.rpgmakerweb.com/threads/ace-change-position-of-an-icon-in-a-window.24416/