You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
143 lines
3.3 KiB
143 lines
3.3 KiB
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://examples/numbers/CostFontSheet.png" type="Texture" id=1]
|
|
[ext_resource path="res://examples/numbers/cost_font.tres" type="BitmapFont" id=2]
|
|
|
|
[node name="Numbers" type="MarginContainer"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
custom_constants/margin_right = 8
|
|
custom_constants/margin_top = 8
|
|
custom_constants/margin_left = 8
|
|
custom_constants/margin_bottom = 8
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Example" type="Control" parent="."]
|
|
margin_left = 8.0
|
|
margin_top = 8.0
|
|
margin_right = 1040.0
|
|
margin_bottom = 620.0
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
|
|
[node name="Label" type="Label" parent="Example"]
|
|
margin_right = 401.0
|
|
margin_bottom = 48.0
|
|
text = "Number Font made to display the cost of cards in a card-game.
|
|
|
|
It is monospaced for easier alignment.
|
|
|
|
Source Texture:"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="Example"]
|
|
margin_top = 93.0
|
|
margin_right = 122.0
|
|
margin_bottom = 105.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Example/ColorRect"]
|
|
margin_right = 122.0
|
|
margin_bottom = 12.0
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="Card" type="ColorRect" parent="Example"]
|
|
margin_left = 45.123
|
|
margin_top = 256.287
|
|
margin_right = 192.123
|
|
margin_bottom = 462.287
|
|
rect_rotation = -15.0
|
|
color = Color( 0.94902, 0.305882, 0.305882, 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="Example/Card"]
|
|
margin_right = 40.0
|
|
margin_bottom = 34.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "1"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Card2" type="ColorRect" parent="Example"]
|
|
margin_left = 144.825
|
|
margin_top = 197.597
|
|
margin_right = 291.825
|
|
margin_bottom = 403.597
|
|
color = Color( 0.305882, 0.435294, 0.94902, 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="Example/Card2"]
|
|
margin_right = 40.0
|
|
margin_bottom = 34.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "2"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Card3" type="ColorRect" parent="Example"]
|
|
margin_left = 267.155
|
|
margin_top = 225.174
|
|
margin_right = 414.155
|
|
margin_bottom = 431.174
|
|
rect_rotation = 15.0
|
|
color = Color( 0.305882, 0.94902, 0.435294, 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="Example/Card3"]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "3"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label2" type="Label" parent="Example"]
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
margin_left = -486.0
|
|
margin_top = 234.0
|
|
margin_bottom = 342.0
|
|
text = "The font uses the built in texture up-sacling set to nearest.
|
|
The up-scaler keeps the textures import flags,
|
|
regardless of the up-scaling method used.
|
|
|
|
This allows the font to be filterd, yet keep a pixel-art look."
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ColorRect2" type="ColorRect" parent="Example"]
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
margin_left = -480.0
|
|
margin_bottom = 40.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="Example/ColorRect2"]
|
|
margin_right = 480.0
|
|
margin_bottom = 40.0
|
|
custom_fonts/font = ExtResource( 2 )
|
|
text = "01234567890%"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|