iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!
 
Reply to this topicStart new topic
> Big Item Icons, Big Icons
noah1212
post Jun 14 2010, 04:20 AM
Post #1



Group Icon


Type: Undisclosed




IM trying to make my own phoenix wright game biggrin.gif. i need a script that changes the items to big icons like these http://www.court-records.net/Evidence.htm so i can use these instead of those punny default icon set tongue.gif. thanks for reading if you read this biggrin.gif
Go to the top of the page
 
+Quote Post
   
SowS
post Jun 14 2010, 04:32 AM
Post #2


I'm still smiling. My jaw hurts now.
Group Icon


Type: Coder
Alignment: Neutral Good




you can just use pictures for the icons...

what's the size of the icons?

here:
CODE
module SOWS
  ICON_SIZE = 24  # edit this to suit your icon sizes...
end

#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
#  This is a superclass of all windows in the game.
#==============================================================================

class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Draw Icon
  #     icon_index : Icon number
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #     enabled    : Enabled flag. When false, draw semi-transparently.
  #--------------------------------------------------------------------------
  def draw_icon(icon_index, x, y, enabled = true)
    bitmap = Cache.system("Iconset")
    rect = Rect.new(icon_index % 16 * SOWS::ICON_SIZE, icon_index / 16 * SOWS::ICON_SIZE, SOWS::ICON_SIZE, SOWS::ICON_SIZE)
    self.contents.blt(x, y, bitmap, rect, enabled ? 255 : 128)
  end
end

EDIT again: i just need to mention that you need to edit your iconset to the size you want...
good luck on that ace attorney game.. i'll look forward to it. smile.gif

This post has been edited by SowS: Jun 14 2010, 08:40 AM


--------------------
Go to the top of the page
 
+Quote Post
   
noah1212
post Jun 17 2010, 10:25 PM
Post #3



Group Icon


Type: Undisclosed




QUOTE (SowS @ Jun 14 2010, 05:32 AM) *
you can just use pictures for the icons...

what's the size of the icons?

here:
CODE
module SOWS
  ICON_SIZE = 24  # edit this to suit your icon sizes...
end

#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
#  This is a superclass of all windows in the game.
#==============================================================================

class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Draw Icon
  #     icon_index : Icon number
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #     enabled    : Enabled flag. When false, draw semi-transparently.
  #--------------------------------------------------------------------------
  def draw_icon(icon_index, x, y, enabled = true)
    bitmap = Cache.system("Iconset")
    rect = Rect.new(icon_index % 16 * SOWS::ICON_SIZE, icon_index / 16 * SOWS::ICON_SIZE, SOWS::ICON_SIZE, SOWS::ICON_SIZE)
    self.contents.blt(x, y, bitmap, rect, enabled ? 255 : 128)
  end
end

EDIT again: i just need to mention that you need to edit your iconset to the size you want...
good luck on that ace attorney game.. i'll look forward to it. smile.gif

im srry but do u mind helping me out on how to use this tongue.gif im kinda clueless. i usually look for a tutorial XP ty if u can smile.gif
Go to the top of the page
 
+Quote Post
   
SowS
post Jun 17 2010, 11:32 PM
Post #4


I'm still smiling. My jaw hurts now.
Group Icon


Type: Coder
Alignment: Neutral Good




ugh...
1. edit the ICON_SIZE there into what you want
2. the iconset uses 24x24 icons, right? you'll need to edit your iconset to match ICON_SIZE...


--------------------
Go to the top of the page
 
+Quote Post
   
BigEd781
post Jun 17 2010, 11:45 PM
Post #5


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


Type: Coder
Alignment: Chaotic Good




Nvm smile.gif


--------------------
My blog - It's awesome, I assure you
QUOTE
While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond

---
My awards for being so awesome
Spoiler:
Go to the top of the page
 
+Quote Post
   
noah1212
post Jun 17 2010, 11:47 PM
Post #6



Group Icon


Type: Undisclosed




QUOTE (SowS @ Jun 18 2010, 12:32 AM) *
ugh...
1. edit the ICON_SIZE there into what you want
2. the iconset uses 24x24 icons, right? you'll need to edit your iconset to match ICON_SIZE...

where do i place the script?
Go to the top of the page
 
+Quote Post
   
SowS
post Jun 17 2010, 11:49 PM
Post #7


I'm still smiling. My jaw hurts now.
Group Icon


Type: Coder
Alignment: Neutral Good




*sigh*
anywhere in the Materials section of your script editor...


--------------------
Go to the top of the page
 
+Quote Post
   
noah1212
post Jun 18 2010, 12:10 AM
Post #8



Group Icon


Type: Undisclosed




