Commit graph

1878 commits

Author SHA1 Message Date
Subhraman Sarkar
0b4611abb4 Fix scrollbar bug when not initialized with text, add link click sound 2024-09-23 19:49:44 -04:00
Subhraman Sarkar
8ab6d2458a help browser: fix weird spacing and alignment issue in treeview
thanks to Vultraz for helping with the fix
2024-09-23 19:49:44 -04:00
Subhraman Sarkar
72f1f0007c new definitions for label and new font size macros 2024-09-23 19:49:44 -04:00
Subhraman Sarkar
78ca6f50a9 help browser changes
1. back/forward button functionality
2. some ui adjustments
3. use rich_label
2024-09-23 19:49:44 -04:00
Subhraman Sarkar
f318ac0d11 various rich_label bugfixes 2024-09-23 19:49:44 -04:00
Charles Dang
ee82387c3d Some build fixups to reflect changes since the help commits were originally made 2024-09-23 19:49:44 -04:00
Charles Dang
1b20d04d07 Help Browser: removed help topic padding 2024-09-23 19:49:44 -04:00
Charles Dang
b3babea922 Help Browser: fixup topic title layout 2024-09-23 19:49:44 -04:00
Celtic Minstrel
ada7b50403 Help Browser: Show topic title 2024-09-23 19:49:44 -04:00
Charles Dang
6144b5e778 Help Browser: properly implement toggling by clicking the book icons 2024-09-23 19:49:44 -04:00
Charles Dang
28dd0f8a68 Help Browser: implemented viewing of sub-sections/topics 2024-09-23 19:49:44 -04:00
Charles Dang
b6079891a8 Help Browser: improved layout stability and added next/back buttons (non-functional, of course) 2024-09-23 19:49:44 -04:00
Celtic Minstrel
38bfb1838a Help Browser: Actually show the correct topics with the correct icons
This also fixes the lag when opening help and makes the topic text appear.
(The topic text is not parsed at the moment, though.)
2024-09-23 19:49:44 -04:00
Subhraman Sarkar
355ed849ee scroll_text: make components look more integrated 2024-09-18 23:01:46 -04:00
Subhraman Sarkar
54535fca3b scroll_text: markup and link awareness support
support for copying and partial editing only.
this does not make multiline_text a rich text editor.
2024-09-18 23:01:46 -04:00
Subhraman Sarkar
6023eb338c chatbox: use scroll_text so text can be copied 2024-09-18 23:01:46 -04:00
Charles Dang
1011c0f58a GUI2/Tab Container: clean up unnecessary grid 2024-09-18 20:13:32 -04:00
Charles Dang
3b07a7c76e MP/Method Selection: new design 2024-09-18 19:42:45 -04:00
Charles Dang
fc1409e2d1 MP/Staging, Join Game: improve sidebar layout 2024-09-18 16:09:07 -04:00
Subhraman Sarkar
14732806c9 Preferences: move the Apply button and disable it unless needed
this also makes it obvious that the Apply button is used only for UI theme selection, and is not a global Apply button
2024-09-11 15:07:49 -04:00
Charles Dang
e814a48f40 GUI2/File Dialog: clean up definition 2024-09-09 09:09:22 -04:00
Subhraman Sarkar
adef779ed9 unit type editor: various ui improvements and bugfixes
1. race/alignment/attack damage type/attack range show corresponding icons
2. attack damage type/range now use comboboxes for custom dmg types/ranges
3. quit confirmation added to cancel button so that user doesn't accidentally lose their data
2024-09-06 09:02:05 +05:30
Subhraman Sarkar
6980ad04d6 gamestate inspector: use uneditable scroll_text instead of scroll_label
allows text to be selected and copied
2024-08-14 12:03:39 +05:30
Charles Dang
44db56d767 MP/Staging, Join Game: fixed some alignment and formatting issues 2024-08-11 17:00:21 -04:00
Subhraman Sarkar
64caa4acda
Allow quick reload of gui2 themes (#9117)
* New "Apply" button in preferences dialog that is used to quickly apply the GUI2 theme, no restart needed.
* gui initialization reorganized a bit. gui2::init() now responsible for reading themes from file only. Actual theme switching and activation done by gui2::switch_theme(). preferences dependency removed from gui and moved to caller of gui2::init(). gui2 tests updated accordingly.
2024-07-30 07:59:54 +05:30
Subhraman Sarkar
2660c0e086 new ui theme: modern (titlescreen only atm)
Design idea and concept art: Dalas
Implementation: babaissarkar

Co-authored-by: Dalas121 <33790750+Dalas121@users.noreply.github.com>
2024-07-16 13:07:57 +05:30
pentarctagon
f0991ec9c1 remove use of the config directory
the credentials and lan config files will now use the userdata folder
2024-07-08 17:42:20 -05:00
Subhraman Sarkar
9496dd4edf add po hint 2024-07-04 02:31:47 +02:00
Subhraman Sarkar
b6e8142780 use correct font for tick character (#9055) 2024-07-04 02:31:47 +02:00
Subhraman Sarkar
103b80ff01
Editor enhancements (#8903)
Map/Scenario Editor

* Rename Load Map to Load Map/Scenario (since it can load both), Edit Scenario to Edit Scenario Settings, Save Map to just Save.
* Rearrange menu order
* Add icon for the preferences menu item (used the preexisting settings.png icon)
* Open folder correctly at Add-on's scenario directory instead of editor/scenarios. (#8910)
* Show Save Scenario As only for Scenarios
* Use the settings.png icon for Preferences menu item
* Add functionality to "Loyal" checkbox (Unit tool -> Place unit -> Right click menu) (#8445)
* Show warning when maps are saved in scenarios folder or vice versa (#8911)
* Unit List moved to Units menu from File menu to reduce some pressure from the latter.
* Status Table menu item disabled since it does nothing. (Should be reenabled once the functionality has been added.)
* Improve reload functionality in Editor (F5). Reload happens directly from memory and no temp files are needed. Also, the undo/redo stacks will be preserved. (#9024)

Time Schedule Editor

* Browse buttons now set wesnoth style paths instead of just pasting the absolute path returned by the file dialog
* Change text boxes from inactive to uneditable.
* Code generation improvements
* Add copyright notice to tod_new_schedule
* Confirmation messages
* Preview buttons for image and sound files and new icons for the preview button (2 sets : preview image and preview sound)

Unit Type Editor
 * Confirmation messages
 * New icons for the preview button (2 sets : preview image and preview sound)

Add-on menu
 * Two new menu entries for (1) opening the Add-on selection dialog, (2) opening the folder corresponding to the Add-on
The open add-on folder option shows a GUI2 file dialog at the add-on's folder which can be used to open any file. If it is a loadable map/scenario it will be opened in the editor, otherwise the OS's default application for that file will be opened.

File Dialog
 * Redesigned with new icons
 * New Open External button that opens selected file/folder in the platform's default application (independently of what pressing Open would do). This could be used to quickly open a folder or preview the file before actually selecting it.
 * Extension checking and filename validation. (See #8911)
2024-06-29 21:56:54 +05:30
pentarctagon
291be986f6 Revert "GUI2/Addon Manager: make addon id more prominent, debug-only"
This reverts commit 78620c7d61.
2024-06-25 19:18:42 -05:00
Subhraman Sarkar
43f5644e36
Rich Text Label widget for Help Browser GUI2 port (#8655)
A rich text label widget that can show text marked up with help markup.
Also includes the GUI Test Window, accessible in the title screen after launching wesnoth using --clock option. It can be used as dialog template/example or as a place to test GUI2 code.
2024-06-06 16:33:37 +05:30
Subhraman Sarkar
5d06a8f463 putting into test textdomain so schema CI check can suceed 2024-05-27 19:41:31 +05:30
Wedge009
e3aeab3f27 Game version dialogue: Don't mark links for translation.
[ci skip]
2024-05-26 21:27:34 -04:00
Charles Dang
78620c7d61 GUI2/Addon Manager: make addon id more prominent, debug-only
It wasn't visible enough for people for whom it was useful, and too visible for people for whom it was not.
2024-05-26 18:18:11 -04:00
Subhraman Sarkar
da7e57422e
make sure bullets in about dialog use a font that has those character (#8921) 2024-05-26 11:29:07 +05:30
Steve Cotton
c2072f201d gui/language_selection: Rephrase text about becoming a translator
The link with details about individual compaigns is useful to players,
even if they aren't looking to become translators. So move it upwards.

The text about first-time players seemed confusing to me, as the choice
is already limited to languages that the player can read. Reworded it,
but after discussion in the PR, neither version was better than just
removing it.
2024-05-26 04:09:34 +02:00
Charles Dang
6c885c5db4 GUI2/Story Screen: only use area between images for Skip text 2024-05-25 02:45:42 -04:00
Charles Dang
310919b464 Fixup b548e7348d 2024-05-25 02:44:26 -04:00
Charles Dang
ebc3953e8b GUI2/Unit Create: increased list padding 2024-05-25 01:14:28 -04:00
Charles Dang
b548e7348d GUI2/Preferences: increased padding in hotkeys list 2024-05-25 01:14:15 -04:00
Charles Dang
91287d0fbf GUI2/Preferences: bumped max height slightly 2024-05-25 01:13:48 -04:00
Charles Dang
5e3a86f7ab GUI2/Game Load: refined design for the umpteenth time 2024-05-25 00:57:27 -04:00
Charles Dang
fb78528f2c GUI2/Story Viewer: fixed controls moving with long story sections 2024-05-25 00:48:20 -04:00
Charles Dang
4cb9df8e6c GUI2/Story Viewer: refine recent design updates, fix some layout issues 2024-05-25 00:26:11 -04:00
Subhraman Sarkar
9b38089db0
Story screen redesign (#8510) 2024-05-24 19:29:46 +05:30
Subhraman Sarkar
92d66554dd
UI : About dialog (#8803)
* Redesigned the version dialog to serve as a general purpose About dialog.

* Credits button removed from title screen

* Moved community dialog contents to about dialog as new tab

Co-Authored-By: Pentarctagon

* Bugfixes to the tab_container widget

* Success indication mechanism on copy buttons
2024-05-21 09:43:32 +05:30
Subhraman Sarkar
336226d198
bugfixes for unit type editor (#8846)
* bugfixes for unit type editor

1. accept space in unit type id
2. don't write translated string to generated wml
3. add textdomain at the top of the generated file
4. fix bad key in generated attack block
2024-05-12 14:41:28 +05:30
Subhraman Sarkar
03a46f1d7c
Combobox, Tab Container and Editability in Text Box (#8390)
* new combobox and tab container widgets
* ediability in text box via the editable key
2024-05-06 09:56:44 +05:30
pentarctagon
6d12b17d95 add tooltip. 2024-04-27 00:55:24 -05:00