hengmana   06-06-2017, 09:11 PM
#6
Quote:- อยาก ขยายกรอบ เมนู ด้านขวา ผมหาตำแหน่งปรับไม่เจอครับ (พยายามหามา2ชมแล้ว)
มีให้ปรับอยู่ตรงช่อง Window_Command แต่ต้องก็อปสร้างอันใหม่นะ
ไม่งั้นอันที่เกี่ยวข้องกับมันจะเปลี่ยนไปด้วยนะ เช่น Scene_Title, Scene_End, Scene_Battle
ลองอ่านตรงในกระทู้ดูเป็นแนวทาง
http://irpg.in.th/thread-2411-post-24389.html#pid24389

Quote:- เมนูด้านขวา ผมอยากใส่ icon ให้เหมือนที่ โปรแกรมสร้างเมนูทำได้น่ะครับ
Window_Command สร้างอันใหม่ หาตรง
Code:
def draw_item(index, color)
    self.contents.font.color = color
    rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    ไว้ใส่คำสั่งโชว์รูป
    self.contents.draw_text(rect, @commands[index])
  end
คำสั่งโชว์รูป
icon = RPG::Cache.icon("ชื่อรูปในไฟล์ ICON")
rect0 = Rect.new(0, 0, icon.width, icon.height)
self.contents.blt(x, y, icon, rect0, 255เป็นค่าความชัดโปร่งใส )

Quote:- อยากให้ส่วนดำ ๆ ที่ไม่ใช่ ส่วนของหน้าต่าง เป็นค่าโปร่งใส จนเห็นภาพในเกม ครับ
RGSS1 การเขียน Script อย่างง่ายๆ บทที่ 3 การเขียน Scene เมนูต่างๆ
ในนี้มี การทำพื้นหลัง Scene แบบโปร่งใส (เห็นแม็พ) อยู่
http://irpg.in.th/thread-383.html
This post was last modified: 05-28-2018, 11:26 PM by hengmana.
  
Users browsing this thread: 1 Guest(s)
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.