Remove CSCA Encyclopedia Header

I'm using CSCA Encyclopedia and I wanted to remove the header (The part where it's written "Encyclopedia"), so I can fit more information in the screen, more specifically in the note part, so it would be something like this:
hFwAOsG.png

This is a edited print. I enlarged the window size to 544x464 (Which is the header lenght, 48px) and removed the header in an editing software.

However, as you can see, there are two issues here:
1. The Note part doesn't support line breaks, something that I would certainly use if there were more space in the box.
2. The "Press Button" doesn't go to the bottom of the box, it's somewhat fixed?

Also a minor issue is that in the Enemy/Weapon/etc and Custom Categories I can't use message codes (colors and icons).
Could someone please edit the script?
(Note: The command that draws information is probably the same or alike for items, enemies, weapons and armors, but in case it's not, I which the space would be corrected in all of them :x)
Removing header.
line 257
#~ create_head_window

Line 272
@command_window = CSCA_Window_EncyclopediaMainSelect.new(0, 0)#@head_window.height)

Line 292 & 293
wy = @csca_info_window.height - @command_window.height
wh = @command_window.height

Line 302
wh = @command_window.height
That solves the header problem, thanks ☺️

As for the note, I managed to move the toggle button text and set a "customnote2" so it could serve as a fake line break, I just need to adjust the height a little more. However, there is another issue...
tiOF8ck.png

I can't figure out how to correct the X of the thing.
That probably happens because there is a pre-set definition to that line (that I just copy and pasted)
I tried changing it, but I couldn't do it without an error. D:

And also... now I'm thinking about removing that "Note:" thing, but I think I can do it myself once I get to know how to correct the X value
I don't see what you mean by X.
It looks fine to me.
I was trying to get the note thing working by adjusting the note scan regex, but I get errors.
Another script I have that has the exact same code works fine, but in this script it doesn't.
I mean the X coordinate. There's a space before the second line, but I can't figure it out how to take it off
upload_2019-3-30_23-46-25.png
In the original script line 753
draw_text(x+40,y,width,height," "+item.csca_custom_note)

The x+40 is the adjustment. If you copy pasted then that will still be there.
It moves 40 so that it doesn't overlap the "Notes:" text.

I like it the way it is now. All the white text is aligned.
I mean the X coordinate. There's a space before the second line, but I can't figure it out how to take it off
View attachment 112467
Agreed with Roninator. With the indentation of the text here:
upload_2019-3-31_8-3-27.png

It makes more sense design-wise to keep the indentation for the note text.
Got it working.
Add this as a new script under encyclopedia
Put original script back to how it was.
Spoiler: addon
Code:
=begin
CSCA Encyclopedia
version: 3.0.3 (Released: March 7, 2013)
Created by: Casper Gaming (http://www.caspergaming.com/)

## Modded by Roninator2

##    Custom note for encyclopedia items now
##    use the following:
##    <cscanote>
      Your Text Here
      with more text

      tada
##    </cscanote>
##   
##    all the text inside will be displayed for the note description
##
##    fixed the press action button position for 640x480 screen

=end

class Scene_CSCA_Encyclopedia < Scene_MenuBase
 
  def start
    super
    create_command_window
    create_dummy_window
    create_csca_info_window
    create_specific_total_window
    create_csca_list_window
    create_total_window
  end
  def create_command_window
    @command_window = CSCA_Window_EncyclopediaMainSelect.new(0, 0)
    @command_window.viewport = @viewport
    @command_window.set_handler(:ok,     method(:on_category_ok))
    @command_window.set_handler(:cancel, method(:return_scene))
  end
  def create_specific_total_window
    wy = @csca_info_window.height - @command_window.height
    wh = @command_window.height
    wl = @dummy_window.width - 80
    @specific_total_window = CSCA_Window_EncyclopediaSpecificTotal.new(0, wy, wl, wh)
    @specific_total_window.viewport = @viewport
    @command_window.csca_specific_total_window = @specific_total_window
  end
 
  def create_total_window
    wy = @csca_list_window.y + @csca_list_window.height + @specific_total_window.height
    wh = @command_window.height
    wl = @csca_list_window.width
    @total_window = CSCA_Window_EncyclopediaTotal.new(0, wy, wl, wh)
    @total_window.viewport = @viewport
  end
end
class CSCA_Window_EncyclopediaInfo < Window_Base
Graphics.resize_screen(640, 480)
  def notes
    @item.effect_desc
  end

  def csca_draw_custom_note(x,y,width,height,item)
    @item = item
    contents.font.size = 20
    change_color(system_color)
    draw_text(x,y,width,height,"Note: ")
    change_color(normal_color)
    notes.each do |l|
      draw_text(x+45, y, contents.width, line_height, l)
      y += line_height
    end
  end
  def csca_draw_toggle_tutorial
    contents.font.size = 16
    draw_text(0,380,contents.width,line_height,CSCA_ENCYCLOPEDIA::TRIGGER_TEXT,1)
  end

end

class RPG::BaseItem
 
  def effect_desc
    make_effect_desc if @effect_desc.nil?
    return @effect_desc
  end
 
  def make_effect_desc
    @effect_desc = []
    results = self.note.scan(/<cscanote>(.*?)<\/cscanote>/imx)
    results.each do |res|
      res[0].strip.split("\r\n").each do |line|
      @effect_desc.push("#{line}")
      end
    end
  end

end
Your note tags will look like this now
Code:
<cscanote>
Your Text Here
with more text

tada
</cscanote>
upload_2019-3-31_9-1-33.png

@Ebanyle
640x480
upload_2019-3-31_9-6-42.png
@tv.ghost I agree, but now I was think in removing the note and leaving something like a mini description rather than a note, maybe. It doesn't work since the text gets squished, so I'll keep it that way.

@Roninator2 Thank you so much ☺️ It works perfectly!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/remove-csca-encyclopedia-header.107428/