Project1
标题:
如何更改地图转移后显示名称的坐标
[打印本页]
作者:
倾灬城
时间:
2014-2-13 22:46
标题:
如何更改地图转移后显示名称的坐标
仍然是尽头君那个工程→_→【
http://rpg.blue/thread-333057-1-1.html
】【
不知道尽头君上来后会感谢我帮他宣传么诶嘿嘿【你快够
】
转移地图后显示地图名的那条小黑框和原来的角色信息框重合了好丑啊_(:312)_
然后我这个渣渣又手贱对脚本做了点小修改【作死!
于是现在想改坐标怎么破→_→
@Sion
@喵呜喵5
@rmav
@love896624434
@shabi
@945127391
@迷糊的安安
对不起了大神们这点小事还要麻烦你们otz
作者:
tseyik
时间:
2014-2-14 23:20
你可参考這脚本
$game_system.rgssinit024.posture = 値
値0~4(四角中央)
game_system.rgssinit024.font = "フォント名"
フォント名文件名
$game_system.rgssinit024.color = Color.new(赤の値, 緑の値, 青の値)
文字色
#==============================================================================
# □ No.024
# マップネーム表示拡張(RPGツクールVX Ace)
#------------------------------------------------------------------------------
# by initialization
#==============================================================================
#==============================================================================
# □ 設定
#==============================================================================
module RGSSinit end
module RGSSinit::Map_Name_Display_Extension
#--------------------------------------------------------------------------
# ○ 素材スイッチ(true/false)
#--------------------------------------------------------------------------
MATERIAL_SWITCH = true
#----------------------------------------------------------------------------
# ○ 表示位置
#----------------------------------------------------------------------------
POSTURE = 4
#----------------------------------------------------------------------------
# ○ マップネームフォント
#----------------------------------------------------------------------------
FONT_NAME = "VL Gothic"
#----------------------------------------------------------------------------
# ○ マップネームの文字列の色(Colorクラス指定)
#----------------------------------------------------------------------------
FONT_COLOR = Color.new(255, 255, 255)
end
#==============================================================================
# ■ Object
#==============================================================================
class Object
#--------------------------------------------------------------------------
# ○ アクセス省略化
#--------------------------------------------------------------------------
RGSSinit024 = RGSSinit::Map_Name_Display_Extension
end
#==============================================================================
# □ マップネーム表示拡張
#==============================================================================
$rgssinit ||= {} ; $rgssinit["マップネーム表示拡張"] = RGSSinit024::MATERIAL_SWITCH
if $rgssinit["マップネーム表示拡張"]
#==============================================================================
# ■ Scene_Load
#==============================================================================
class Scene_Load < Scene_File
#--------------------------------------------------------------------------
# ● セーブファイルの決定 [再定義]
#--------------------------------------------------------------------------
def on_savefile_ok
super
if DataManager.load_game(@index)
on_load_success
load_rgssinit unless $rgssinit.nil?
else
Sound.play_buzzer
end
end
#--------------------------------------------------------------------------
# ○ RGSSinitの設定/再設定
#--------------------------------------------------------------------------
def load_rgssinit
$game_system.rgssinit_setting rescue ""
end
end
#==============================================================================
# ■ Game_System
#==============================================================================
class Game_System
#--------------------------------------------------------------------------
# ● 公開インスタンス変数
#--------------------------------------------------------------------------
attr_accessor :rgssinit024
#--------------------------------------------------------------------------
# ● オブジェクト初期化 [再定義]
#--------------------------------------------------------------------------
def initialize
@save_disabled = false
@menu_disabled = false
@encounter_disabled = false
@formation_disabled = false
@battle_count = 0
@save_count = 0
@version_id = 0
@window_tone = nil
@battle_bgm = nil
@battle_end_me = nil
@saved_bgm = nil
rgssinit_setting unless $rgssinit.nil?
if $rgssinit["マップ追加"]
@main_directory = @directory = @old_directory = RGSSinit127::MAIN_DIRECTORY_NAME == "" ? "main" : RGSSinit127::MAIN_DIRECTORY_NAME
end
end
#--------------------------------------------------------------------------
# ○ システム構築
#--------------------------------------------------------------------------
alias rgssinit_setting_024 rgssinit_setting rescue ""
def rgssinit_setting
@rgssinit024 = RGSSinitM024.new if @rgssinit024.nil?
rgssinit_setting_024 rescue ""
end
end
#==============================================================================
# □ RGSSinitM024
#==============================================================================
class RGSSinitM024
#--------------------------------------------------------------------------
# ● 公開インスタンス変数
#--------------------------------------------------------------------------
attr_accessor :posture
attr_accessor :font
attr_accessor :color
#--------------------------------------------------------------------------
# ○ オブジェクト初期化 [オーバーライド]
#--------------------------------------------------------------------------
def initialize
@posture = RGSSinit024::POSTURE
@font = RGSSinit024::FONT_NAME
[url=home.php?mod=space&uid=10453]@color[/url] = RGSSinit024::FONT_COLOR
end
end
#==============================================================================
# ■ Window_MapName
#==============================================================================
class Window_MapName < Window_Base
#--------------------------------------------------------------------------
# ● オブジェクト初期化 [再定義]
#--------------------------------------------------------------------------
def initialize
super(get_pos_x, get_pos_y, window_width, fitting_height(1))
if $rgssinit["マップネーム表示拡張"]
contents.font.name = $game_system.rgssinit024.font
contents.font.color = $game_system.rgssinit024.color
end
self.opacity = 0
self.contents_opacity = 0
@show_count = 0
refresh
end
#--------------------------------------------------------------------------
# ○ 横の位置を取得
#--------------------------------------------------------------------------
def get_pos_x
case $game_system.rgssinit024.posture
when 1
return Graphics.width - window_width
when 2
return 0
when 3
return Graphics.width - window_width
when 4
return (Graphics.width - window_width) / 2
else
return 0
end
end
#--------------------------------------------------------------------------
# ○ 縦の位置を取得
#--------------------------------------------------------------------------
def get_pos_y
case $game_system.rgssinit024.posture
when 1
return 0
when 2
return Graphics.height - fitting_height(1)
when 3
return Graphics.height - fitting_height(1)
when 4
return (Graphics.height - fitting_height(1)) / 2
else
return 0
end
end
end
end
复制代码
作者:
倾灬城
时间:
2014-2-16 22:20
tseyik 发表于 2014-2-14 23:20
你可参考這脚本
$game_system.rgssinit024.posture = 値
値0~4(四角中央)
脚本渣看不懂怎么破qwwwwwq
作者:
喵呜喵5
时间:
2014-2-18 17:03
class Window_MapName
alias m5_initialize initialize
def initialize
m5_initialize
self.x = 120 #X坐标
self.y = 120 #Y坐标
end
end
复制代码
选两个你喜欢的数字吧,然后插入到main以上
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1