06-28-2005, 01:00 PM
(This post was last modified: 07-20-2017, 04:48 AM by DerVVulfman.)
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
No support is given. If you are the owner of the thread, please contact administration.
This is for anybody who doesn't like the steps window and would like something better. This is my first script ever so take a look.
First turn Window_Steps into Window_Location
Completely clear it and replace it with this.
Code:
# â– Window_Location
#------------------------------------------------------------------------------
#  メニュー画é?¢ã?§æ©æ•°ã‚’表示ã?™ã‚‹ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ã?§ã?™ã€‚
#==============================================================================
class Window_Location < Window_Base
#--------------------------------------------------------------------------
# � オブジェクト�期化
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
refresh
end
#--------------------------------------------------------------------------
# � リフレッシュ
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 120, 32, "Location")
self.contents.font.color = normal_color
location=$game_map.name
cx2=contents.text_size($game_map.name.to_s).width
self.contents.draw_text(90-cx2,32,cx2,32,location)
end
end
Then go to scene_menu and replace this.
Code:
@steps_window = Window_steps.new
@steps_window.x = 0
@steps_window.y = 320
With this.
Code:
@location_window = Window_Location.new
@location_window.x = 0
@location_window.y = 320
The location is the map's name.