Raccoon Game RPG รวมพลนักพัฒนา
สคริปต์ Save Confirmation Window Rpgvx_1024x768b

Join the forum, it's quick and easy

Raccoon Game RPG รวมพลนักพัฒนา
สคริปต์ Save Confirmation Window Rpgvx_1024x768b
Raccoon Game RPG รวมพลนักพัฒนา
Would you like to react to this message? Create an account in a few clicks or log in to continue.

สคริปต์ Save Confirmation Window

Go down

สคริปต์ Save Confirmation Window Empty สคริปต์ Save Confirmation Window

ตั้งหัวข้อ by boyhit Mon Oct 31, 2011 6:00 am

แปะสคริปต์ ๆ *O* หน้าต่างคอนเฟิร์มตอนเซฟไฟล์ กรณีกันผู้เล่นเผลอเซฟไฟล์ทับของเก่า =w=~
สคริปต์ Save Confirmation Window Savefileconfirm

CODE
#==============================================================================
# [VX] Save File Confirmation
#------------------------------------------------------------------------------
# by Woratana
# Released on: 15/02/2008
#
# Make a Confirmation Window before save file...
#==============================================================================

module Worale
SFC_Text_Confirm = 'Confirm to save...' # Text to confirm to save file
SFC_Text_Cancel = 'Cancel saving process' # Text to cancel to save

SFC_Window_Width = 200 # Width of Confirmation Window
SFC_Window_X_Offset = 0 # Move Confirmation Window horizontally
SFC_Window_Y_Offset = 0 # Move Confirmation Window vertically
end


class Scene_File < Scene_Base
def update
super
if !@confirm_window.nil?
@confirm_window.update
if Input.trigger?(Input::C)
if @confirm_window.index == 0
determine_savefile
@confirm_window.dispose
@confirm_window = nil
else
Sound.play_cancel
@confirm_window.dispose
@confirm_window = nil
end
elsif Input.trigger?(Input::B)
Sound.play_cancel
@confirm_window.dispose
@confirm_window = nil
end
else
update_menu_background
@help_window.update
update_savefile_windows
update_savefile_selection
end
end

def update_savefile_selection
if Input.trigger?(Input::C)
if @saving and @savefile_windows[@index].file_exist
Sound.play_decision
text1 = Worale::SFC_Text_Confirm
text2 = Worale::SFC_Text_Cancel
@confirm_window = Window_Command.new(Worale::SFC_Window_Width,[text1,text2])
@confirm_window.x = ((544 - @confirm_window.width) / 2) + Worale::SFC_Window_X_Offset
@confirm_window.y = ((416 - @confirm_window.height) / 2) + Worale::SFC_Window_Y_Offset
else
determine_savefile
end
elsif Input.trigger?(Input::B)
Sound.play_cancel
return_scene
else
last_index = @index
if Input.repeat?(Input::DOWN)
cursor_down(Input.trigger?(Input::DOWN))
end
if Input.repeat?(Input::UP)
cursor_up(Input.trigger?(Input::UP))
end
if @index != last_index
Sound.play_cursor
@savefile_windows[last_index].selected = false
@savefile_windows[@index].selected = true
end
end
end
end

เครดิต วอราม่อน
boyhit
boyhit
Admin
Admin

ชื่อเล่น : เเอล
ความฝัน : ศิลปิน
จำนวนข้อความ : 1130
เครดิต : 3356
วันที่สมัคร : 09/10/2011
คะเเนนน้ำใจ : 11
เพศ : Male อายุ : 24
เหรียญรางวัล : สคริปต์ Save Confirmation Window Medalhead2

https://raccoongame-rpg.thai-forum.net

ขึ้นไปข้างบน Go down

ขึ้นไปข้างบน

- Similar topics

 
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