mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 00:56:31 +00:00

Cleaned up some std::cerr to use proper logging. Rather ugly proof-of-concept to get the cursor working in a text_box. This still needs quite some polishing but the basics work.
65 lines
920 B
INI
65 lines
920 B
INI
###
|
|
### Definition of a label.
|
|
###
|
|
|
|
[label_definition]
|
|
id = "default"
|
|
description = "Default label"
|
|
|
|
[resolution]
|
|
min_width = 40
|
|
min_height = 22
|
|
|
|
default_width = 180
|
|
default_height = 22
|
|
|
|
max_width = 0
|
|
max_height = 22
|
|
|
|
text_font_size = {FONT_SIZE_NORMAL__NORMAL}
|
|
|
|
[state_enabled]
|
|
|
|
full_redraw = "true"
|
|
|
|
[draw]
|
|
|
|
[text]
|
|
x = "5"
|
|
y = {TEXT_V_CENTRE}
|
|
w = "(text_width)"
|
|
h = "(text_height)"
|
|
font_size = {FONT_SIZE_NORMAL__NORMAL}
|
|
colour = {FONT_COLOUR_ENABLED}
|
|
text = "(text)"
|
|
[/text]
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
full_redraw = "true"
|
|
|
|
[draw]
|
|
|
|
[text]
|
|
x = "5"
|
|
y = {TEXT_V_CENTRE}
|
|
w = "(text_width)"
|
|
h = "(text_height)"
|
|
font_size = {FONT_SIZE_NORMAL__NORMAL}
|
|
colour = {FONT_COLOUR_DISABLED}
|
|
text = "(text)"
|
|
[/text]
|
|
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[/resolution]
|
|
|
|
[/label_definition]
|
|
|