dragon/console_prompt.rb
def render(args, x:, y:)
        args.outputs.reserved << font_style.label(x: x, y: y, text: "#{@prompt}#{current_input_str}", color: @text_color)
        args.outputs.reserved << (@cursor_color.to_h.merge x: x + @cursor_position_px + 0.5,
                                                           y: y + 5,
                                                           x2: x + @cursor_position_px + 0.5,
                                                           y2: y + @font_style.letter_size.y + 5)

        args.outputs.reserved << (@cursor_color.to_h.merge x: x + @cursor_position_px + 1,
                                                           y: y + 5,
                                                           x2: x + @cursor_position_px + 1,
                                                           y2: y + @font_style.letter_size.y + 5)

        # debugging rectangle for string
        # args.outputs.reserved << (@cursor_color.to_h.merge x: x,
        #                                                    y: y + 5,
        #                                                    w: @cursor_position_px,
        #                                                    h: @font_style.letter_size.y).border
      end
# ? Can be changed, it was just taken from my editor settings :>
? Can be changed, it was just taken from my editor settings :>
? Can be changed it was just taken from my editor settings : >
def render(args, x:, y:)
        args.outputs.reserved << font_style.label(x: x, y: y, text: "#{@prompt}#{current_input_str}", color: @text_color)
        args.outputs.reserved << (@cursor_color.to_h.merge x: x + @cursor_position_px + 0.5,
                                                           y: y + 5,
                                                           x2: x + @cursor_position_px + 0.5,
                                                           y2: y + @font_style.letter_size.y + 5)
        args.outputs.reserved << (@cursor_color.to_h.merge x: x + @cursor_position_px + 1,
                                                           y: y + 5,
                                                           x2: x + @cursor_position_px + 1,
                                                           y2: y + @font_style.letter_size.y + 5)
      end
def render ( args , x : , y : ) args . outputs . reserved << font_style . label ( x : x , y : y , text : "#{@prompt}#{current_input_str}" , color : @text_color ) args . outputs . reserved << ( @cursor_color . to_h . merge x : x + @cursor_position_px + 0.5 , y : y + 5 , x2 : x + @cursor_position_px + 0.5 , y2 : y + @font_style . letter_size . y + 5 ) args . outputs . reserved << ( @cursor_color . to_h . merge x : x + @cursor_position_px + 1 , y : y + 5 , x2 : x + @cursor_position_px + 1 , y2 : y + @font_style . letter_size . y + 5 ) end
?
?
# debugging rectangle for string # args.outputs.reserved << (@cursor_color.to_h.merge x: x, #                                                    y: y + 5, #                                                    w: @cursor_position_px, #                                                    h: @font_style.letter_size.y).border
args
x
y