Window&Scene Wizard
Introduction
I hate blind scripting the Windows so, I made this program. Make sure to read everything in this post. It uses RMXP.
This should be pretty simple to those who have used Visual Studio .Net before.
Description
Like the name says, It generates scripts of the windows and scene you design.
This program is made of two parts;
The Wizard - Lets you design Windows/Scenes and add contents to them.
The FrameWork - You need to add this to your game. Inlcuding the graphics its comes with.
The Scene that is generate is very basic, it consists of the methods;
main
main_draw
main_loop
main_dispose
main_scenechange?
update
update_windows
Version 2.0 Screen
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F8852%2Fwiz2ep0.th.png&hash=09764b7dd02fd0d8f38f76692b5f2ebbeddf4374) (http://img216.imageshack.us/my.php?image=wiz2ep0.png)
Version 1.0 Screen
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg390.imageshack.us%2Fimg390%2F2909%2Fwiz1pm3.th.png&hash=df93fe5e49310ffb12b70f7d8ca0b7d71d58eabc) (http://img390.imageshack.us/my.php?image=wiz1pm3.png)
Features
- Fully Mouse and Keyboard Interegated!
- Lets you move and resize windows with the mouse.
- Lets you edit object(windows, contents) properties.
- Lets you name your windows and scenes.
- Lets you make the windows global or instance.
- Lets you add contents(text, pictures and ect.)
- Lets you move contents with mouse.
- Lets you edit content properties.
- Genereates Code
- And Many more!
History
Version 2.0
- Window Command casing
- Actor CharSet - Party, Database
- Actor Battler - Party, Databas
- Able to choose actors from Party or Database for some contents
- Parameters bar(str, int, dex and ect.)
- Save
- Background
- Help Window
- Vertical Bars
Version 1.0
- First Release
Working on
Version 2.5 will have
- Undo/Redo(Unlimeted Times)
- Cut/Copy/Paste
- Right Click - Opens a menu, depending on what you right click on. Will include, Undo/Redo, Cut/Copy/Paste, and window list if the windows overlap.
- List all windows - for quick selection in a big scene. (Seperate(base,list,dlist) or all)
- List all contents - For quick selection in a big scene.
- List all Variables - For quick selection.
Version 3.0 will have
- New User Interface, I hate the way it is right now.... Will be much better tho :)
- More Window Properties;
---- Disable/Active
---- Hide/Show
---- OnCreate(determines if the window is created on main_draw)
---- stretched(or tiled)
---- ox/oy adjustment
- Window_Command's commands control. The user will have the ability to;
---- Call Window
---- Call Scene
---- Activate Window or Disable
---- Create Window, Dispose Window
Version 3.5 will have
- Code Snippets - wil come with some but the user will have the ability to add his/her own.
-Visual Data Editor - Like a table, but more practicle, enables the ordering of events(methods, varaibles, actions) that happen in script. Let me put it this way, imagine the whole scene as window that you can add contents to ;) Hopefully, This should let users do a "full" working CMS with this.
Version 4.0 will have
- Sockets/Networking - Lets you design windows online, with other people.
Instructions
How To Install
1)Download both files and unzip.
2)Go to the WSW FrameWork 1.0 and move all the scripts and graphics to your game.
How to use
1) Place the Wizard anywhere.
2) Add the graphics you would like to use to the Graphics Folder. DO NOT REPLACE THE GRAPHICS that are ALREADY THERE.
3) Read the Tips.
4) Read the Tutorial. Its in pictures ;)
Screens and Tutorial
I left out alot of features but, this is the basics to get you started.
Tips
1) Always name your Scene and Windows.
2) Never use the same name more then once
3) Do not use capitals for the first letter for windows, but use for Scenes.
4) Do not use Spaces when naming windows. Instead use _ .
5) Hold shift to use Cap letters.
Download
Make sure to read the tutorial and the Instructions.
Mirror 1(SaveFile)
Window&Scene Wizard (http://www.savefile.com/files/31442)
WSW FrameWork 2.0 (http://www.savefile.com/files/31436) You don't have to download this if you pasted the above script in your game.
Mirror 2(MegaUpload)
Window&Scene Wizard (http://www.megaupload.com/?d=4JIFH209)
WSW FrameWork 2.0 (http://www.megaupload.com/?d=BNIN9OQK)You don't have to download this if you pasted the above script in your game.
UnFixed Bugs
1) Data Text doesn't work. Yet.
Notes
Remember, this is to help design. You still need to know how to script a bit, if you are making something like a menu.
If you think Navigation would be hard, or similar to Dubalex's script then you are mistaken. The windows you need will appear once an object is clicked. It is called a wizard for a reason.
Request It
I'm open to ideas on what should be added in to improve this.
Thanks and Credits
Credit me ofcourse :P
Trickster's Gradient bars
Thanks to;
Near Fantastica's Input Script *Edited by me and AstroMech
CyberSam's Mouse Script
AstroMech's Mouse script
Squall's Resolution Script
*Blows off dust*
Sorry to bother all of a sudden but I created a really simple menu with nothing but tekst and 2 pictures.
I tried to call it and got an error saying:
line 33: NameError occurred.
uninitialized constant Scene_Credits::Credit window
this is the piece of code:
def main_draw
#Draw Windows
# Credit_window
@credit_window = Credit_window.new
end
This is the entire script if anybody needs to see it:
#==============================================================================
# Scene_Credits
#==============================================================================
class Scene_Credits
#--------------------------------------------------------------------------
# * Main - Handles drawing/disposing windows and the main loop
#--------------------------------------------------------------------------
def main
#Draw Windows
main_draw
#Execute transition
Graphics.transition
#Main Loop
loop do
#Main Loop
main_loop
break if main_scenechange?
end
#Prepare for transition
Graphics.freeze
#Dispose Windows
main_dispose
end
#--------------------------------------------------------------------------
# * Main Draw - Handles drawing windows
#--------------------------------------------------------------------------
def main_draw
#Draw Windows
# Credit_window
@credit_window = Credit_window.new
end
#--------------------------------------------------------------------------
# * Main Scene Change
#--------------------------------------------------------------------------
def main_scenechange?
# Abort loop if screen is changed
if $scene != self
return true
end
return false
end
#--------------------------------------------------------------------------
# * Main Dispose
#--------------------------------------------------------------------------
def main_dispose
# Dispose All Windows
# Dispose Credit_window
@credit_window.dispose
end
#--------------------------------------------------------------------------
# * Main Loop
#--------------------------------------------------------------------------
def main_loop
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
end
#--------------------------------------------------------------------------
# * Update
#--------------------------------------------------------------------------
def update
# Update Windows
update_windows
end
#--------------------------------------------------------------------------
# * Window Update
#--------------------------------------------------------------------------
def update_windows
# Update Credit_window
@credit_window.update if @credit_window.visible
end
end
I'd appreciate it if anybody could correct my wrongs.
I do see this problem is already stated above but I have no idea how to fix it.
I tried def Initialize