# 释放命令窗口 @command_window.dispose # 释放标题图形 @sprite.bitmap.dispose @sprite.dispose
# 清除窗口内容 self.bitmap.clear
#-------------------------------------------------------------------------- # ● 更新光标举行 #-------------------------------------------------------------------------- def update_cursor_rect # 光标位置不满 0 的情况下 if [url=home.php?mod=space&uid=370741]@Index[/url] < 0 self.cursor_rect.empty return end
myownroc 发表于 2013-8-24 12:34
x.dispose 相当于 x=nil
clear 就是清除位图信息,但不会使实例为空.这个方法多用于Windwo和Bitmap中
empty ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |