- Joined
- Dec 7, 2013
- Messages
- 797
- Reaction score
- 439
- First Language
- English
- Primarily Uses
I am trying to add several windows to the menu including location and 4 different currencies (or points) based on a variable. I pretty much got it functional but there is one problem I can't seem to crack. I am trying to specify two separate fonts for the currencies and the map name. The map name is supposed to be constantia (and it works) while the numbers are supposed to be Felix Titling (but it is coming out to be constantia). Even if I cut the map name font settings out I still have no control over them. Can someone please point out my goof
.
Just do a search for #Not working as intended
Just do a search for #Not working as intended
Code:
#==============================================================================# ** Window_MapDisplay#------------------------------------------------------------------------------# This window displays the map name.#==============================================================================class Window_MapDisplay < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0, 500, 200) self.back_opacity = 0 self.opacity = 0 Font.default_size = 30 Font.default_out_color = Color.new(0,0,0,0) Font.default_name = ["Constantia"] refresh end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 160 end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear draw_text_ex(x, y, $game_map.display_name) end #-------------------------------------------------------------------------- # * Open Window #-------------------------------------------------------------------------- def open refresh super endend # Window_MapDisplay#==============================================================================# ** Window_MapDisplay#------------------------------------------------------------------------------# This window displays Actor 2 SP Switch 50.#==============================================================================class Window_Actor2Display < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0, 500, 200) self.back_opacity = 0 self.opacity = 0 self.z = 600 Font.default_size = 36 #Not working as intended Font.default_out_color = Color.new(0,0,0,0) #Not working as intended Font.default_name = ["Felix Titling"] #Not working as intended refresh end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 160 end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear text = $game_variables[50] draw_text(x - line_height, y, width, line_height, text, 2) end #-------------------------------------------------------------------------- # * Open Window #-------------------------------------------------------------------------- def open refresh super endend # Window_MapDisplay#==============================================================================# ** Scene_Menu#------------------------------------------------------------------------------# This class performs the menu screen processing.#==============================================================================class Scene_Menu < Scene_MenuBase #-------------------------------------------------------------------------- # * Start Processing #-------------------------------------------------------------------------- alias map_name_start start def start map_name_start create_map_display_window end alias actor2_start start def start actor2_start create_actor2_display_window end #-------------------------------------------------------------------------- # * Create Map Display Window #-------------------------------------------------------------------------- def create_map_display_window @map_display_window = Window_MapDisplay.new @map_display_window.x = 365 @map_display_window.y = 496 end def create_actor2_display_window @create_actor2_display_window = Window_Actor2Display.new @create_actor2_display_window.x = 365 @create_actor2_display_window.y = 300 endend # Scene_Menu
Last edited by a moderator: