Specials
Top sellers

JPPicker

JPPicker
Product Code: jppicker
Availability: In Stock
Built for: Optimized list or picker items management
Product Version: 2.2
Online Demo: http://www.julien-pierron.com/sample.php?sample=jpdemo&product=jppicker
Forum Link: http://www.shivaengine.com/developer/forum/viewtopic.php?f=82&t=29258
Req. ShiVa Version: ShiVa 1.9.2 Engines
Plugin Platform Compatibility: iOS, Android, WinRT ARM/Phone 8, WinRT x86/_64, Windows Legacy, Mac OS X, Linux, Flash, Web Browser, Palm, Marmalade, BlackBerry, Windows Phone 7, Playstation 3, Playstation 4, Xbox 360, Xbox One, Wii
Price: $65.00
Seller information: Julien Pierron
Country: France, Metropolitan
Company: Julien Pierron
Qty:     - OR -   Wish List
Compare
A picker is a list of items which can be scrolled and where the item at the middle is the selected one. JPPicker will do all the hard stuff of computing the picker position and will give you the state of the list and the middle item in real time. Then you are free to use the values provided by JPPicker on any kind of elements, for instance HUD components or scene objects.

The JPPicker animation is very pleasant and smooth, there is a bonce effect when the list is out of the start or end position. It is possible to enable an option to make the picker to always end its scrolling on an exact item position.

Its usage is very easy, just tell JPPicker the number of items in the list and you are almost done:

-------------------------------------------------
function MyAIModel.onInit ( )
-------------------------------------------------

local hObjectDelegate = nil
local nItemCount = 20
JPPicker.addPicker ( hObjectDelegate, nItemCount )

-------------------------------------------------
end
-------------------------------------------------

-------------------------------------------------
function MyAIModel.onPickerPositionDidChange ( sID, nPosition, nItemIndex )
-------------------------------------------------

this.updateItemsPosition ( nPosition )

-------------------------------------------------
end
-------------------------------------------------

-------------------------------------------------
function MyAIModel.onPickerCenterItemDidChange ( sID, nIndex, bListCurrentlyScrollingToItem )
-------------------------------------------------

this.setSelectedItem ( nIndex )

-------------------------------------------------
end
-------------------------------------------------

The result is very impressive. Take a look at the JPPicker example in the demo, at the race selection screen.

JPPicker also provides a wonderful function, named JPPicker.helpMeUpdateMyItems, to help you manage your picker in order to have a huge number of items without any performance issues. I have created a tutorial on that subject you should read if you want to learn more about the impact of your Scripting Strategies on your Game Performance: http://www.julien-pierron.com/tutorial.php?v=scripting_strategies

Requirements:
- ShiVa 1.9.2 or greater´╗┐´╗┐´╗┐
- LUA project (not compatible with full c++ projects, compatible with LUA projects that use c++ plugins)

You can find an introduction to the packs and how to load them in your game here:
http://www.julien-pierron.com/shiva-store.php

API & Instructions
http://www.julien-pierron.com/product-api.php?product=jppicker

Changelog
http://www.julien-pierron.com/product-changelog.php?product=jppicker

Sample projects that use my packs
http://www.julien-pierron.com/samples.php

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



ShiVa Store © 2018 - Powered By OpenCart