I have a problem with the tittle screen command window

Hello everyone, how are you? c:  this is my first post and I'm really just learning how to use the RPG Maker VXAce, and now I had a problem and I didn't find any solution in intenet.


The problem is related with the options window that appears in the tittle screen (command window I believe), specifically with the size of the letters and the separation between options


With a small size font like 15 I don't have any problems, but when I change the size this happens: Changed Script.pngChanged Menu 1.pngGood Changed Menu 1.png


As I said before, I don't have any idea of the things or variables that are involved in this "problem" I'm new :c, but i believe that I have 3 problems (which are possibly related): the first is the size of the font space (in green), the second the size of the selection space (in blue) and finally the space o separation between options (in yellow).


This is another example


:Changed Script 2.pngChanged Menu 2.pngGood Changed Menu 2.png


As you can see the problem is the same, and next to the first window with the problem I drew a window that I want with problems solved


If you did not understand well how to explain me here is another idea of how I think it is my problem D:


Explication.png


If someone knows how to solve this problem with a new script or modifying the game's default scripts I would appreciate it if you took some time to explain how the change works so that I can manage to modify the window as I want and I could learn more about this program 🙂


Sorry for my english, I'm Chilean :C and thanks for took your time reading this noob post XD
This should do the trick:


class Window_TitleCommand < Window_Command

def line_height
return Font.default_size
end

def update_placement
self.x = (Graphics.width - width) / 2
self.y = Graphics.height - height - 30
end

end




However if I were you I wouldn't change my font size there. That changes it for the whole game. If you want to change it change it only where you actually need it. If you don't have an idea of what I mean then open your game, show a message and it will be clear.



If you want something better than that and you don't want to change your font size there you can use this:

Spoiler
Code:
module HTW
  
  # Change this to be the font size you want to use in your game
  FONT_SIZE_DEFAULT = 24
  
  # Change this to be the font size you want to use in your title screen
  FONT_SIZE_TITLE = 48
  
end

class Window_TitleCommand < Window_Command
  
  alias htw_initialize_old  initialize
  def initialize
    Font.default_size = HTW::FONT_SIZE_TITLE
    htw_initialize_old
  end
  
  def line_height
    return Font.default_size
  end
  
  def update_placement
    self.x = (Graphics.width - width) / 2
    self.y = Graphics.height - height - 30
  end
  
end

class Scene_Title < Scene_Base
  
  alias htw_command_new_game_old  command_new_game
  alias htw_command_continue_old  command_continue
  
  def command_new_game
    Font.default_size = HTW::FONT_SIZE_DEFAULT
    htw_command_new_game_old
  end
  
  def command_continue
    Font.default_size = HTW::FONT_SIZE_DEFAULT
    htw_command_continue_old
  end
  
end
If you want to change the font size for one window only, you don't change the default font size, that is unnecessary.


You need to change the font properties for the window itself in these cases.


I think, all of your issues can be fixed with this snippet:

Spoiler
class Window_TitleCommand < Window_Command

def window_height
visible_line_number * 40 + standard_padding * 2
end

def item_height
return 40
end

def draw_all_items
contents.font.size = 40
super
end

end



Replace all number 40 with the font size you want.


This will automatically resize the window's and the cursor's height, so you should be fine with this.


In case your font uses a weird size scaling, and the window/cursor would get too big compared to the text (or vice verse), you can separately edit the 40s in the snippet and find which one suits your font type.


Btw, what does that "Window Resizer" do on your script list? 
This should do the trick:



class Window_TitleCommand < Window_Command

def line_height
return Font.default_size
end

def update_placement
self.x = (Graphics.width - width) / 2
self.y = Graphics.height - height - 30
end

end




However if I were you I wouldn't change my font size there. That changes it for the whole game. If you want to change it change it only where you actually need it. If you don't have an idea of what I mean then open your game, show a message and it will be clear.



If you want something better than that and you don't want to change your font size there you can use this:

Spoiler
module HTW

# Change this to be the font size you want to use in your game
FONT_SIZE_DEFAULT = 24

# Change this to be the font size you want to use in your title screen
FONT_SIZE_TITLE = 48

end

class Window_TitleCommand < Window_Command

alias htw_initialize_old initialize
def initialize
Font.default_size = HTW::FONT_SIZE_TITLE
htw_initialize_old
end

def line_height
return Font.default_size
end

def update_placement
self.x = (Graphics.width - width) / 2
self.y = Graphics.height - height - 30
end

end

class Scene_Title < Scene_Base

alias htw_command_new_game_old command_new_game
alias htw_command_continue_old command_continue

def command_new_game
Font.default_size = HTW::FONT_SIZE_DEFAULT
htw_command_new_game_old
end

def command_continue
Font.default_size = HTW::FONT_SIZE_DEFAULT
htw_command_continue_old
end

end

Thanks for replying c: I'll see it soon and I'll let you know if it works for me: D
I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
It was at the right place, the question is VX Ace script related. 😀


Move it back quickly, I will pretend I didn't see. 😛
It was in RGSS3 Scripts (releases), not Script Support. 😉
It was either in RGSS3 Script Requests or RGSSx Script Support, that's why I was a bit surprised that it got moved to the Javascript section. 😳


I replied it from there a few hours ago. 😀


Haven't replied to anything in the RGSS3 Scripts (releases) section today, so it wasn't there.
Yeah, it was there, and I reported it to be moved. 😉   The mod who moved it would have also checked to confirm that it was in the wrong place.
Yeah, it was there, and I reported it to be moved. 😉   The mod who moved it would have also checked to confirm that it was in the wrong place.



And then move it to the wrong section anyway. 😛


So yeah, I'll fix that. 😀
OMG it works, thanks everyone for reading my post and helping me 😀!!! I really thought that no one would ever respond to me XD

Original thread: https://forums.rpgmakerweb.com/threads/i-have-a-problem-with-the-tittle-screen-command-window.71491/