December 06, 2023, 01:39:43 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Forum rules
-
please read before posting, it can save you a lot of time.
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Close up of inventory item
« previous
next »
Pages: [
1
]
Print
Author
Topic: Close up of inventory item (Read 3663 times)
0 Members and 1 Guest are viewing this topic.
Catacomber
Supporter
Frequent poster
Karma: 0
Offline
Gender:
Posts: 443
I love mice.
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
Mnemonic is wonderful.
Spellbreaker
Supporter
Frequent poster
Karma: 4
Offline
Gender:
Posts: 376
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
Apeiron Studios
http://www.apeironstudios.com
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
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.
Catacomber
Supporter
Frequent poster
Karma: 0
Offline
Gender:
Posts: 443
I love mice.
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.
Logged
http://www.catacomber.com/
Code: WME Script
Mnemonic is wonderful.
Mnemonic
WME developer
Administrator
Addicted to WME forum
Karma: 41
Offline
Gender:
Posts: 5683
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.
Catacomber
Supporter
Frequent poster
Karma: 0
Offline
Gender:
Posts: 443
I love mice.
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
Mnemonic is wonderful.
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Close up of inventory item