Help - Search - Members - Calendar
Full Version: Window cursor rect
RPG RPG Revolution Forums > Scripting > Script Development and Support
Feoden
I have a question.
I have created some scripts where you have to fill a window_selectable with some rectangles, i.e. using the command bitmap.fill_rect.
However when i create shapes in the window, the cursor vanishes below them.
Why does it so?
Is there a way to fill a window with pictures and at the same time let the cursor move ABOVE them?
Kread-EX
It would be easier to pinpoint the problem if we could see your code.
Feoden
Well I think this is a matter of the window itself and not of a specific code...
Anyway this is what happens:
I draw a rectangular with a given color, and the cursor vanishes below.
I tried to change the color.alpha to 200 and then the cursor is visible again, but very dimy. So there must happen that the window first draws the Rect containing the cursor, and then applies the other colored Rect.
I wondered, is there a way to rewrite the cursor above them (such as redeclaring it) instead of modifying the transparency of the colors?

CODE
this is the command I call:
    self.contents.fill_rect(rect,@Colors[color_index])
[....]
and this is the update_cursor:
  def update_cursor_rect
    x = @D*(@RW+self.index%@bitmap.width)-self.ox
    y = @D*(@DW+self.index/@bitmap.width)-self.oy
    self.cursor_rect.set(x, y, @D, @D)      
  end
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.