Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Location
#1
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.


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.
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Location Window Eccid 0 2,074 09-11-2005, 01:00 PM
Last Post: Eccid
  Location Scrpt V.2 Tony 0 2,179 09-04-2005, 01:00 PM
Last Post: Tony
  Different Location Script KaotiX 0 2,231 09-02-2005, 01:00 PM
Last Post: KaotiX



Users browsing this thread: