marblelight
Member
I hoped that i wouldn't need to ask for help..but it's just something i can't work out:
i'm doing a bit(right..a bit) of editing to the DBS to make it like dragon warrior monsters BS
and i've got stuck... i want to know how to get Window_PartyCommand to look like this:
[Fight][Item]
[Plan ][Flee ]
and this is what i have so far:
it's like this at the mo:
[ ][ ][ ][ ]
and theres a "flee" written in the middle of nowhere
heres my Window_PartyCommand:
EDIT:if you can tell me how to get the
to get
[][]
[][]
instead of
[][][][]
or
[]
[]
[]
[]
then that will help me a lot
i'm doing a bit(right..a bit) of editing to the DBS to make it like dragon warrior monsters BS
and i've got stuck... i want to know how to get Window_PartyCommand to look like this:
[Fight][Item]
[Plan ][Flee ]
and this is what i have so far:
http://i60.photobucket.com/albums/h38/marblelight/Annoying.png[/IMG]
[ ][ ][ ][ ]
and theres a "flee" written in the middle of nowhere
heres my Window_PartyCommand:
Code:
#==============================================================================
# ** Window_PartyCommand
#------------------------------------------------------------------------------
# This window is used to select whether to fight or escape on the battle
# screen.
#==============================================================================
class Window_PartyCommand < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0, 320, 128)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 255
@commands = ["Fight","Item","Plan","Flee"]
@item_max = 4
@column_max = 2
draw_item0(0, normal_color)
draw_item1(1, normal_color)
draw_item2(2, normal_color)
draw_item3(3, $game_temp.battle_can_escape ? normal_color : disabled_color)
self.active = false
self.visible = false
self.index = 0
end
#--------------------------------------------------------------------------
# * Draw Item 0
# index : item number
# color : text character color
#--------------------------------------------------------------------------
def draw_item0(index, color)
self.contents.font.color = normal_color
rect = Rect.new(25 + index,0, 128,32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index], 1)
end
#------------------------------------------------------------------
# * Draw Item 1
# index : item number
# color : text character color
#--------------------------------------------------------------------------
def draw_item1(index, color)
self.contents.font.color = normal_color
rect = Rect.new(2 + index, 0, 128 - 10, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index], 1)
end
#--------------------------------------------------------------------------
# * Draw Item 2
# index : item number
# color : text character color
#--------------------------------------------------------------------------
def draw_item2(index, color)
self.contents.font.color = normal_color
rect = Rect.new(2 + index, 0, 32, 100)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index], 1)
end
#--------------------------------------------------------------------------
# * Draw Item 3
# index : item number
# color : text character color
#--------------------------------------------------------------------------
def draw_item3(index, color)
self.contents.font.color = color
rect = Rect.new(2 + index, 0, 300, 118)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
self.contents.draw_text(rect, @commands[index], 1)
end
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
def update_cursor_rect
self.cursor_rect.set(25 + index * 160, 0, self.width - 32, 64)
end
end
EDIT:if you can tell me how to get the
Code:
self.cursor_rect.set(25 + index * 160, 0, self.width - 32, 64)
[][]
[][]
instead of
[][][][]
or
[]
[]
[]
[]
then that will help me a lot