以下引用★_茄孓于2008-8-29 12:05:00的发言:
def confirm_update
@craft_index = @craft_window.index
@confirm_window.visible = true
@confirm_window.z = 1500
@yes_no_window.visible = true
@yes_no_window.active = true
@yes_no_window.z = 1500
@yes_no_window.update
############################################################################
################# string = "合成 " + @recipe.name + "?" #################
############################################################################
cw = @confirm_window.contents.text_size(string).width
center = @confirm_window.contents.width/2 - cw /2
unless @drawn
@confirm_window.contents.font.color = Color.new(123,123,123,255)
# 后面的数字可以随便改```
@confirm_window.contents.draw_text(center, 0, cw, 30, string)
@drawn = true
end
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |