更新时间:2021-07-23 14:56:31
封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
Chapter 1. UI Essentials
Introduction
Setting up a 2D texture to be a bordered sprite
Resizing the UI according to the screen size and resolution
Adding and placing an image in the UI
Adding a circular mask to an image
Making an image scrollable
Making text scrollable with a vertical slider
Selecting buttons through the keyboard
Using UI layout components
Chapter 2. Implementing Counters and Health Bars
Implementing a score counter
Implementing a lives counter
Creating a modular coin counter
Creating a symbolic lives counter
Implementing a linear health bar
Implementing a radial health bar
Creating a health bar with armor
Using multiple bars to make a multibar
Developing a kingdom hearts health bar style
Chapter 3. Implementing Timers
Implementing a numeric timer
Creating a linear timer
Implementing a radial timer
Creating a mixed timer
Creating a well-formatted timer
Developing a well-formatted countdown that changes
Chapter 4. Creating Panels for Menus
Creating a toggle group
Showing the slider value as a percentage
Adding upper and lower bounds to the slider
Making UI elements affected by different lights
Making a draggable panel
Making a resizable panel
Creating a drag-and-drop element
Developing an MP3 player
Chapter 5. Decorating the UI
Creating an extendable element with a final fade effect
Creating an extendable and rotating element with a final fade effect
Creating bars that go up and down
Making a floating UI element
Adding shadows to text
Adding outlines to text
Chapter 6. Animating the UI
Appearing and disappearing menu
Creating a menu with an entrance transition
Creating a menu with an idle animation
Animating a button when the cursor is over it
Creating a pop-up menu
Animating hearts of the symbolic lives counter
Changing animation of the hearts of the symbolic lives counter through the script
Chapter 7. Applying Runtime Customizations
Making a button that changes color
Creating a slider that changes colors gradually
Creating a slide shower using a discrete slider
Creating a slider that changes a single color channel
Making an input field with personal text validation at runtime
Making an input field for a password with a lower bound limit for characters
Changing the cursor at runtime
Chapter 8. Implementing Advance HUDs
Creating a distance displayer
Creating a directional radar
Developing a subtitle shower
Chapter 9. Diving into 3D UIs
Creating a 3D menu
Adding a smooth tilt effect
Creating and placing a 3D UI
Making an animated 3D UI warning
Chapter 10. Creating Minimaps
Creating a minimap
Implementing advanced features for minimaps
Index