Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: How to control the inventory box?  (Read 2750 times)

0 Members and 1 Guest are viewing this topic.

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
How to control the inventory box?
« on: September 26, 2007, 07:30:58 AM »

I cna not seam to find out how to control the inventory box... I am using the inventory from the trinity demo... I have made a new graphic for it.... but my graphic is a lot taller then the one in the demo. So when it trys to hide it the bottom of the graphic pokes out.

I have set up the window .def file.

The inventory item boxes and spaces between them.

The width and height of the inventory box is equal to the image

If i change the X,Y position in the def file it can move along the Y.. but I can not see a way to move it in the X.

Any ideas?

ALSO

Even with the box poking out like that i can see a probelm i can not fix as well... the hot spot for opening and closing the inventory is still set to the width of the original inventoy box... as mine is a lot taller even with 1/2 of it missing there are some slots i can not move the mouse to before the game thinks that i have moused off and auto close it?
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: How to control the inventory box?
« Reply #1 on: September 26, 2007, 07:45:36 AM »

Look in scripts\game_daemon.script (game_loop.script for newer projects). There's something like:

Code: WME Script
  1.   // display the inventory window
  2.  

Here you can change the 45 / 100 pixel values to your liking.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: How to control the inventory box?
« Reply #2 on: September 26, 2007, 08:14:52 AM »

if you change this part in your inventory.def file, it still doesn't move in the X direction?

 WINDOW
  {
    X = 100
    Y = 712

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
 

Page created in 0.022 seconds with 22 queries.