Started by Elyssia, September 02, 2010, 11:15:44 am
PLACEMENT = ([456, 436])# || X || Y ||# Preset to the lower right corner.# BACKGROUND COLORCOLOR = ([0, 0, 0, 200])# (RED, GREEN, BLUE, OPACITY)# Text to be shownTEXT = "1.0"class Window_TitleVersion < Window_Base def initialize super(PLACEMENT[0], PLACEMENT[1], 200, 60) self.contents = Bitmap.new(self.width - 32, self.height - 32) self.opacity = 0 refresh end def refresh self.contents.clear self.contents.fill_rect(0, 0, self.width, self.height, Color.new(COLOR[0],COLOR[1],COLOR[2],COLOR[3])) self.contents.font.size = 28 self.contents.font.color = text_color(0) self.contents.draw_text(0, -20, 168, 68, TEXT, 2) endendclass Scene_Title alias :ori_main :main def main $data_system = load_data("Data/System.rxdata") $game_system = Game_System.new @window_version = Window_TitleVersion.new ori_main @window_version.dispose endend
Quote from: Taiine on September 09, 2010, 01:55:16 amReal nice, works very well. I thought of poking it in my game but sadly guess cause using MogHunters 'Animated Title Celia' it don't do a darn thing. Shame, be nice to not have to change it on each image. But meh.
@version_number = Sprite.new@version_number.x, @version_number.y = X, Y # You will have to define X and Ybitmap = Bitmap.new(WIDTH, HEIGHT) # You must define width and heightbitmap.draw_text(0, 0, WIDTH, HEIGHT, "WHATEVER VERSION NUMBER IS", 1)@version_number.bitmap = bitmap
@version_number.dispose
Quote from: winkioI do not speak to bricks, either as individuals or in wall form.
Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.