Commit graph

539 commits

Author SHA1 Message Date
Charles Dang
01d4c6a03b Experimental Lobby: fixed some broken image paths 2015-12-07 02:29:16 +11:00
Ignacio R. Morelle
dab5668e4d gui2/tmp_cmd_wrapper: Regroup mod options into a grid that's hidden by default
This makes it so the grid and its children are only displayed when the
client has mod access to the sever, rather than keeping them visible at
all times and graying them out when not available.
2015-06-01 23:04:03 -03:00
Ignacio R. Morelle
eee57afbd2 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:34:00 -04:00
Ignacio R. Morelle
799e09d94a 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
eab3e6fb64 and bug #22176).

(The tooltip should also remain commented-out because this is a backport
to 1.12.)
2014-06-14 23:44:52 -04:00
Ignacio R. Morelle
474f30c759 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:26:39 -04:00
Ignacio R. Morelle
6a56da5f0f 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-10 23:05:33 -04:00
Chris Beck
0958a31890 Purge "human_ai" controller type
This is a fixup of bugfix #18829 (which was commit
736ceaa6c7)
2014-03-19 17:23:04 -04:00
Ignacio R. Morelle
d36fbdc578 gui2/ttransient_message: Add missing standard padding around image cell 2014-03-13 01:10:05 -03:00
Ignacio R. Morelle
1346264734 gui2/tmessage: Add missing standard padding around image cell 2014-03-13 01:09:39 -03:00
Ignacio R. Morelle
220f86036e gui2/tgamestate_inspector: Reindent 2014-03-02 05:14:35 -03:00
Ignacio R. Morelle
47ffd9ea2d gui2/tscreenshot_notification: New GUI2 dialog shown when taking screenshots
It includes the following features:

 * A cleaner and more structured message display
 * Buttons to copy the screenshot file path to clipboard or open it with
   an external application defined by the platform
 * An additional button to browse to the screenshots folder using an
   external file manager defined by the platform

It also breaks the scons build. This will be addressed by the next
commit.
2014-02-21 02:32:21 -03:00
Ignacio R. Morelle
a9298e1d6d gui2/ttext_box: Add a 'transparent' backgroundless variant for WML [message] 2014-02-21 00:35:38 -03:00
Ignacio R. Morelle
87c57ca6c0 gui2/ttheme_list: Replace unwieldy message text 2014-02-19 06:40:56 -03:00
Ignacio R. Morelle
a9c93201c8 theme ui, gui2/ttheme_list: New theme chooser, implement [theme] description
Adds a new 'description' attribute to [theme] and replaces the previous
instance of gui2::tsimple_item_selector used to select themes with a
brand new dialog (that's actually based on it) that allows for
displaying theme descriptions in a nice format.

Because some of the theme names aren't obvious enough to players
("UnitBox" comes to mind), we ought to provide descriptions of each
theme to save people some clicks since it's not possible at the
moment to switch the theme mid-game and see the results immediately.
2014-02-19 06:39:51 -03:00
Ignacio R. Morelle
9edee42b7e gui2/teditor_edit_side: Let the team id/name input boxes grow horizontally 2014-02-15 22:28:17 -03:00
Ignacio R. Morelle
a4340c9375 gui2/tchat_log: Use GUI_FORCE_WIDGET_MINIMUM_SIZE macro instead of local hack
Turns out there already was a somewhat more elegant solution in use for
the GUI2 lobby and macroified for everyone else. It uses a
stacked_widget with a spacer within instead of the awkward 2x2
{[central widget,spacer],[spacer,spacer]} grid we were using here.
2014-02-15 21:58:04 -03:00
Ignacio R. Morelle
b0950f006c gui2/tchat_log: Hack to set a minimum cell size to 200x250
Because this window many contain a lot of text in both directions,
having it change size dynamically every time the log page is switched or
a new text filter is entered can be extremely annoying for the player.

Setting the scroll_label's parent (now ancestor) cell's minimum size to
something that isn't 0x0 mitigates the issue to some extent. Better than
nothing, I guess.

(Tested with a screen resolution of 800x480.)
2014-02-14 06:13:03 -03:00
Ignacio R. Morelle
1cdc5df63d gui2/tchat_log: Let the log scroll_label grow horizontally 2014-02-14 05:22:10 -03:00
Ignacio R. Morelle
b11bd24711 gui2/tchat_log: Use 'description' scroll_label type for the log 2014-02-14 05:21:52 -03:00
Ignacio R. Morelle
29f08abd6f gui2/taddon_description: Let the description area grow horizontally
Let it grow to fill the space available when it's greater than the
description box's requested size (e.g. for very short descriptions).
2014-02-14 05:07:31 -03:00
Ignacio R. Morelle
e4bed0ce96 gui2/twml_error: Add a button to copy the WML error report to clipboard 2014-02-13 06:24:03 -03:00
Ignacio R. Morelle
798c7402f1 gui2/twml_error: Add a post_summary field for advice on reporting add-on errors 2014-02-13 06:24:02 -03:00
Ignacio R. Morelle
9eeab249d1 gui2/twml_error: Limit maximum dialog size to 600x600 for readability 2014-02-13 06:24:02 -03:00
Ignacio R. Morelle
2659dfcb9d gui2/twml_error: Use the description scroll_label variant for the report 2014-02-13 06:24:02 -03:00
Ignacio R. Morelle
458b36d007 gui2/twml_error: Handle an optional list of faulty files separately
This allows us to be more self-contained and require less logic in the
instantiation site for preparing the report for display.

This requires adding a new row and label for displaying the list of
faulty files, which will be hidden when the list is empty or not
provided in the display() static member function.
2014-02-13 06:23:46 -03:00
Ignacio R. Morelle
d5a34a1460 gui2/twml_error: New GUI2 dialog to be used for WML parser/pp errors
This dialog features separate summary and detail sections along with a
small heading for the latter in bold face. More features may be added
later as part of my work on improving WML diagnostics, but for now we
have the bare minimum for better message formatting with a content
structure more or less identical to the current one.
2014-02-12 04:16:57 -03:00
Mark de Wever
5da495122a Add a new GUI2 tooltip.
The placement of tooltip is controlled by the WML of the GUI engine. The
code is not used yet, only available with a proof-of-concept define named
DEBUG_TOOLTIP.
2014-02-08 21:13:08 +01:00
Ignacio R. Morelle
0f1cbae347 gui2/taddon_description: Display first/last upload dates 2014-02-07 23:17:21 -03:00
Ignacio R. Morelle
46aded67e2 gui2/taddon_description: Allow the URL textbox to become wider as needed 2014-01-04 15:32:43 -03:00
Ignacio R. Morelle
03f1dea50a gui2/teditor_edit_scenario: Unify some grids for a more orderly appearance 2014-01-04 12:30:51 -03:00
Ignacio R. Morelle
39b216cb2e gui2/teditor_edit_scenario: Change XP modifier slider step and minimum values 2014-01-04 12:30:51 -03:00
Ignacio R. Morelle
a5ac4d06c6 gui2/taddon_description: Use a [stacked_widget] so URL controls may be hidden
The URL controls overlay a placeholder "None" label using the
[stacked_widget]. When there's no URL to show, the URL controls are
hidden. When there is a URL to show, the placeholder is hidden instead.
2014-01-04 12:30:51 -03:00
Ignacio R. Morelle
e555bc63e6 gui2/taddon_description: Align the description grid and box to the left
Fixes the description box and header being centered on the dialog when
the description box and/or its container grid are narrower than the
column containing them.
2014-01-04 10:56:48 -03:00
Ignacio R. Morelle
f176119c90 gui2/taddon_description: Replace url_go button tooltip with a more passive one 2014-01-04 07:59:07 -03:00
Ignacio R. Morelle
5442b2c843 gui2/taddon_description: Add controls to display an add-on's feedback URL
This includes a textbox to display the URL, and two buttons to copy and
visit the URL.
2014-01-04 07:19:41 -03:00
Ignacio R. Morelle
46b9bd3a47 gui2/taddon_description: Completely redesigned dialog layout
The new layout merges some information rows together to increase
available vertical space for displaying additional fields later, and
uses a 'description' scroll_label type for the add-on Description field
to improve its appearance, especially for multi-line descriptions.

This also makes the dialog non-click-dismissable and adds a Close button
on the bottom right corner. Since we're about to add more interactive
controls, there's really not much of a choice about the click-dismiss
option; it gets disabled for such dialogs automatically.
2014-01-04 07:19:41 -03:00
Ignacio R. Morelle
74e933bcc0 Revert wmlindent pass on data/gui/ by bumbadadabum
Commit ef2bdfbc12 includes a wmlindent
pass on data/gui/ which is currently not intended to be wmlindent-ed
(see the 'reindent' data/tools/Makefile target).

One adverse effect of the commit includes portraits being rendered near
the top of the screen instead of the bottom in the [message] GUI2
dialogs.
2013-12-31 19:45:17 -03:00
Bär Halberkamp
ef2bdfbc12 Ran wmlindent 2013-12-31 19:22:28 +01:00
fendrin
4c09097b03 Adjust prose of the new dialogs. 2013-12-30 12:37:03 +01:00
fendrin
d737f2ea09 Replace "ID" with "Identifier" which is more friendly to the eye. 2013-12-28 14:28:29 +01:00
fendrin
17ad07a8c4 Replace the input fields for id and name of a side in the editor.
The definitions of teams might be more useful.
Also, id and name of a side are mixed with the ones of the leader unit
which makes handling them difficult.
2013-12-28 14:24:05 +01:00
Ignacio R. Morelle
a371eee3ea gui2/tmp_depcheck_select_new: Convert title label to Title Case 2013-12-21 20:42:13 -03:00
Ignacio R. Morelle
1c4129a210 gui2/tmp_depcheck_confirm_change: Replace title label with a generic one
The generic label should be already translated (it's used in C++), and
also respects the Title Case rule on grounds of it not having a word
count greater than 1.
2013-12-21 20:41:12 -03:00
Andrius Silinskas
16a49feefa Support for new add-on type "SP/MP Campaign".
Add-on filter options have been reordered to take new changes into account.
2013-12-18 15:42:07 +00:00
Ignacio R. Morelle
fbf47c0f00 gui2/teditor_edit_side: Rearrange options, add player number slider, no_leader toggle, human/AI controller option
Other options needed to be rearranged in order to balance the overall
layout and make room for the new options.
2013-12-18 07:52:14 -03:00
Ignacio R. Morelle
5a815f180d gui2/teditor_edit_side: Allow sliders to extend further horizontally 2013-12-18 07:52:14 -03:00
Ignacio R. Morelle
1cf594b52d gui2/teditor_edit_side: Make the dialog look nice
* Stacked most widgets vertically since GUI2 textboxes and sliders
   demand a lot of horizontal space (especially sliders, for some
   reason).
 * Rearranged various options grouping them according to the
   functionality they target.
 * Reworded some option labels to make them look nice or have their
   purpose made more evident.
 * Added a side number label near the top of the dialog as a reminder
   for the user.

For these ends:

 * The whole grid layout has been extensively rearranged.
 * Some unused or redundant code has been removed.
 * A radio button macro was renamed, and made sure it is undefined at
   the end of the file.
 * Another macro along with its inclusion sites were removed
2013-12-18 07:52:14 -03:00
fendrin
130009ef7f Support for handling maps and scenarios differently.
Dialog for editing the scenario setup.
Dialog for editing the side setup.
A mechanism for loading and saving the different cases.
2013-12-18 00:46:58 +01:00
Ignacio R. Morelle
3115b139b7 gui2/tchat_log: Regroup navigation controls in subgrids
This should allow for fine-grained layout control.
2013-12-01 19:14:29 -03:00
Ignacio R. Morelle
f23ef1672a gui2/tgame_save_oos: Remove wrap attribute not accepted by scroll_label 2013-11-26 19:30:39 -03:00