mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 06:55:37 +00:00

Back when link awareness was first added (https://github.com/wesnoth/wesnoth/pull/300), this key was added globally to label definitions alongside link_color. This had the unintended side effect of making *all* labels link aware, leading to issues such as being able to open a do-you-want-to-open prompt from an instance of the same ad-infinitum. This became an active issue after 213453e6cf78371360471ac4d110602aafecd9f3, since now that labels could capture focus if link_aware was true - which it always was for most labels - labels in toggle panels would always grab mouse_motion events and no longer allow their parent toggle panels to gain their hovered states. That appears to be in keeping with the design of GUI2, and a further evaluation of that issue is needed at a later time. However, the fact remains that almost every single label was marked as link-aware, even when in almost every case that was not the desired behavior. This change move the link_aware config option to individual label and scroll_label instances. The following uses had this explicitly enabled: - Addon license prompt - Addon descriptions - Campaign descriptions - The Server Info popup - The chatbox
125 lines
2.3 KiB
INI
125 lines
2.3 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the Add-ons Manager license promnpt dialog
|
|
###
|
|
|
|
[window]
|
|
id = "addon_license_prompt"
|
|
description = "Add-ons Manager content license prompt displayed during uploads."
|
|
|
|
[resolution]
|
|
definition = "default"
|
|
|
|
automatic_placement = true
|
|
vertical_placement = "center"
|
|
horizontal_placement = "center"
|
|
|
|
maximum_width = 800
|
|
#maximum_height = 600
|
|
|
|
[tooltip]
|
|
id = "tooltip"
|
|
[/tooltip]
|
|
|
|
[helptip]
|
|
id = "tooltip"
|
|
[/helptip]
|
|
|
|
[grid]
|
|
[row]
|
|
grow_factor = 0
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_alignment = "left"
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[label]
|
|
definition = "title"
|
|
label = _ "addons_server^Terms"
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 0
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_alignment = "left"
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[label]
|
|
id = "message"
|
|
label = _ "Before uploading content to this server, you must accept the following distribution terms by choosing “I Agree”."
|
|
wrap = true
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 0
|
|
[column]
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[panel]
|
|
definition = "box_display_no_blur_no_border"
|
|
[grid]
|
|
[row]
|
|
[column]
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[scroll_label]
|
|
id = "terms"
|
|
definition = "description"
|
|
label = "server terms placeholder"
|
|
link_aware = true
|
|
[/scroll_label]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/panel]
|
|
[/column]
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 0
|
|
[column]
|
|
horizontal_alignment = "right"
|
|
|
|
[grid]
|
|
[row]
|
|
grow_factor = 0
|
|
[column]
|
|
horizontal_alignment = "right"
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[button]
|
|
id = "ok"
|
|
label = _ "I Agree"
|
|
[/button]
|
|
[/column]
|
|
|
|
[column]
|
|
horizontal_alignment = "right"
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[button]
|
|
id = "cancel"
|
|
label = _ "Cancel"
|
|
[/button]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/resolution]
|
|
[/window]
|