I'm making a Small (And cool XD) script :D
this is one of its windows but the Text dosen't work... so my question is WHY?!
I hope someone can help!
http://img511.imageshack.us/img511/6486/nowwp8.png[/IMG]
this is one of its windows but the Text dosen't work... so my question is WHY?!
I hope someone can help!
Code:
class Slot < Window_Base
attr_accessor :id
attr_accessor :type
attr_accessor :icon_x
attr_accessor :icon_y
def initialize(x,y)
super(x, y, 35, 35)
self.contents = Bitmap.new(width - 32, height - 32)
@id = 0
@type = 0
@icon_x = 0
@icon_y = 0
start
end
def start
if @id != 0 and @id != nil and @type != 0 and @type != nil and @type <= 3
if @type == 1
@icon = RPG::Cache.icon($icon_1)
elsif @type == 2
@icon = RPG::Cache.icon($icon_2)
elsif @type == 3
@icon = RPG::Cache.icon($icon_3)
end
@Slot_icon = Sprite.new
@Slot_icon.bitmap = @icon
@Slot_icon.x = self.x + (@icon.width/4)
@Slot_icon.y = self.y + (@icon.height/4)
@Slot_icon.z = 500000
end
end
def update
self.contents.clear
self.contents.font.size = 13
self.contents.draw_text(0, 0, 10, 10, "N")
end
end
http://img511.imageshack.us/img511/6486/nowwp8.png[/IMG]