Tiling wallpapers for windows
Authors: Fantasist
Version: 1.1
Type: Graphic Modification
Key Term: Misc Add-on
IntroductionThe 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
ScreenshotsName of the windowskin file is "Clipboard1":
Name of the windowskin file is "Clipboard1 [TILE]:
Don't blame me for the horrible example please ^_^'
DemoCome on, tell me you aren't that lazy
ScriptPaste this script above "Main" and below "Window_Base". Paste this BELOW any default scripts you're using any.
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
InstructionsYou 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.
CompatibilityShould be compatible with almost everything
Credits and Thanks
- I can't possibly demand credit for something like this ^_^'
Author's NotesThis 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.