LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



View previous topic View next topic Go down Message [Page 1 of 1]

EVENTALIST
EVENTALIST
#1 default XP - Window Scene Assistiant
Loading

mr_wiggles

mr_wiggles
EVENTALIST
 EVENTALIST
EVENTALIST
profile
Version 1.0
June 11, 2010

This will display a grid that is 10 x 10 pixels in white, has a bold lines every 40 pixels in green and center lines in red. it can be toggled with F5.

looking to add some more features that would help out when making windows.

screen shot:
[You must be registered and logged in to see this image.]

Script:
Code:

#==============================================================================
# ** Window Grid
#------------------------------------------------------------------------------
# Mr Wiggles
# Version 1.0
# 5/5/10
#------------------------------------------------------------------------------
# Instructions:
#  Place this script above main in the scripts data base, and place the
#  "Window Grid" png file in your picture folder.
#
#  Grid can be toggled by useing F5.
#==============================================================================

GRID_OPACITY = 100  # Opacity (0 - 255)
USE_GRID    = true  # Use the grid
ACTIVE      = false # Show grid on game start up
ONTOP        = false # Show grid ontop of everything or underneith

#==============================================================================
# ** Window_Grid
#==============================================================================
class Window_Grid < Window_Base
  def initialize
    super(-16 , -16, 700, 700)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.opacity = 0
    self.z = ONTOP ? 999999 : -1
    @grid_active = ACTIVE
    @need_refresh = true
    refresh
  end
 
  def refresh
    return if @missing_png or @grid_active == false
    self.contents.clear
    grid = RPG::Cache.picture("Window Grid") rescue @missing_png = true
    if @missing_png
      print ("Missing grid png file, be sure it's placed in the pictures folder.")
      return
    end
    self.contents.blt(0, 0, grid, Rect.new(0, 0, 640, 480), GRID_OPACITY)
    @need_refresh = false
  end
 
  def update
    if Input.trigger?(Input::F5)
      @grid_active = !@grid_active
      return
    end
    if @grid_active
      refresh if @need_refresh
    else
      self.contents.clear
      @need_refresh = true
    end
  end
end

#==============================================================================
# ** Graphics Module
#==============================================================================
module Graphics
  class << self
    alias :grid_window_update :update
    def update
      grid_window_update
      if USE_GRID
        @window_grid = Window_Grid.new if @window_grid == nil
        @window_grid.update
      end
    end
  end
end

Picture file... (needed, place in your picture folder in your project, right click to save)
[You must be registered and logged in to see this image.]
EVENTALIST
Show Signature
EVENTALIST
Administrator
Administrator
#2 default Re: XP - Window Scene Assistiant
Loading

G@MeF@Ce

G@MeF@Ce
Administrator
Administrator
Administrator
profile
another nifty script, thinking about using this as the quick commands menu.

"So how do you play this game?" PRESS F5! ^,^
Administrator
Show Signature
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr https://www.youtube.com/user/MrGameface101?feature=watch

View previous topic View next topic Back to top Message [Page 1 of 1]

 

Chatbox system disabled
Personal messaging disabled