Author Topic: Making a Question Exam  (Read 3100 times)

SVN

  • Guest
Making a Question Exam
« on: April 20, 2012, 03:32:08 AM »
Hi NGUI Experts !
Am new to this UI Tool or better say its my first time using a UI/GUI for unity (Never Used before).

am working on a game that Player go in to a Trigger (Area) and then A NGUI Panel Should Come Up.

i want to do some thing in NGUI but Do not Know HOW !?!

1- the NGUI should Contain 10 Questions (I Used Label Template and write my questions and used texture to import image base questions)

2-i add 4 Checkbox's for each of the questions / now the thing i want to do is :
player should only have 1 choice per question ! i mean if he select a checkbox(Answer) then all of the remaining Checkbox's should deactivate (Can not be Selectable anymore or lets say go grey!)

if the player select the correct checkbox then it should be store a 10 points in a variable.

after finishing all the questions (answer 10 questions) at bottom of the NGUI Panel there is a Button that will "Calculate" the Score , if the score is <=70 then a "Key" Object will be Given to the Player
or else he failed and should reset the Exam once more.

and UI Panel should Contain a Timer Count Down (Time Limit 10 minutes)

here is a Hand Drawn Picture of what am trying to achieve :




Well i know its a Complex Question !
But i have to know How !
Its a Free and Student Project am Working on it (For my School) and they want me to do this and i really out of time !
so any helps will be appreciated!
If anyone want money for help we can discuss on the Cost (send me PM)

Thanks so much

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Making a Question Exam
« Reply #1 on: April 20, 2012, 07:27:59 AM »
Start with the tutorials. The checkbox tutorial covers how to make option groups (radio buttons). You will simply create a UI layout with several such groups.

SVN

  • Guest
Re: Making a Question Exam
« Reply #2 on: April 20, 2012, 09:59:40 AM »
Start with the tutorials. The checkbox tutorial covers how to make option groups (radio buttons). You will simply create a UI layout with several such groups.

i make the Groups and other things ! no problem in design ! my problem is the rest of it !
plz help me ! i dont want to fail the Project :(
Plz

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Making a Question Exam
« Reply #3 on: April 20, 2012, 10:28:35 AM »
Hmm? The rest of it is just coding. Set up the event receivers, write code that does something when the options change. Or simply run through all your checkboxes at the end and see which ones are on, building a list of answers.