2
« on: January 25, 2014, 08:46:38 AM »
- Max characters per line for a UILabel
- Build-in support for tooltips to stay on the screen. I managed to achieve this by copying some code from the draggable object script, though it's slightly wonky for some reason.
- Resolved this with a derived UITooltip but would be nice if it was already built-in - if the game object it's hovering over suddenly gets disabled or destroyed, make the tooltip disappear as well. For example, I hovered over an item in inventory to view tooltip and pressed "I" on my keyboard to quit the inventory screen (panel gets disabled). the tooltip stays at the exact spot and is visible until I try to hover over a different game object that triggers the tooltip.
- A way to terminate the OnDrag event after it starts. for example, I have a ship hardpoint with equipment that I allow the user to switch out with other equipment, but I disallow the user from taking the equipment out. with my current implementation, I'm able to prevent the user from moving it, but the error sound plays continuously until I stop dragging my mouse around with left-button held down.
- In the quest log example, I noticed the text shrinks away via scaling when you collapse a quest title. would love the option of it just rolling back in and having the text clipped instead.
- A tutorial video dedicated to tweening tips and tricks. one thing I'll be implementing at some point is tweening icons within a grid (e.g. status effects). I'm imagining it'll involve a combination of tween scale, position, and perhaps alpha (icons quickly appear and slide into their grid positions).