Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Firstly:
- Make sure Main Camera's Position is 0 0 0
- Set Layout's Position to 0 0 100
- Lobby to 0 0 0
- Each unchecked map to 0 0 -1
- Map:
- Part A
- Text labels.
- You have a text Gameobject already.
- You'll be making a bunch of text.
- There will be 11 text things, so duplicate your text object 8 times.
- TreasureValue_Label
- TreasureValue
- ActiveHunters_Label
- ActiveHunters
- Capacity_Label
- Capacity
- EnrollmentCost_Label
- EnrollmentCost
- TimeLeft
- ClickCost
- Enroll_Label
- I'll be using code to make the text change.
- So all you have to do is make and position the Texts. Make sure the Z position of these is -1 and that they are children of Map. Exception: Make ClickCost and Enroll_Labels's Z equal to -2 instead.
- For example, in TreasureValue_Label, you'll set the text to be "Treasure Value", and position it to be in the top centerish area of the map.
- In TreasureValue, you'll set the text to be $10.15, and position that. I'll change it with code later.
- Do that for all the different parts.
- Part B
- Click Cost Icon!
- You'll create a new empty gameObject, as a child to Map. Rename this to ClickCostIcon. Select ClickCostIcon and then go to Component > 2DToolkit > Sprite > tk2dsprite. Set the collection to be 'whatever', then have the sprite as ClickCost. Make sure Z position is -1. Rescale and reposition or whatever as needed. Find the ClickCost text you made before, and have it be a child of ClickCostIcon. Make sure ClickCost's Z and ClickCostIcon's Z are both -1.
- Part C
- Button
- Same as click cost icon, make a new empty child of Map, rename it, resize it, reposition it. Now make Enroll_Label a child of this Button. Add a tk2dsprite as you did before (to button). Set the collection/sprite of the tk2dsprite to be whatever>defaultButton2. You're now going to add a lot of stuff:
- Component > 2D Toolkit > UI > Core > tk2dUIItem
- Component > Physics > Box Collider
- Component > 2D Toolkit > UI > tk2dUITweenItem
- Find the tk2dUIItem in your Button object, and find the [Fit] button. Press that.
- Find the Enroll_Label and set it as a child to Button. Make Enroll_Label's XYZ = 0 0 -1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement