Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Khai's Window Helper 1.4
mukumuku
post Jul 21 2008, 03:15 PM
Post #1


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




Khai's Window Helper 1.4
Version: 1.4
Author: Khai
Release Date: 7/21/2008
Updated: 7/30/2008

■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Khai's Window Helper 1.4
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
Features
- Background Customization
- Text support
- Enable/Disable icon names
- Simplified items
- Individual helper window frame
- Disable/Enable skills with 0 MP from displaying
[See screens below for visual information]

Release: 7/21/2008
Last Update: 7/30/2008

Version History
1.0 - Initial release
1.1 - Minor Fixes - 7/22/08
1.2 - Added gradient bars, background bar, and Object name draw idea by pim321 + minor fixes - 7/23/08
1.3 - Added Simple Icon. Simple Icon removes your item/object names located in the skill/item/equip windows. - 7/25/08
Simple Icon on will display : [itemICON : Item Quantity]
Simple Icon off will display : [itemICON, Item name : Item Quantity]
- Bug fixes relating to Font disable turning off other functions
- Fixed extra item info for Shop Process
- Fixed Coding
1.4 - Added custom helper frame option - 7/30/08
- Bug fixes.
- Smaller

Should be compatable with most if not all scripts.
Setup -> Place above Main
Feel free to use Credits to Khai

Khai's Window Helper 1.4
[Show/Hide] Khai's Window Helper 1.4

