Commit graph

736 commits

Author SHA1 Message Date
Ignacio R. Morelle
ee39012ba9 gui2/tscroll_label: Add the definition for a 'description' scroll_label
This scroll_label definition is intended to be used for big description
boxes like in the Add-ons Manager's description dialog. It paints a
darker transparent background behind the inner grid and adds some
padding to the inner label.
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
Ignacio R. Morelle
bdb3e25140 gui2/tgame_save_oos: Use scroll_label instead of label for the main text
This makes it so very long messages do not cause the whole window to
gain a scrollbar.
2013-11-22 18:53:43 -03:00
Ignacio R. Morelle
59af0a1cf0 gui2/taddon_filter_options: Use radio toggle_button variant 2013-11-13 00:57:06 -03:00
Ignacio R. Morelle
53cd669c8e gui2/ttoggle_button: Add "radio" variant using the radiobox graphics 2013-11-13 00:57:04 -03:00
Ignacio R. Morelle
d3e18e1e9b gui2/taddon_uninstall_list: Replace dialog caption
"Uninstall Add-ons" -> "Remove Add-ons".

It's referred to as "Remove Add-ons" by the parent dialog.
2013-11-10 02:35:14 -03:00
Ignacio R. Morelle
87c8ed6c2e gui2/tchat_log: Use 25x25 short arrow buttons for pagination
This should save us some space. More adjustments still need to be done
for this dialog to display correctly under certain circumstances.
2013-10-25 06:23:22 -03:00
Ignacio R. Morelle
916430ac3e gui2/tbutton: Add 25x25 left/right_arrow_short_ornate variants 2013-10-25 06:23:21 -03:00
Ignacio R. Morelle
f39392f1c2 gui2/tchat_log: Add log search support
The search done using the Filter box matches text on timestamps, nicks,
and messages in a case-insensitive fashion.

Some GUI layout adjustments still need to be done for this dialog to
display correctly. Not all of them are possible, unfortunately (e.g.
GUI2 doesn't support setting a minimum cell height yet).
2013-10-25 06:23:21 -03:00
Ignacio R. Morelle
1c414a30d6 gui2/tgame_paths: New dialog for displaying game paths in Preferences
The button to invoke this dialog is currently in Preferences -> General.
This will change as soon as I think of a better place/someone else
suggests a better place for the button.

The goal is to allow users to quickly inspect the various paths used by
the game to locate resources and configuration, for debugging or content
creation purposes. The dialog provides options to copy directory paths
to the system clipboard and browse them using the platform's file
manager software, when available.
2013-09-26 02:15:42 -03:00
Ignacio R. Morelle
ea4788e0cf gui2/tbutton: Add 25x25 variants for browse/go and copy-to-clipboard actions 2013-09-26 01:34:13 -03:00
Ignacio R. Morelle
2351b07f9e gui2/taddon_filter_option: Various UI layout improvements
* Use "Options" as a dialog title instead of "Filter Options" for
   simplicity and to represent its current functionality better.
 * Limited dialog width to 800 pixels for readability.
 * Replaced neutral sorting options header with something that hopefully
   describes their purpose in a more user-accessible fashion.
 * The installation status options listbox now grows along with its
   containing grid.
 * Ascending/Descending options are placed closer to the sorting
   criterion selection.
 * Description labels use text wrapping when needed.
2013-09-17 04:08:50 -03:00
Ignacio R. Morelle
28ca84ef91 gui2/taddon_filter_options: Add sorting criterion/direction options
These will be used to allow the user to change the "neutral"
(fallback) add-on sorting method used in the add-ons list when no
column header has been selected for sorting.
2013-09-16 23:38:41 -03:00
Ignacio R. Morelle
92755323d1 gui2/taddon_description: Add a row for listing add-on dependencies 2013-06-30 21:49:19 -04:00
Charles Dang
f8be6caa0e Removed bg from titlescreen version label. It reads fine against the main wooden bg without it 2013-06-13 02:08:58 +11:00
Charles Dang
5a35bc4b74 Used opacity IPF (value 65%) for wml message tp border, and grayscale IPF for disabled state of the same 2013-06-12 20:07:14 +11:00
Charles Dang
fab74c0c1c Updated imagepaths to selection border images 2013-06-12 20:07:05 +11:00
Charles Dang
7d67312f06 Fixed more paths to gold coins image 2013-06-09 17:14:17 +11:00
Charles Dang
0ca3f3f268 Removed editor settings dialog. Custom TOD dialog has replaced it 2013-06-09 12:42:32 +11:00
Charles Dang
e0fb308439 Fixed wrong macro arg name and missing quote 2013-06-09 05:07:04 +11:00
Charles Dang
cd07621cc0 Use grayscale IPF for slider disabled state 2013-06-09 03:28:17 +11:00
Charles Dang
60283c1455 USe opacity IPF for transparent scrollbars instead of seperate images (value set to 65%) 2013-06-09 03:13:02 +11:00
Charles Dang
0348e68de6 Use grayscale IPF for disabled tree view toggle button state 2013-06-09 01:11:42 +11:00
Charles Dang
7fe8cc5f84 Use grayscale IPF for disabled widget variations instead of specific images 2013-06-08 22:54:37 +11:00
Charles Dang
750d9d084a Used correct image paths for default toggle button's disabled state 2013-06-08 11:07:53 +11:00
Charles Dang
beb177e09b Made repeating button use opacity IPF for transparent versions (value set to 65%).
Thanks to bumbadadabum for pointing out I had forgot to do this
2013-06-07 02:48:41 +11:00
Charles Dang
ea56778b8f Use opacity IPF for transparent button images. Value set to 65% 2013-06-04 20:28:43 +11:00
Charles Dang
5211a99b1b Used regular as opposed to copper button variation images for default button 2013-06-04 20:18:04 +11:00
Charles Dang
b32ca5c390 Updated path for transparent version of default buttons 2013-06-03 05:33:21 +11:00
Charles Dang
929b07dc87 Bumped size by 1 for normal icon toggle button, tiny res, for consistency 2013-05-30 23:00:40 +11:00
Charles Dang
1bb0b4e28f Increased size of nornal icon toggle button a little. Prevents scaling on normal resolutions. 2013-05-30 22:51:29 +11:00
Charles Dang
bc63985554 Made icon toggle button/resize map dialog use new images 2013-05-30 17:20:30 +11:00
Charles Dang
09c899515d Made use of pressed and active overlay variations 2013-05-30 04:40:24 +11:00
Charles Dang
485eef1f7c Used grayscale imagepathfunction on disabled state overlays in absence of specific image 2013-05-30 04:18:45 +11:00
Charles Dang
6186222165 Made repeating button use new images 2013-05-30 03:04:40 +11:00
Charles Dang
55a5331967 Fixed typos 2013-05-29 22:05:13 +11:00
Charles Dang
a4b9d59e87 Used Add and Delete definitions for New/Delete ToD buttons 2013-05-29 19:55:02 +11:00