780 Commits

Author SHA1 Message Date
Charles Dang
f482208315 Removed an unused linked group 2015-04-26 14:52:10 +11:00
Charles Dang
8a7fe3a7db tcore_selection: removed image field under description
This also replaces the icon= key with the image= key
2015-04-25 19:33:36 +11:00
Charles Dang
bce7c9c329 tcore_selection: cleaned up cruft left over from the campaign dialog 2015-04-25 19:04:10 +11:00
Charles Dang
9f6c07815e tcampain_selection: removed unused tree view 2015-04-25 17:15:42 +11:00
Ignacio R. Morelle
17ad6353d9 gui2/teditor_generate_map: Redesign dialog to use a listbox (bug #23431)
Had to move a lot more code than expected.

Note that the entry for YAMG has an unwieldy label for some reason. This
doesn't really matter since YAMG will be removed in an upcoming commit.
2015-04-23 05:29:00 -03:00
Ignacio R. Morelle
0fcf4e3cb9 gui2/tmp_join_game_password_prompt: Port GUI1 MP password prompt (bug #23455)
This is the prompt for joining a password-protected game, not for
configuring password protection (which was already ported to GUI2 ages
ago).
2015-04-09 01:10:05 -03:00
gfgtdf
8b426ebee5 add seed textbox in map editor random generation 2014-11-20 02:34:32 +01:00
Chris Beck
6ad819d759 add a label to lua console describing which kernel is connected 2014-11-14 01:07:12 -05:00
Chris Beck
ca79d3f14a fixup various code comments 2014-11-14 00:50:57 -05:00
Chris Beck
5f96795080 refactor scale_surface, and add old version as "legacy linear" option 2014-11-14 00:32:40 -05:00
Chris Beck
51baab8836 try to fix lua console behavior wrt spacing, command history 2014-11-13 20:01:38 -05:00
Chris Beck
510674d465 add lua console button to the gamestate inspector dialog 2014-11-13 14:28:56 -05:00
Chris Beck
2021a42d5b Add lua console
- Add an internal command logger to the lua kernel base, and expose
this.
- Redirect the internal lua `print` to the command logger.
- Add an external logger registration system to lua kernel, in
addition to the internal one.
- Add a lua console dialog which binds to a lua kernel base and
permits to review the contents of the logger and issue new commands,
and report errors.
- Add a hotkey binding to launch the lua console "`"
- Adds tab completion support to the lua console
2014-11-13 11:38:58 -05:00
Chris Beck
07b6eeedb2 add "advanced graphics" preference dialog, for scaling algo options
This commit also gives the smart enums in src/make_enum.hpp
introspective capabilities, by giving them a static const size_t
which tells how many possible values they may take (hence the range
of the enum.) It was convenient for the dialog implementation
to have this.

Note that, I had to make use of __attribute__((unused)) to compile
this. I apply this using a macro which adds it for gcc, clang, and
mingw which I know respond to this attribute. I don't know what is
the equivalent MSVC device, or if it is even necessary, so its
possible that this commit needs to be fixed up.

We also disable unit tests for the new advanced graphics dialog,
there are no tests for it right now...
2014-10-24 18:42:18 -04:00
Chris Beck
5f3dbe1d98 add link_color property of label defn, passed to font::ttext
This commit permits link_color to be specified in any label defn,
at the same place that link_aware is specified. It will be passed
through to tcanvas and finally font::ttext in a similar manner as
link awareness, and used for the color parameter in any link
formatting. We choose a default value of #ffff00 everywhere,
matching the definition currently in the help browser for cross-
references.
2014-10-18 21:02:28 -04:00
Chris Beck
de1c04e187 make labels read "link_aware" property from their widget defn
This adds a "link_aware" key to label definitions, and C++ tlabel
objects no longer initializer this to true, but instead read the
value from their definition configuration.
2014-10-18 21:02:28 -04:00
Chris Beck
ad8e1f7763 link-aware rendering of labels
This commit adds a new property of font::ttext, whether it is
"link aware". Link aware text has tokens that look like hyperlinks
formatted thusly, with coloration and an underline.

A `get_link` function, taking a layout location, returns a link
token if it is pointed to at that location, and link awareness
is enabled, and the empty string otherwise.

All gui2::tcontrols may now have their text labels set to be link
aware if desired. The gui2::tlabel constructor automatically sets
these to be link aware. The gui2::tlabel click handler is set to
use the `get_link` function instead of the `get_token` function.

Link awareness is also registered as a property of [text] fields in
gui widget definitions.
2014-10-18 20:56:36 -04:00
Chris Beck
d51b4dcf83 fix tablature in data/gui/.../mp_alerts_options.cfg 2014-10-18 20:03:25 -04:00
Chris Beck
4e7149f893 remove "desktop notifications" adv. preference
We move the tooltips to the "mp_alerts_options" window which has
subsumed this preference.
2014-10-18 20:00:52 -04:00
Chris Beck
835da049f2 create "turn_changed" preference under mp alerts 2014-10-18 19:54:29 -04:00
Chris Beck
3be095026d change title "Lobby Sounds" -> "Multiplayer Alerts", fix tooltips
Tooltips are not supposed to end in '.'
2014-10-12 16:44:59 -04:00
Chris Beck
b937d2d1bd rename "lobby_sounds_options" -> "mp_alerts_options" 2014-10-12 16:40:17 -04:00
Chris Beck
2f78d72d56 fix bug where preferences seemed not to be saved
The problem was that widget ids were being used in place of
preference ids, which are very similar but not exactly the same.
This commit fixes the bug, but goes further and changes all the
widget ids to match the preference ids, reducing the chance of
confusion in the future.
2014-10-12 16:02:53 -04:00
Chris Beck
56530d2bf1 grey out the notifications opts when they weren't compiled in
In this case, we deactivate all of the notification checkboxes,
and set all relevant preferences and checkboxes to false. We also
put a tooltip on the header for this column, saying "This build of
wesnoth doesn't support desktop notifications, contact your
package manager."
2014-10-12 02:15:59 -04:00
Chris Beck
788eb1b240 fix a bug caused by exchanging "ready_for_start" <-> "ready_to_start" 2014-10-11 23:59:37 -04:00
Chris Beck
ac6e648fc1 add "revert to defaults" button to lobby sounds pref manager 2014-10-11 22:34:56 -04:00
Chris Beck
a2ed0df973 add friend_message preferences and handler 2014-10-11 20:49:55 -04:00
Chris Beck
6fd4e3c64e add lobby sounds options dialog, launching from pref->multiplayer
This just adds the gui definition, and a button to bring it up,
with no callbacks or backend.
2014-10-11 05:15:52 -04:00
Ignacio R. Morelle
3f01104acf gui2/tcampaign_settings: Make labels conform to our label case convention
Checkbox and standalone labels like this should be in Sentence case, not
Title Case.
2014-10-05 19:17:19 -03:00
Nathan Walker
8138e2510c more user-friendly labels for additional dialogs
changed "multiplayer configure" to "level options" and "multiplayer connect" to "configure sides"
2014-08-11 11:54:51 -05:00
Nathan Walker
049ae13a5a implement allow_era_choice wml for sp settings 2014-08-08 17:45:07 -05:00
Nathan Walker
b1514a5bcd experimental implementation of sp advanced settings dialog
Era and mod selection is functional, as well as options to enable mp_configure and mp_create dialogs.
There is still an issue of realoading config. If you load multiplayer, then exit, then load campaign, there is no config reload, so the multiplayer eras/mods stay in config and are selectable. However, since state.classification().campaign_type is not set to multiplayer, when config is reloaded for a specific campaign, multiplayer won't be defined and therefore the selected era may no longer be available. So, we need some way to handle this case better. Also, it may be desirable to add a button to advanced settings which would change the campaign_type to multiplayer and reload (if we actually did want to load some mp era). Another potential option for this dialog could be IO type (to make the game networked, etc).
2014-08-08 17:45:06 -05:00
Nathan Walker
64ab665426 add advanced_settings button to campaign_selection
functionality to be implemented in tcampaign_selection::show_settings().
2014-08-08 17:45:05 -05:00
Nathan Walker
efdea6573f Adjust namespaces for mp and sp
moved engine code into "ng" namespace. Moved sp code into "sp" namespace.
Also, renamed some files to reflect the change.
2014-07-13 15:25:22 -05:00
Ignacio R. Morelle
76a7e47225 Give the Deterministic mode checkbox a compliant tooltip and label
Fixes bug #22229.
2014-07-07 17:19:26 -04:00
Ignacio R. Morelle
9e447d1e3a gui2/taddon_filter_options: Allow filtering TC core add-ons 2014-06-26 20:54:37 -04:00
Ignacio R. Morelle
17c8d568d5 gui2/tgame_cache_options: New Preferences subdialog for cache management
It allows the user to browse to the cache (using a desktop API call),
copy its path to clipboard, clean the cache contents (deleting stale
files), or purge it entirely.

This is ideal for people sticking to the same cache dir for very long
and thus keeping content that was generated by previous versions of
Wesnoth they might not even use anymore. Purging the cache might also
aid troubleshooting (although there is a --nocache switch for that too).

The dialog also makes Wesnoth slightly more transparent about its own
disk usage, information which may not be readily accessible to people
without the technical know-how to locate a hidden directory.

For now it's accessed by pushing a button in Preferences -> General,
even though this is not ideal since it is actually Advanced Preferences
material given the nature of the cache. Unfortunately, the Advanced
page's layout is currently monopolized by the advanced preferences
options and I'm not interested right now in solving that UI design
puzzle; it will have to wait, much like the Paths dialog has done and
continues to do for 1.12.
2014-06-19 20:43:36 -04:00
Ignacio R. Morelle
8a30f348b1 gui2/tchat_log: Use a separate proper label for the page number text
This replaces the page number slider with a "minimal" variant slider and
an adjacent label widget whose text we enter manually.

The label format is "<PAGE>/<COUNT>" and it's untranslatable. Hopefully
this shouldn't cause any localization issues since it's all numbers and
we currently can't use alternative numeral systems anyway.

I'm leaving the page slider's maximum_value_label attribute intact just
in case this needs to be reverted later, since it's going into the 1.12
branch too.
2014-06-19 02:40:16 -04:00
Ignacio R. Morelle
a286bf1908 gui2/tslider: Add minimal variant without a text label
The default variant's text label is both inflexible in content (can't
customize the format for non-edge values) and layout (reserves way more
space than it needs at a time for its text label, often resulting in
huge horizontal gaps between a slider and an adjacent widget). This
makes it unsuitable for use in gui2::tchat_log.

This new minimal variant will be wired into gui2::tchat_log next.
2014-06-19 02:40:16 -04:00
Ignacio R. Morelle
369b24103e gui2/tcore_selection: Make the listbox grow vertically
This allows its top to be aligned to the dialog's top so it's not
centered vertically.
2014-06-14 23:35:41 -04:00
Ignacio R. Morelle
8712e60bee gui2/taddon_filter_options: Make SP/MP campaigns checkbox use Sentence case
For consistency with all other non-menu/listbox checkboxes.

pofix rule included and applied.
2014-06-14 23:29:35 -04:00
Mark de Wever
02b761b24e Set the minimum width for a listbox cell.
This fixes bug #22046.
2014-06-14 14:43:45 +02:00
Ignacio R. Morelle
9b065fd9a0 gui2/tchat_log: Add a button to copy the filtered page contents to clipboard
This copies the current contents of the dialog to clipboard. The button
currently lacks a tooltip because the tooltip has the potential to cause
map labels to glitch through the dialog when displayed (see commit
eab3e6fb646fda8cc6101a3e568c86c2b17b707f and bug #22176).
2014-06-11 20:32:42 -04:00
Ignacio R. Morelle
eab3e6fb64 gui2/tgamestate_inspector: Add a button to copy contents to clipboard
This copies the contents of the main display area to clipboard. The
button currently lacks a tooltip because the tooltip causes map labels
to glitch through the dialog when displayed (noticeable in e.g. the test
scenario). I'll file a bug for this issue later using a (commented-out)
line introduced by this commit as a test case.
2014-06-09 18:13:48 -04:00
Mark de Wever
b7ef64cb19 Set the minimum size for a listbox cell.
The images drawn for a selected cell require a minimum size.

The change is part 2/2 of the fix for bug #22144.
2014-06-09 19:07:53 +02:00
Alexander van Gessel
d30f8ff34b Make wesnoth load on 800x480 again
This reduces a hard spacer from 50 to 20 pixels in size. It does not seem to
have any visual effects.
2014-05-14 11:59:14 +02:00
fendrin
f95f5a4c94 Fix tab ---> spaces issue. 2014-05-09 22:05:04 +02:00
fendrin
3c9ea89068 Merge branch 'mod'
Conflicts:
	changelog
	players_changelog
2014-05-09 21:45:17 +02:00
fendrin
b4ea561e37 Support for total conversions, so called "cores". 2014-05-09 21:36:36 +02:00
gfgtdf
9d3594620e added forgotten translatable mark 2014-04-04 01:26:09 +02:00