QUOTE (SowS @ Jun 18 2010, 12:49 AM) *
*sigh*
anywhere in the Materials section of your script editor...

im so srry but can u upload an example cuz i just dont get it... im not good at scipting if u hadnt notice..
Go to the top of the page
 
+Quote Post
   
Mr. Monkey
post Jun 18 2010, 12:15 AM
Post #9


Leader of the Monkey Mafia.
Group Icon


Type: Designer
Alignment: Lawful Good




Why'd you request a script if you don't know how to use them? huh.gif


--------------------
l~~~~~Sig~~~l
--------------------


Spoiler:



Me like these:

I support:
Spoiler:














My stuff (Click it):
Go to the top of the page
 
+Quote Post
   
noah1212
post Jun 18 2010, 12:17 AM
Post #10



Group Icon


Type: Undisclosed




QUOTE (Mr. Monkey @ Jun 18 2010, 01:15 AM) *
Why'd you request a script if you don't know how to use them? huh.gif

im srry T_T im new to this i usually go to the master script list and they have an example or u just put it in the materials section and it goes instantly....
Go to the top of the page
 
+Quote Post
   
sgt massacre
post Jun 18 2010, 03:52 AM
Post #11


FRS_SgtMassacre
Group Icon


Type: Designer
Alignment: True Neutral




and thats exactly what u do lol tongue.gif just copy + paste it to ur projects script editor --> Material List


--------------------
=======================================================================
Flesh Render Studios Ltd. Commercial Game Design Company ~~ Sign up and be part of the innovation today
=======================================================================
Forum under construction (17/07/2011 hopefully finished 17/07/2011) :p

Post Count-O-Meter
Spoiler:
Post's To Date:- 812 (updated 17/7/2011 @ 10:49am GMT)

............^............^............^............^............^............^............^............^............^............^............^............^............^
>>>>500>>>>550>>>>600>>>>650>>>>700>>>>750>>>>800>)>>>850>>>>900>>>>950>>>>1000>>>>1500
............^............^............^............^............^............^............^............^............^............^............^............^............^


Projects I Support:- Click To View
Spoiler:

Go to the top of the page
 
+Quote Post
   
noah1212
post Jun 18 2010, 05:02 AM
Post #12



Group Icon


Type: Undisclosed




QUOTE (sgt massacre @ Jun 18 2010, 04:52 AM) *
and thats exactly what u do lol tongue.gif just copy + paste it to ur projects script editor --> Material List

uhh thats not what he said o.o
Go to the top of the page
 
+Quote Post
   
BigEd781
post Jun 18 2010, 06:06 AM
Post #13


No method: 'stupid_title' found for 'nil:NilClass`
Group Icon


Type: Coder
Alignment: Chaotic Good




QUOTE (SowS @ Jun 17 2010, 04:49 PM) *
*sigh*
anywhere in the Materials section of your script editor...


QUOTE (noah1212 @ Jun 17 2010, 10:02 PM) *
uhh thats not what he said o.o


blink.gif


--------------------
My blog - It's awesome, I assure you
QUOTE
While sloppy writing does not invariably mean sloppy thinking, we've generally found the correlation to be strong -- and we have no use for sloppy thinkers. If you can't yet write competently, learn to. - Eric Raymond

---
My awards for being so awesome
Spoiler:
Go to the top of the page
 
+Quote Post
   
SowS
post Jun 18 2010, 01:25 PM
Post #14


I'm still smiling. My jaw hurts now.
Group Icon


Type: Coder
Alignment: Neutral Good




maybe i should have said:
QUOTE (sgt massacre @ Jun 18 2010, 12:52 PM) *
and thats exactly what u do lol tongue.gif just copy + paste it to ur projects script editor --> Material List



--------------------
Go to the top of the page
 
+Quote Post
   
mitchi.exe
post Jun 18 2010, 02:04 PM
Post #15


Welcome to RMVX.net, B*tch
Group Icon


Type: Designer
Alignment: Chaotic Evil




And then set ICON_SIZE = 70. tongue.gif


--------------------


Spoiler:

CoA Playable Character Spr completion: 7/13 (~54%)
Spoiler:



Go to the top of the page
 
+Quote Post
   
Terra-chan
post Jun 18 2010, 06:17 PM
Post #16


~Crazy Lazy Workaholic~
Group Icon


Type: Spriter
Alignment: Chaotic Neutral




I think his version doesn't have a "Materials" section. I know I've never seen one happy.gif;;;

It's anywhere above "Main Process" at the bottom and below "Scene_Gameover"


--------------------
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: 16th September 2014 - 06:37 PM

RPGMakerVX.net is an Privacy Policy, Legal.