Hello.
So far with my editing of scripts, I've followed a simple plan-
1. Make changes/Add stuff
2. Get error message
3. Figure out why I got said error message
4. Fix it (A lot of the time, I go back to 2 at this point. Eventually I move on to 5)
5. Refine script
This time however... I'm getting no such error message... so I don't know what I'm doing wrong.
I added this to Scene_Menu.
def create_playtime_window
@playtime_window = Window_Playtime.new
@playtime_window.x = 384
@playtime_window.y = 272
end
Then I added this little copy pasted and edited script -
#==============================================================================
# ** Window_Playtime
#------------------------------------------------------------------------------
# This window displays the party's playtime.
#==============================================================================
class Window_Playtime < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, window_width, fitting_height(1))
refresh
end
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
contents.clear
end
#--------------------------------------------------------------------------
# * Draw Play Time
#--------------------------------------------------------------------------
def draw_playtime(x, y, width, align)
draw_currency_value(value, currency_unit, 4, 0, contents.width - 8)
header = DataManager.load_header(@file_index)
return unless header
end
#--------------------------------------------------------------------------
# * Get Party Playtime
#--------------------------------------------------------------------------
def value
$game_timer
end
#--------------------------------------------------------------------------
# Get Currency Unit
#--------------------------------------------------------------------------
def currency_unit
Vocab::playtime_unit
end
#--------------------------------------------------------------------------
# * Open Window
#--------------------------------------------------------------------------
def open
refresh
super
end
end
When I run the game and open the menus... it's just an empty window. Idk wut i did rong
maybe u no wut is rong w/it