If you like the PLUGIN , a little help is always welcome! Donate
Download Link : https://www.dropbox.com/sh/kqe0jhhook4at33/AACQHf5TZIRVuNas7wwenQoVa?dl=0
Other HMMG Plugins : https://www.dropbox.com/sh/eyld20nrw3ersuy/AABNz84T_KdQGoYjHFsj2Y-8a?dl=0
Online Demo : http://mouadhhsoumi.com/c2/plugins/StarRating/
Capx Demo : http://mouadhhsoumi.com/c2/plugins/StarRating/starRating.capx
Hey guys here is my new Plugin , which is a star rating system
How to install :
Copy/Paste the Folder in the zip file to your plugin's directory
Close and re-open Construct 2 if it's opened
How to Use and Preview
Preview : http://img11.hostingpics.net/pics/866646previewStar.png
************** Properties **************
Score : Set score (float)
Stars number : Set number of stars
MAX Stars number : Set max number of stars .If stars number is 100 and Max stars number is 100 , you will only see 5 stars
Stars Hint : Text to show when mouse over Each Star , each hint separeted by colon :
Cancel Button : Select True to allow user's to cancel the current score , Default is False
Cancel Alignement : Changes the cancel button alignement to the left or right side , Default is Left
Cancel Hint : Text to show when mouse over cancel Button
Stars Off : Change the off Stars icon , let it empty for Default icon Ex : "newStarsOffIcon.png" add picture to your Project
Stars On : Change the on Stars icon , let it empty for Default icon
Stars Half : Change the Half Star icon , let it empty for Default icon
Cancel Not-Clicked Icon : Change the Not-Clicked Cancel icon , let it empty for Default icon
Cancel Clicked Icon : Change the Clicked Cancel icon , let it empty for Default icon
ID : Stars Oject ID
Half Show : True : If score's decimal is between x.26 and x.75 a half Star will be shown . else if False : score's decimal < x.6 the star will be rounded down and if score's decimal >= x.6 the star will be rounded up , Default False
ReadOnly : Select True to allow user's interaction , Default False
Target ID : Some place to display the hints or the cancelHint
Target Type : Score : set Target Text to Score , Hint set Target Text to Hint , Default Score
Target Keep : Keep text in target even mouse is not over stars , Default
Show Space : False to remove space between stars , Default True
Single : Set True so you can turn on just the mouseovered star instead all from the first until that one , Default False|True
************** Conditions **************
On clicked : Triggered when any star is clicked
is ReadOnly : Return True if stars are ReadOnly
************** Actions **************
Set Score : Set Score
Set Stars Number : Set Stars Number to parameter value
Set ReadOnly : Set ReadOnly to parameter value
************** Expressions **************
Get Score : Return the Score
If you like the PLUGIN , a little help is always welcome! Donate
If any one have a probleme with the PLUGIN email me "hsmouadh@gmail.com" , i will reply at max 5 - 6 hours