CODE
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Khai's Window Helper 1.4
# For suggestion/comment/updates visit the following link
# http://www.rpgrevolution.com/forums/?showtopic=16941
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
module KCWH
# Config BEGIN
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
K_Equip = true # Extra Info [Equip_Scene]
K_Skill = true # Extra Info [Skill_Scene]
K_Item = true # Extra Info [Item_Scene]
K_Item_S = true # Extra Info [Shop_Scene]
K_SimpleItem = true # Simplified Icons
K_Sitem_col = 7 # <=7 if your window width is 544x416
K_MP_ON = true # Disable 0 MP Display
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Help Frame SETTING/TEXT ALIGNMENT
K_WH_ON = true # Help ON/OFF
Frame_s = false # Custom Help window frame ON/OFF
K_frame = "Window2" # Custom Help window frame FILE NAME
K_Opacity = 255 # Help window frame opacity (0-255)
K_WH_X = 544 # Help window frame width X (Default: 544)
K_WH_Y = 32 # Help window frame height Y (Default: 32)
K_WH_Z = 0 # Help window frame Z
K_POSX = 0 # Help window X
K_POSY = 0 # Help window X
K_ALIGN = 0 # Help text alignment [0 = left, 1 = center, 2 = right]
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Help Backdrop SETTING/LOCATION/STYLE
K_WH = true # Help Backdrop ON/OFF
K_WH_BG = 2 # 0 = default, 1 = image 2 = gradient
# ■■■■■■■ ▼
K_WH_BX = 0 # Background Bar X-Displacement Default 0
K_WH_BY = 0 # Background Bar Y-Displacement Default 0 (12 For style)
# ▼ CONFIGURE for setting = 0 ▼ ■■■
K_WHC = Color.new(255, 0, 0, 255) # Helper backdrop color
# ▼ CONFIGURE for setting = 1 ▼ ■■■
BG = "" # Background Image File
# ▼ CONFIGURE for setting = 2 ▼ ■■■
K_GBC1 = 15 # Left Gradient Color
K_GBC2 = 40 # Right Gradient Color
BG_W = 544 # Width of Gradient Backdrop
BG_H = 32 # Height of Gradient Backdrop
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# This handles the Helper's Font Color
K_BGC = false # TEXT Color, Config below if = true, else leave alone
K_R = 255 # Red (0-255) 255 being pure red 0 = no red
K_G = 0 # Blue (0-255) 255 being pure blue 0 = no blue
K_B = 0 # Green (0-255) 255 being pure green 0 = no green
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Font Setup ▼
Enable_Text = true # Simple Font ON/OFF
Font_Name = 'Arial' # Font Name [Arial,Constantia]
Font_Size = 14 # Font Size
Font_Bold = true # Font Bold
Font_Italic = false # Font Italic
Font_Shadow = true # Font Shadow
# ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
# Config END
end
class Window_Help < Window_Base
def initialize
super(KCWH::K_POSX, KCWH::K_POSY, KCWH::K_WH_X, WLH + KCWH::K_WH_Y)
self.opacity = KCWH::K_Opacity
self.visible = KCWH::K_WH_ON
if KCWH::Frame_s
self.windowskin = Cache.system(KCWH::K_frame)
end
end
def set_text(text, align = KCWH::K_ALIGN)
if text != @text or align != @align
self.contents.clear
self.z = KCWH::K_WH_Z
def b_color1
return text_color(KCWH::K_GBC1)
end
def b_color2
return text_color(KCWH::K_GBC2)
end
gc1 = b_color1
gc2 = b_color2
if KCWH::K_BGC
self.contents.font.color.set(KCWH::K_R,KCWH::K_G,KCWH::K_B)
else
self.contents.font.color = normal_color
end
if KCWH::K_WH
if KCWH::K_WH_BG == 0
self.contents.fill_rect(KCWH::K_WH_BX, y=KCWH::K_WH_BY, contents.width, WLH - y, KCWH::K_WHC )
elsif KCWH::K_WH_BG == 1
bg_bitmap = Cache.system(KCWH::BG)
self.contents.blt(KCWH::K_WH_BX, KCWH::K_WH_BY, bg_bitmap, bg_bitmap.rect)
elsif KCWH::K_WH_BG == 2
self.contents.gradient_fill_rect(KCWH::K_WH_BX, KCWH::K_WH_BY, KCWH::BG_W, KCWH::BG_H, gc1, gc2)
end
end
@text = text
@align = align
self.contents.draw_text(20, 0, self.width - 72, WLH, text, align)
end
end
end
class Window_Item < Window_Selectable
if KCWH::K_SimpleItem
def initialize(x, y, width, height)
super(x, y, width, height)
@column_max = KCWH::K_Sitem_col
self.index = 0
refresh
end
def draw_item(index)
rect = item_rect(index)
self.contents.clear_rect(rect)
item = @data[index]
if item != nil
number = $game_party.item_number(item)
enabled = enable?(item)
rect.width -= 4
draw_icon(item.icon_index, rect.x, rect.y, enabled)
self.contents.draw_text(rect, sprintf(":%2d", number), 2)
end
end
end
def update_help
if KCWH::K_Item
@help_window.set_text(item == nil ? "" : item.name+": "+item.description)
else
@help_window.set_text(item == nil ? "" : item.description)
end
end
end
if KCWH::Enable_Text
class Font
@@default_name = [KCWH::Font_Name]
@@default_size = KCWH::Font_Size
@@default_bold = KCWH::Font_Bold
@@default_italic = KCWH::Font_Italic
@@default_shadow = KCWH::Font_Shadow
end
end
if KCWH::K_Equip
class Window_Equip < Window_Selectable
def update_help
@help_window.set_text(item == nil ? "" : item.name+": "+item.description)
end
end
end
if KCWH::K_Skill
class Window_Skill < Window_Selectable
def update_help
@help_window.set_text(skill == nil ? "" : skill.name+": "+skill.description)
end
end
end
if KCWH::K_Item_S
class Window_ShopBuy < Window_Selectable
def update_help
@help_window.set_text(item == nil ? "" : item.name+": "+item.description)
end
end
end
if KCWH::K_MP_ON
class Window_Skill < Window_Selectable
def draw_item(index)
rect = item_rect(index)
self.contents.clear_rect(rect)
skill = @data[index]
if skill != nil
rect.width -= 4
enabled = @actor.skill_can_use?(skill)
draw_item_name(skill, rect.x, rect.y, enabled)
if @data[index].mp_cost != 0
self.contents.draw_text(rect, @actor.calc_mp_cost(skill), 2)
end
end
end
end
end


Screenshot:
[Show/Hide] Click Me








Update 1.4


Gradient Reference
Index [0-31]

Place above main/customize/use.

This is my first script so be kind.
Comments/suggestions/feedback/bug reports are greatly welcomed!


This post has been edited by mukumuku: Jul 31 2008, 04:07 AM


