Targetware: Customizing the User Interface
Widget Type: Text
Text widgets are useful for displaying feedback information to the user. They do not scroll, and cannot be interacted with. All content is generated by the system, based on the function number selected.
Sample Text Code
| |
[Game Widget 6]
# network data
type = text
pos = -120, 100
pos_type = 1, 1
size = 120, 30
label =
label_color = 255, 0, 0, 255
color = 0, 0, 0, 0
texture =
texcoord1 =
texcoord2 =
center = 0
visible = 0
function = 7
|
This text widget tells the game engine where to display the network data information when the user toggles it on with the F1 button.
Text Functions
The functions for the text widget all involve system feedback to the user. The current list of available functions is as follows:
| |
1 version
2 timer
3 movie status
4 fps
5 triangle data
6 latency
7 network useage data
8 aircraft debug data
|
|