[XP] Tiling wallpapers for windows

Started by Fantasist, November 10, 2008, 08:55:01 am

Previous topic - Next topic

Fantasist

November 10, 2008, 08:55:01 am Last Edit: February 21, 2009, 06:04:30 am by Blizzard
Tiling wallpapers for windows
Authors: Fantasist
Version: 1.1
Type: Graphic Modification
Key Term: Misc Add-on



Introduction

The window background can be tiled in RMXP, but it's normally stretched. This small scriptlet reads the filename of the skin for a tile flag and decides whether to tile or stretch the wallpaper.


Features


  • Tile or stretch the wallpaper depending upon the windowskin filename
  • Customizable tile flag in the filename



Screenshots

Name of the windowskin file is "Clipboard1":


Name of the windowskin file is "Clipboard1 [TILE]:


Don't blame me for the horrible example please ^_^'


Demo

Come on, tell me you aren't that lazy :P


Script

Paste this script above "Main" and below "Window_Base". Paste this BELOW any default scripts you're using any.
Spoiler: ShowHide

class Window_Base
 
  TILE_FLAG = "[TILE]"
  # Wallpaper will be tiled if this word is found
  # in the windowskin's filename.
 
  alias fts_tilebgm_skin windowskin=
  def windowskin=(bmp)
    fts_tilebgm_skin(bmp)
    if @windowskin_name
      self.stretch = !@windowskin_name.downcase.include?(TILE_FLAG.downcase)
    end
  end
 
end



Instructions

You can set the TILE_FLAG to any word you want. The wallpaper will be tiled if this word is found in the windowskin filename. The default is "[TILE]", so here are some examples:

Skin1 [TILE]
Skin1[TILE]
Skin[tile]1
[tIlE]Skin1
asdsd[tiLE]asdjfc

Remember that the alphabets are not case-sensitive, meaning [tile], [TILE], [TIle], all of them will work.


Compatibility

Should be compatible with almost everything :)


Credits and Thanks


  • I can't possibly demand credit for something like this ^_^'



Author's Notes

This isn't much of a script. This whole "script", is in essence the "stretch" property of the in-built "Window" class. Here's a quote from the RMXP help file:
Quotestretch
The wallpaper display method. If TRUE, stretches the wallpaper graphic; if FALSE, tiles it. The default value is TRUE.

Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Satoh

Mm... actually I'm having difficulty with this script...

It seems to be ignoring the flag in my filenames....
Requesting Rule #1: BE SPECIFIC!!

Light a man a fire and he'll be warm for a night...
Light a man afire and he'll be warm for the rest of his life... ¬ ¬;

My Resources

Fantasist

November 13, 2008, 09:24:51 am #2 Last Edit: November 13, 2008, 09:29:36 am by Fantasist
That's b/c of a stupid mistake on my part... sorry ^_^' I'll put up the next version.

EDIT: Done, should work now :)
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Satoh

ありがとうございます。

Thank you very much.

It does in fact work now.
Requesting Rule #1: BE SPECIFIC!!

Light a man a fire and he'll be warm for a night...
Light a man afire and he'll be warm for the rest of his life... ¬ ¬;

My Resources