请问一个问题,就是物品技能那栏的透明光标怎么缩短宽度,太长了。
#encoding:utf-8#==============================================================================# ■ Window_MenuCommand#------------------------------------------------------------------------------# 菜单画面中显示指令的窗口#============================================================================== class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # ● 获取项目的绘制矩形 #-------------------------------------------------------------------------- def item_rect(index) rect = Rect.new rect.width = item_width-80#矩形宽度减80 rect.height = item_height rect.x = index % col_max * (item_width + spacing) rect.y = index / col_max * item_height rect end #-------------------------------------------------------------------------- # ● 获取项目的绘制矩形(内容用) #-------------------------------------------------------------------------- def item_rect_for_text(index) rect = item_rect(index) rect.x += 4 rect.width -= 8-80#矩形宽度减-80 rect endend
#encoding:utf-8 #============================================================================== # ■ Window_MenuCommand #------------------------------------------------------------------------------ # 菜单画面中显示指令的窗口 #============================================================================== class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # ● 获取项目的绘制矩形 #-------------------------------------------------------------------------- def item_rect(index) rect = Rect.new rect.width = item_width-80#矩形宽度减80 rect.height = item_height rect.x = index % col_max * (item_width + spacing) rect.y = index / col_max * item_height rect end #-------------------------------------------------------------------------- # ● 获取项目的绘制矩形(内容用) #-------------------------------------------------------------------------- def item_rect_for_text(index) rect = item_rect(index) rect.x += 4 rect.width -= 8-80#矩形宽度减-80 rect end end
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-17 08:35
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.