Jump to content
Guyver's Bane

Vertical Lines Method

Recommended Posts

Is there a way to draw vertical lines in ace along with the horizontal ones? Like is there a draw_vertical_line method?

Edited by Guyver's Bane

Share this post


Link to post
Share on other sites

There's none, but you can use this one.

class Window_Base < Window
  
  def draw_vert_line(x, y, length)
    color = normal_color
    color.alpha = 48
    contents.fill_rect(x, y, 2, length, color )
  end
end

And then you'll be able to draw vertical lines with draw_vert_line(x, y, length).

  • Like 1

Share this post


Link to post
Share on other sites

I have moved this thread to 'Ruby School for Thought'. (=

This thread is closed, due to being solved. (=

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted