Rei_Fan49 Ex-Scripter
Posts : 304 Thanked : 15 Engine : Multi-Engine User Skill : Advanced Type : Scripter
| Subyek: [VX-Script]Irfan Stamp 2010-07-17, 10:44 | |
| Irfan Footer Stamp Versi: 1 Tipe: miscellanous PengenalanKepengen~ Fitur
- Memberikan Footer seperti DEMO VERSION atau semacamnya~
- Gunakan di "Main" di bawah "begin" seperti "Irfan:Page_Footer.create!('DEMO VERSION')"
Screenshots(di kompi ini tombol PrintScreen gak ada) Scripts - Code:
-
#============================================================================== # ** Irfan::Page_Footer #------------------------------------------------------------------------------ # CREDIT bila digunakan #==============================================================================
module Irfan module Page_Footer def self.create!(text) Stamp.new(text) end end end
class Stamp < Sprite def initialize(text) vw = Viewport.new(0,0,544,416) vw.z = 0xffffff super(vw) self.bitmap = Bitmap.new(544, 20) self.bitmap.font.size = self.bitmap.height*8/10 self.x = 544 - self.bitmap.width self.y = 416 - self.bitmap.height self.z = 200 @text = text update end def dispose self.bitmap.dispose super end def update super self.bitmap.clear self.bitmap.font.color.set(255, 255, 255) self.bitmap.draw_text(self.bitmap.rect, @text, 2) end end Credits | |
|