__________________________
Go to the top of the page
 
+Quote Post
   
meganew2
post Jul 21 2008, 03:25 PM
Post #2


Spriter/Userbar maker/Recolorer
Group Icon

Group: Revolutionary
Posts: 273
Type: Artist
RM Skill: Advanced




There is really no point to use this....
In think its ugly.


SRRY
sad.gif


___________________________________________

Firefox is the new Exploid!!



__________________________

In Development
Go to the top of the page
 
+Quote Post
   
mukumuku
post Jul 21 2008, 03:42 PM
Post #3


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




Well, it's customizable that first screenshot of the style looks ugly, but if you edit it to your liking
it can be good depending on how graphically set you are.

This post has been edited by mukumuku: Jul 22 2008, 08:16 AM


__________________________
Go to the top of the page
 
+Quote Post
   
Netto
post Jul 21 2008, 03:43 PM
Post #4


芸術家
Group Icon

Group: Revolutionary
Posts: 708
Type: None
RM Skill: Skilled




QUOTE (meganew2 @ Jul 21 2008, 03:47 PM) *
There is really no point to use this....
In think its ugly.


SRRY
sad.gif


___________________________________________

Firefox is the new Exploid!!


Your post contributes to nothing, you probably don't even know what it does. This script is useful if you know how to use it.
Also the 2nd part of your post is spam.

@mukumuku Thanks for the share.


__________________________
Current Project[RC]: Twilight Realm 3DMMORPG w/dx9, and char creation through mysql after I get a server, now C++ scripting
Current Project[VX]: Obsidian Trilogy just started 08/12/2008
Current Project[XP&RM2K3]: none
Go to the top of the page
 
+Quote Post
   
332211
post Jul 21 2008, 04:25 PM
Post #5


Waiting for an epiphany
Group Icon

Group: Revolutionary
Posts: 180
Type: Scripter
RM Skill: Advanced




Although I'm not going to use it on my current project, I love it!
I've always disliked the one dull box for the items and skills (because it's too boring) and this looks fresh and new.
keep up the good work! cool.gif


__________________________
Go to the top of the page
 
+Quote Post
   
mukumuku
post Jul 22 2008, 08:56 AM
Post #6


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




Updated a few minor things.
Added a new screenshot example for it's usage.


This post has been edited by mukumuku: Jul 22 2008, 09:01 AM


__________________________
Go to the top of the page
 
+Quote Post
   
jasonicus
post Jul 22 2008, 09:17 AM
Post #7


All Lies Lead to the Truth
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Developer
RM Skill: Advanced




I like it. Nice job and very useful. I'm gonna have to mess with it a bit and see what it can do.
Go to the top of the page
 
+Quote Post
   
The Wizard 007
post Jul 22 2008, 02:33 PM
Post #8


Jack of all trades
Group Icon

Group: Revolutionary
Posts: 118
Type: Developer
RM Skill: Skilled




Nice fun script you have here, I like it mostly for the customizable text. It really will help make my games better to look at. Thanks.


__________________________
Currently working on:

Underground Syndicate (mafioso/modern type RPG)
Mind Maze (old school dungeon crawler with a different feel)
Dragon Adventure (Dragon Quest type fangame with more customization)
Dark Grind (Survival horror RPG)
Go to the top of the page
 
+Quote Post
   
Chronno
post Jul 23 2008, 12:41 AM
Post #9


Level 5
Group Icon

Group: Member
Posts: 64
Type: None
RM Skill: Undisclosed




nice, is fun to play with this laugh.gif, only a question, can you add option to use pictures like backdrops? it would be amazing
Go to the top of the page
 
+Quote Post
   
mukumuku
post Jul 23 2008, 04:52 AM
Post #10


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




QUOTE (Chronno @ Jul 23 2008, 01:03 AM) *
nice, is fun to play with this laugh.gif, only a question, can you add option to use pictures like backdrops? it would be amazing


Yes, in fact i'm working on that and having a gradient bar as well. In the next update they'll be more options for bar styles and included help text. Should be released sometimes today if i'm not busy.


__________________________
Go to the top of the page
 
+Quote Post
   
mukumuku
post Jul 23 2008, 10:12 AM
Post #11


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




