想請教如何將遇敵條改成直條顯示而非橫條? 並且可自定義顯示層高度,意指勿總在所有視窗的上層, 一般對話窗還有喵大兩種修改捲動對話窗,都會被遇敵條遮掉... 遇敵條腳本 RUBY 代码复࠸ ...
def draw_shu(x, y, width, rate, color1, color2) fill_w = (width * rate).to_i gauge_y = y + line_height - 8 contents.fill_rect(x, gauge_y, 6, width, gauge_back_color) contents.gradient_fill_rect(x, gauge_y, 6, fill_w, color1, color2)end
def draw_shu(x, y, width, rate, color1, color2) fill_w = (width * rate).to_i gauge_y = y + line_height - 8 contents.fill_rect(x, gauge_y, 6, width, gauge_back_color) contents.gradient_fill_rect(x, gauge_y, 6, fill_w, color1, color2) end
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-17 16:39
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.