Icon Bar - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Material Development (https://www.save-point.org/forum-8.html) +--- Forum: Scripts Database (https://www.save-point.org/forum-39.html) +---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html) +---- Thread: Icon Bar (/thread-2429.html) |
Icon Bar - Bearcat - 03-07-2008 Icon Bar
Version: 1.1 Introduction This is a really simple script I wrote for my game and I thought that it might be useful for some other people. Basically, it makes a bar out of two different icons, an empty and a full one. It splits the icons into halves and makes a bar out of them (think the Zelda life bar with full, half, and empty hearts). Screenshots I probably should have chosen better icons, but it should be visible. See that the top one has three and a half lighter diamonds, the second has three, and the other two have none. Demo Hopefully the instructions are clear enough, but if not, here's a demo that will show you how to use the script in a window. Script Content Hidden Copy and paste above main. To call it in a window, first make sure that "self.contents" is defined as a Bitmap. You shouldn't get an error if you don't, but it won't draw the bar. Then, call it with "draw_icon_bar(**arguments**<arguments>)". The arguments are:</arguments>
Unless you have another def in Window_Base called "draw_icon_bar," you shouldn't have problems. Author's Notes If anyone has good icons for this script, it would be nice if you'd post them for other people to use. I'm afraid I'm a horrible artist, and the icons in the demo/screenshot aren't mine (I actually can't remember where I got them). Terms and Conditions Credit's really not needed. It took me all of five minutes. |