Updated v1.2
- Background Image bar style
- Gradient bar
- Object name for equip/item/skill menu


__________________________
Go to the top of the page
 
+Quote Post
   
link245
post Jul 24 2008, 09:40 PM
Post #12


Level 3
Group Icon

Group: Member
Posts: 37
Type: Event Designer
RM Skill: Advanced




I've been playing around with this and its fun on what you can do. The one thing is that can you make it not say the item name?
Like when you highlight an item can you only show the icon and the number that you have?


__________________________

Hmph...
-----------------------------------------------------------------------------------------------------------------------------------------
Current Project: Tales of Oblivion
Go to the top of the page
 
+Quote Post
   
mukumuku
post Jul 25 2008, 12:30 PM
Post #13


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




QUOTE (link245 @ Jul 24 2008, 10:02 PM) *
I've been playing around with this and its fun on what you can do. The one thing is that can you make it not say the item name?
Like when you highlight an item can you only show the icon and the number that you have?


I don't understand, do you mean to have an Icon/quantity of the item drawn on the HELP window? or are you referring to the item window which you freely scroll around and preselect items. [The window with the item's listing.]


__________________________
Go to the top of the page
 
+Quote Post
   
link245
post Jul 25 2008, 12:40 PM
Post #14


Level 3
Group Icon

Group: Member
Posts: 37
Type: Event Designer
RM Skill: Advanced




I'm talking about the item window when you scroll around freely. Sorry if I wasn't specific enough.


__________________________

Hmph...
-----------------------------------------------------------------------------------------------------------------------------------------
Current Project: Tales of Oblivion
Go to the top of the page
 
+Quote Post
   
mukumuku
post Jul 25 2008, 12:48 PM
Post #15


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




QUOTE (link245 @ Jul 25 2008, 01:02 PM) *
I'm talking about the item window when you scroll around freely. Sorry if I wasn't specific enough.


Well, if it's that then i have a custom item window script i've been working with what you mentioned. I'll see it updated with the next release. smile.gif


__________________________
Go to the top of the page
 
+Quote Post
   
link245
post Jul 25 2008, 02:53 PM
Post #16


Level 3
Group Icon

Group: Member
Posts: 37
Type: Event Designer
RM Skill: Advanced




OK, sweet thanks a lot bro. I'm looking forward to it.


__________________________

Hmph...
-----------------------------------------------------------------------------------------------------------------------------------------
Current Project: Tales of Oblivion
Go to the top of the page
 
+Quote Post
   
mukumuku
post Jul 25 2008, 05:32 PM
Post #17


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




Updated 1.3

- Fixes
- Added Simple Icon
o: Displays [ Item Icon : Quantity ]
o: Includes option to enable/disable to your liking
o: Other fixes/notes included in the script
[Show/Hide] Preview




__________________________
Go to the top of the page
 
+Quote Post
   
link245
post Jul 25 2008, 07:50 PM
Post #18


Level 3
Group Icon

Group: Member
Posts: 37
Type: Event Designer
RM Skill: Advanced




Ha ha ha ha. Thanks a lot bro this is what i was talking about. Very nicely done.


__________________________

Hmph...
-----------------------------------------------------------------------------------------------------------------------------------------
Current Project: Tales of Oblivion
Go to the top of the page
 
+Quote Post
   
mukumuku
post Jul 30 2008, 10:47 PM
Post #19


Level 5
Group Icon

Group: Member
Posts: 65
Type: None
RM Skill: Undisclosed




Update 1.4
- custom window frame for helper on/off
- FIX

Comments? Suggestions? Bugs? Feel free to post and enjoy ;]


__________________________
Go to the top of the page
 
+Quote Post
   
kitty2021
post Aug 13 2009, 12:45 PM
Post #20


Level 3
Group Icon

Group: Member
Posts: 44
Type: Developer
RM Skill: Skilled




I think it's a nice little addition to any game... It gives it just a little more of a personal touch to everything in your menu's. I think it's great, mukumuku, good job! smile.gif


__________________________
You know, everything in life seem's to be going great... Then the blasted Joker shows up and kicks you in the shins and pulls down your Bat-leotards. It just ain't fair...
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 12:07 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker