Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: CMI Inventory  (Read 6935 times)

0 Members and 1 Guest are viewing this topic.

SANNOI

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 22
  • mmmmm...
    • View Profile
    • ModelArt Software
CMI Inventory
« on: January 23, 2003, 11:00:14 PM »

Hi,

How can I create a CMI Inventory System? How can I do more than 1 file of items into the inventory box (for example, 4 files like in CMI)?

Thx

SANNOI
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:CMI Inventory
« Reply #1 on: January 24, 2003, 10:58:33 AM »

OK, I should really finish the documentation, it will cover the inventory definition (among the other things).
But I will give you a brief description now. Open the WME demo project in ProjectMan and open the "interface" folder. There is a "inventory.def" file, which defines the layout of the inventory box. As you can see, you can define a space reserved for each item (ITEM_WIDTH, ITEM_HEIGHT). Now, the important thing is the "AREA" line. It defines a rectangle on screen, which will contain the items.

The definition is as follows:

AREA { left, top, right, bottom }

For example, if you want the area to cover the whole screen, use

AREA { 0, 0, 800, 600 }

The engine will automatically fill this area with items, and if the items won't fit, the "next" and "prev" buttons will be enabled.

Once again, I will describe this in the documentation in more depth.

Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.031 seconds with 24 queries.