- Godot Engine Game Development Projects
- Chris Bradfield
- 257字
- 2021-06-18 18:51:30
Containers
UI containers automatically arrange the positions of their child Control nodes (including other Containers). You can use them to add padding around elements, center them, or arrange elements in rows or columns. Each type of Container has special properties that control how they arrange their children. You can see these properties in the Custom Constants section of the Inspector.
Remember that containers automatically arrange their children. If you move or resize a Control that's inside a Container node, you'll find it snaps back to its original position. You can manually arrange controls or arrange them with a container, but not both.
To manage the score and time labels, add a MarginContainer node to the HUD. Use the Layout menu to set the anchors to Top Wide. In the Custom Constants section, set Margin Right, Margin Top, and Margin Left to 10. This will add some padding so that the text isn't against the edge of the screen.
Since the score and time labels will use the same font settings as the MessageLabel, it will save time if you duplicate it. Click on MessageLabel and press Ctrl + D (Cmd + D on macOS) twice to create two duplicate labels. Drag them both and drop them on the MarginContainer to make them its children. Name one ScoreLabel and the other TimeLabel and set the Text property to 0 for both. Set Align to Left for ScoreLabel and Right for TimeLabel.
- 讓每張照片都成為佳作的Photoshop后期技法
- 大型數據庫管理系統技術、應用與實例分析:SQL Server 2005
- Associations and Correlations
- 基于ARM 32位高速嵌入式微控制器
- Visual FoxPro數據庫基礎及應用
- SAP Business Intelligence Quick Start Guide
- Visual FoxPro程序設計
- 生成對抗網絡項目實戰
- Xilinx FPGA高級設計及應用
- Creating ELearning Games with Unity
- Cloudera Hadoop大數據平臺實戰指南
- Deep Learning Essentials
- 大數據時代的調查師
- 微機組裝與維護教程
- 工程地質地學信息遙感自動提取技術