Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/wesnoth/wesnoth
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 20, 2014
2 parents ab5658b + d48ad24 commit 9120cbe
Show file tree
Hide file tree
Showing 12 changed files with 620 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -75,6 +75,7 @@ Version 1.13.0-dev:
* Fixed most of the minimap buttons and the End Turn button appearing
without contents or in the wrong state during WML start events until they
are interacted with or control is given to the player for the first time.
* Added a new subdialog in Preferences to clean or purge the WML cache.
* WML engine:
* Added customizable recall costs for unit types and individual units,
using the new recall_cost attribute in [unit_type] and [unit].
Expand Down
267 changes: 267 additions & 0 deletions data/gui/default/window/game_cache_options.cfg
@@ -0,0 +1,267 @@
#textdomain wesnoth-lib

[window]
id = "game_cache_options"
description = "Game data cache management dialog."

[resolution]
definition = "default"

click_dismiss = "true"
maximum_width = 600

[tooltip]
id = "tooltip_large"
[/tooltip]

[helptip]
id = "tooltip_large"
[/helptip]

[grid]

[row]
grow_factor = 0

[column]
grow_factor = 1

border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
id = "title"
definition = "title"

label = _ "WML Cache"
[/label]

[/column]

[/row]

[row]
grow_factor = 0

[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"

label = _ "Wesnoth maintains a cache of preprocessed WML data for campaigns, multiplayer scenarios, and other add-ons to speed up the loading process. The cache may be safely cleaned to free up disk space, thus removing stale files generated by older versions; or you may purge its entire contents if you are experiencing issues when loading the game data."
wrap = "true"
[/label]

[/column]

[/row]

[row]
grow_factor = 1

[column]
horizontal_grow = "true"

[grid]

[row]

[column]
grow_factor = 0

border = "all"
border_size = 5
horizontal_alignment = "left"

[label]
definition = "default"

label = _ "Path:"
[/label]

[/column]

[column]
grow_factor = 1

border = "all"
border_size = 5
horizontal_grow = "true"

[text_box]
id = "path"
definition = "default"
label = ""
[/text_box]

[/column]

[column]
grow_factor = 0

border = "all"
border_size = 5
horizontal_alignment = "left"

[button]
id = "copy"
definition = "action_copy"
label = _ "filesystem^Copy"
tooltip = _ "Copy this path to clipboard"
[/button]

[/column]

[column]
grow_factor = 0

border = "all"
border_size = 5
horizontal_alignment = "left"

[button]
id = "browse"
definition = "action_go"
label = _ "filesystem^Browse"
tooltip = _ "Browse this location using a file manager"
[/button]

[/column]

[/row]

[/grid]

[/column]

[/row]

[row]
grow_factor = 1

[column]
horizontal_grow = "true"

[grid]

[row]

[column]
grow_factor = 0

border = "all"
border_size = 5
horizontal_alignment = "left"

[label]
definition = "default"

label = _ "Size:"
[/label]

[/column]

[column]
grow_factor = 1

border = "all"
border_size = 5
horizontal_grow = "true"

[label]
definition = "default"

id = "size"
label = ""
[/label]

[/column]

[column]
horizontal_alignment = "right"

[grid]

[row]

[column]
border = "all"
border_size = 5

[button]
id = "clean"
definition = "default"
label = _ "cache^Clean"
tooltip = _ "Clear stale and unused cache files"
[/button]

[/column]

[column]
border = "all"
border_size = 5

[button]
id = "purge"
definition = "default"
label = _ "cache^Purge"
tooltip = _ "Purge the entire contents of the cache"
[/button]

[/column]

[/row]

[/grid]

[/column]

[/row]

[/grid]

[/column]

[/row]

[row]
grow_factor = 0

[column]
horizontal_alignment = "right"

[grid]

[row]
grow_factor = 0

[column]
border = "all"
border_size = 5
horizontal_alignment = "right"

[button]
id = "ok"
definition = "default"

label = _ "OK"
[/button]

[/column]

[/row]

[/grid]

[/column]

[/row]


[/grid]

[/resolution]

[/window]
1 change: 1 addition & 0 deletions players_changelog
Expand Up @@ -22,6 +22,7 @@ Version 1.13.0-dev:
* Fixed most of the minimap buttons and the End Turn button appearing
without contents or in the wrong state during WML start events until they
are interacted with or control is given to the player for the first time.
* Added a new subdialog in Preferences to clean or purge the WML cache.

* Miscellaneous and bug fixes:
* Fixed halos glitching through locations that become shrouded after the
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Expand Up @@ -784,6 +784,7 @@ set(wesnoth-main_SRC
gui/dialogs/editor_set_starting_position.cpp
gui/dialogs/folder_create.cpp
gui/dialogs/formula_debugger.cpp
gui/dialogs/game_cache_options.cpp
gui/dialogs/game_delete.cpp
gui/dialogs/game_load.cpp
gui/dialogs/game_paths.cpp
Expand Down
1 change: 1 addition & 0 deletions src/SConscript
Expand Up @@ -379,6 +379,7 @@ wesnoth_sources = Split("""
gui/dialogs/editor_set_starting_position.cpp
gui/dialogs/folder_create.cpp
gui/dialogs/formula_debugger.cpp
gui/dialogs/game_cache_options.cpp
gui/dialogs/game_delete.cpp
gui/dialogs/game_load.cpp
gui/dialogs/game_paths.cpp
Expand Down

0 comments on commit 9120cbe

Please sign in to comment.