Commit graph

1878 commits

Author SHA1 Message Date
Charles Dang
67e3c76fca GUI2/Addon List: restrict markup to name and installation status fields
We don't want markup in any of the other fields. I still need to find a slightly better solution for the name
field, though. We don't want users to be able to use markup unnecessairly, but we do need markup to highlight
the names of ready-to-upload addons.

This fixes warnings about unescaped ampersands in the Author field.
2017-07-27 01:08:24 +11:00
Charles Dang
3d8dbde03b GUI2: strip trailing spaces from utility macros
[ci skip]
2017-07-26 22:13:13 +11:00
Charles Dang
0b5ef105c9 GUI2: allowed window maximum_width/height keys to be validated as formulas
[ci skip]
2017-07-26 22:13:13 +11:00
Charles Dang
e11cc5f522 Format forum URLs correctly
[ci skip]

* Use https:// over http://
* Use 'forums' over 'forum'
2017-07-26 22:03:02 +11:00
Charles Dang
76173a9c72 GUI2/Panel: remove border from small-res box_display_no_blur_no_border definition 2017-07-26 22:02:48 +11:00
gfgtdf
fbc7652a0c fix panel_box_display.cfg window_width,window_height 2017-06-19 20:44:37 +02:00
gfgtdf
1917078900 fixup 96fecea66d
that commit onyl changed the resolution choosing procedure for windows
not for widgets which made that code more complicated. This commit also
addsa  workaround for < 800x600 widgets to the c++ code so that we no
longer have to think about this in the .cfg files
2017-06-16 02:03:33 +02:00
gfgtdf
96fecea66d make [resolution] window_width/height, the minimum required window size 2017-06-13 20:25:47 +02:00
Celtic Minstrel
5d43078ba4 [WIP] Implement IME support for GUI2 textboxes (#1758)
Implement IME support for GUI2 textboxes
2017-06-11 16:47:46 -04:00
Ignacio R. Morelle
80a59fbd8b gui2/game_version: Try to not overflow tab selector space
The previous commit adding a new library to the Library tab causes a
vertical scrollbar to appear there and somehow make the tab selector
overflow and get a vertical scrollbar. Vultraz suggested this fix and
seems to be aware that it doesn't solve preexisting issues with overlong
tab labels/translations.
2017-05-25 02:23:02 -04:00
Charles Dang
2f7165d061 GUI2: update prompts about saving passwords
[ci skip]
2017-05-23 10:06:58 +11:00
Celtic Minstrel
72b98ad7e1 Unit Preview Pane: Remove a relic of an older implementation 2017-05-14 10:09:58 -04:00
Charles Dang
5cbe50b765 Game Load: improvements to leader stats display 2017-05-14 08:54:42 +11:00
Celtic Minstrel
cbc4af1a20 Add blinking text cursor to focused textbox
Unlike the previous implementation, the blinking cursor now only applies
to the focused (frontmost) window.
2017-05-12 15:34:16 -04:00
Celtic Minstrel
99693041b1 Add current gold and troops count to Load Game dialog (resolves #4180)
I'll let @vultraz pretty it up a little if he wants.
Note that old saves won't show this info; it'll only show up in new saves.
It might show up for old saves if you clear your cache, though.
2017-05-11 16:00:50 -04:00
Celtic Minstrel
6ea57e78f4 Game Load: Factor out listboxes to reduce overall indentation level 2017-05-11 16:00:49 -04:00
Charles Dang
bf60a0a209 Custom Options Tree: allow 'no mods' label to grow
[ci skip]

Allows it to fill all available space, especially on low resolutions.
2017-05-06 14:20:02 +11:00
Celtic Minstrel
4f3d7507e8 Prevent scrollbar in MP Create 1024x768 (usually)
A scrollbar can still sometimes appear for scenarios that have custom options.

[ci skip]
2017-05-05 23:03:56 -04:00
Charles Dang
a31f62b8bc Editor New Map: set the title based on whether a new map or scenario is being created 2017-05-02 13:10:43 +11:00
Charles Dang
4d23e8359e SP Options Configure: hide option tree toggle for this dialog
[ci skip]
2017-04-30 21:28:15 +11:00
Charles Dang
b0f91e7d2e GUI2: removed unused Campaign Settings dialog
This was a dialog used early in 1.13 during the SP/MP codepath unification to configure certain options.
The modification selection is now built into the Selection dialog, and we decided not to enable other options
like Era selection in SP. The only option we might look to restoring in the future is the "show_connect"
option, but that requires some additional code elsewhere and probably won't be used anyway.
2017-04-30 21:15:39 +11:00
Celtic Minstrel
819fa75330 Some improvements to tooltip placement 2017-04-28 15:32:37 -04:00
Celtic Minstrel
06450e8bb6 Split tooltip definitions into separate files 2017-04-28 14:57:19 -04:00
Charles Dang
07d418f543 MP Change Control: cleaned up internal layout
This seems to have also fixed a bug... when testing before the changes, the Nickname list didn't appear, but
after these changes it does.
2017-04-25 12:41:24 +11:00
Celtic Minstrel
b9a35fa870 Allow changing theme while in a game 2017-04-24 11:01:10 -04:00
Charles Dang
02cf739db7 MP Staging: better size ratio for chat and players list at low resolution 2017-04-22 06:59:19 +11:00
Charles Dang
e36023aaab MP Staging: fixed button placement on low resolutions
[ci skip]
2017-04-22 06:49:44 +11:00
Charles Dang
a1806c2d31 GUI2: refactored Custom ToD dialog
In addition to an interface update, this also makes the dialog work better with the editor, with improvements
such as restoring the currently selected ToD when the dialog exits (until we implement the saving of changes
made within the dialog) and opening to the same.
2017-04-19 12:53:23 +11:00
Charles Dang
8b98e82b34 Added GUI_FILLER_ROW macro 2017-04-19 12:47:09 +11:00
Charles Dang
0f585a5807 GUI2/WML Message: gave grow priority to text over options 2017-04-17 11:00:31 +11:00
Celtic Minstrel
bb535fe452 MP Staging: A few more tooltips 2017-04-16 11:18:04 -04:00
Celtic Minstrel
3af50b919c MP Staging: Request tooltip on label overflow for leader/faction name
Unfortunately the underlying mechanism doesn't seem to work though...
2017-04-16 11:14:47 -04:00
Celtic Minstrel
e5ff9f9584 (Multi)menu Buttons: Reduce default size at low resolutions
This fixes the scrollbar in MP Staging, but causes the buttons to be
too small in some cases (eg the resolution button in prefs)
2017-04-16 11:07:54 -04:00
Celtic Minstrel
d54c8ad40e MP Staging: Add tooltip to bizarre arrow buttons 2017-04-16 10:39:39 -04:00
Charles Dang
9b326e21db Menu Button/Multimenu Button: re-enable text markup (fixup 1ea440fed) 2017-04-17 01:39:11 +11:00
Celtic Minstrel
c294484cda MP Staging: New layout for resolutions < 1024x768 2017-04-16 10:30:05 -04:00
Celtic Minstrel
65deb19bcc Addon List: Limit width of version column 2017-04-16 10:30:03 -04:00
Charles Dang
4f50559af9 GUI2 WML: consistent styling, don't use strings for bools 2017-04-16 17:19:03 +11:00
Charles Dang
70e607d04a Preferences Dialog: make hotkey category multimenu fill all available space as requested 2017-04-16 17:05:09 +11:00
Celtic Minstrel
1793133a59 Fix menu_button widget trying to be two things at the same time.
The menu_button is now only a drop-down menu that supports a single selection.
A new multimenu_button widget supports a drop-down menu with multiple selections.
The new multimenu_button widget displays its current selection while not open.
2017-04-16 00:08:50 -04:00
Celtic Minstrel
cb333dbfdf Addons List: Hide some columns on lower resolutions 2017-04-15 21:34:37 -04:00
Celtic Minstrel
4fbc943612 Addons Manager: New layout for resolutions < ~1280x800 2017-04-15 18:24:25 -04:00
Charles Dang
1ea440fed3 Menu Button: fix overlap of long text and down arrow (bug #25320) 2017-04-16 07:09:02 +11:00
Charles Dang
96ef6b1f5a MP Create Game: ensure campaign icons always line up (bug #22956) 2017-04-16 06:35:25 +11:00
Charles Dang
120aa0e6ca Story Viewer Label: ensure sufficient top padding for text
[ci skip]
2017-04-16 00:31:32 +11:00
Charles Dang
e0751c1f54 GUI2: implement ability to set label alpha 2017-04-13 04:01:01 +11:00
gfgtdf
75c21815f6 allow multi_page to contain differnt types of pages
although stacked_widget supports similar functionality this is currently
not easily doable from the lua gui2 api. In particular
1) stacked_widget cannot add pages dynamically
2) multi_page can only contain one type of widget.
3) a stacked_widget inside a multi_page is ineffective since it
generates many unused widgets
4) a multi_page inside a stacked_widget is just unhandy to use
2017-04-12 15:14:58 +02:00
Charles Dang
c834d99556 Preferences: convert hotkey category list to a dropdown w/ checkboxes
This allows more space for the hotkey list.
2017-04-12 21:12:47 +11:00
Charles Dang
f0dffab55a Tree View Node: rename tree_view_node_icon to tree_view_node_toggle
This better reflect its function
2017-04-12 17:00:03 +11:00
Jyrki Vesterinen
aa762995e2 Add tooltips to add-on manager buttons 2017-04-11 21:32:53 +03:00