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: Close up of inventory item  (Read 3781 times)

0 Members and 1 Guest are viewing this topic.

Catacomber

  • Supporter
  • Frequent poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Female
  • Posts: 443
  • I love mice.
    • View Profile
    • Catacomber.com
Close up of inventory item
« on: May 21, 2009, 09:19:11 PM »

I ran across the answer to my question when looking for something else awhile ago and now can't find the answer.

I'd like player to be able to right click on an inventory item in inventory and get a close up of the item including a large font name for the item---this is for those who are older and have poorer vision.  :  )  It's important, imho.

Can anyone tell me the best way to do this?

One way I can think of is to make a close up layer that would appear on right click and code it so if you right click again the image closes.  Any other way to do this? 

Thanks for any help as always.
Logged
http://www.catacomber.com/
Code: WME Script
  1. Mnemonic is wonderful.
  2.  

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Close up of inventory item
« Reply #1 on: May 21, 2009, 09:41:06 PM »

Depends on how big it should be, and what kind of inventory you have. What I personally liked, don't know which game it was, was a Mac OS X like bar: You have all items on top for example, and when you hover an item it zooms to approx. 200%, when cursor leaves the item it zooms back.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Close up of inventory item
« Reply #2 on: May 22, 2009, 08:04:26 AM »

IMO close-up layers are not the way to go, because they are tied to a specific scene. Even though you are able to create layers dynamically, I believe using a window for this purpose is a better idea.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Catacomber

  • Supporter
  • Frequent poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Female
  • Posts: 443
  • I love mice.
    • View Profile
    • Catacomber.com
Re: Close up of inventory item
« Reply #3 on: May 22, 2009, 02:30:18 PM »

Thanks, Mnemonic.  So..........

Then on right clicking the inventory object a window would show the larger inventory picture with its label?
Right click again (changing the states) would make it disappear?  Or is there a better way, I know I could use an x button for close but it is not sleek.  :-X

Logged
http://www.catacomber.com/
Code: WME Script
  1. Mnemonic is wonderful.
  2.  

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Close up of inventory item
« Reply #4 on: May 22, 2009, 03:32:05 PM »

For one, you can take advantage of "menu windows" (set the "menu" property in WindowEdit to true). These windows close automatically when the player clicks anywhere outside of them.
And to close the window by right click, you'd best store the active item close-up window in a global variable, and in game.script, in the right-click handler check if there's some close-up active and close it. That should work.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Catacomber

  • Supporter
  • Frequent poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Female
  • Posts: 443
  • I love mice.
    • View Profile
    • Catacomber.com
Re: Close up of inventory item
« Reply #5 on: May 22, 2009, 09:07:48 PM »

Thank you very much, Mnemonic, I think the first option is best. 
Logged
http://www.catacomber.com/
Code: WME Script
  1. Mnemonic is wonderful.
  2.  
 

Page created in 0.043 seconds with 21 queries.