不会吧!我测试过都没事,是不是你什么地方弄错了,我直接把脚本发给你。
|
本帖最后由 名雪 于 2013-6-4 13:27 编辑 把这段 #-------------------------------------------------------------------------- # ● 更新帮助位置 #-------------------------------------------------------------------------- def uppos(index,rect,window) self.height = fitting_height2(Help.getline(@xtext,13)) create_contents contents.font.size = 16 #字体大小 rect.x -= window.ox rect.y -= window.oy ax = rect.x + rect.width + 10 ax = rect.x - self.width + 10 if ax + self.width > window.width + 10 ax += window.x ax = 0 if ax < 0 ay = rect.y + rect.height ay = rect.y - self.height if ay + self.height > window.height ay += window.y ay = 0 if ay < 0 self.x = ax self.y = ay set_text(@xtext) show end 改成 #-------------------------------------------------------------------------- # ● 更新帮助位置 #-------------------------------------------------------------------------- def uppos(index,rect,window) self.height = fitting_height2(Help.getline(@xtext,13)) create_contents contents.font.size = 16 #字体大小 rect.x -= window.ox rect.y -= window.oy ax = rect.x + rect.width + 10 ax = rect.x - self.width + 10 if ax + self.width > window.width + 10 ax += window.x ax = 180 if ax < 0 ay = rect.y + rect.height ay = rect.y - self.height if ay + self.height > window.height ay += window.y ay = 85 if ay < 85 self.x = ax self.y = ay set_text(@xtext) show end |
脚本代码已经发了,求各位脚本大神帮改一下~~!介绍窗口那总是挡住物品的字,让人看着就不怎么舒服~~! |
修改介绍窗口的XY值 话说你这个物品介绍是另加脚本的吧,你不把脚本发上来真的没问题? |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-17 04:44
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.