Commit Graph

2640 Commits

Author SHA1 Message Date
Subhraman Sarkar
bd6f250c12
canvas: draw circle using cairo (#10007)
the circle is now antialiased using cairo.
2025-03-10 16:04:49 -04:00
Subhraman Sarkar
50fe386aa7 celes theme: listbox header definition 2025-01-12 14:09:31 +05:30
Subhraman Sarkar
a47a4d1fc4 titlescreen: preference and button for closing tips panel 2025-01-09 09:02:42 +05:30
Subhraman Sarkar
6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30
Subhraman Sarkar
0302dd8601 tutorial: UI improvements
uses portraits in the character selection and single click selection on pictures instead of buttons
also adds a dark background to hint messages to make them easier to read
adds arrow markers in the beginning on the units
2024-11-02 12:56:29 +05:30
doofus-01
033012219e
Add Exif tags to images (#9254)
Artist & copyright Exif tags track the copyright info in images, replacing what used to be tracked with "copyrights.csv".
2024-08-25 20:18:16 -07:00
Iris Morelle
3a8c7303e7
editor: Implement a Show Tool Information toggle option
This allows permanently hiding the obnoxious help text tooltip that
constantly dances between the top and bottom of the screen depending
on what you're doing in the editor.

Icons provided by babaissarkar.
2024-08-01 13:17:05 -04:00
Oleksii
313e83f58e l10n: Add Ukrainian Logo 2024-07-17 08:38:22 +10:00
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
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
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
95c62173a3
Bengali logo for Wesnoth (#8513)
* wesnoth logo localized to bengali

* update copyright
2024-03-07 18:26:50 +05:30
Toom
925dd0d3a4
Add a composite hero/leader ellipse, closes #8011 closes #6258 (#8375) 2024-02-10 14:29:32 -06:00
pentarctagon
e3ee472352 Remove transparent padding from the status icon image files.
Just removing transparency from all images on the top bar and side bar causes other issues, particularly with the unit sprite and the clock icon alignment.

Fixes #8335
2024-02-04 10:56:03 -06:00
Elvish_Hunter
a9d97b6a82 Ran woptipng on the two new status icons 2023-02-21 21:19:51 +01:00
Elvish_Hunter
7cfd699e9d
Add icons for invulnerable and unhealable states (#7363) 2023-02-13 10:01:35 +01:00
doofus-01
dc820341c5
1.17 raised terrain (#6975)
* floodfill high/low terrain

* stone and wooden transitions
2022-09-05 19:41:07 -07:00
walodar
6eb2246eff
Colored attack type icons, resistances and movement costs. Reordered resistances. (#5264)
Using colors to make relevant information stand out at a quick glance.

The six attack type icons are recolored using the six equidistant hues cyan, green, yellow, red, magenta and blue, with the same saturation and lightness as the old icons. The images are optimized with woptipng.

Resistances and movement costs are colored using a gradient from red to green, like the defense values.

The resistance table in the help browser now also shows the attack type icons.

Previously, the resistance table was always ordered alphabetically by their original English names (not their translation, unlike the terrain modifiers). Now, the order is set to blade - pierce - impact - fire - cold - arcane.

These changes are made in all relevant areas, including the help browser, tooltips, the sidebar and dialogs.

Missing icons are handled by replacing them with a blank image scaled to the same size.
2022-08-01 17:57:46 -05:00
Tommy
178a09c2cc Convert images/misc/single-pixel.png to RGB format
There was a bug with SDL_image reading it wrongly.
2022-07-25 02:16:15 +12:00
Tommy
163c6e3949 Add a single-white-pixel PNG, for hardware stretching
It can be used to draw rectangles and lines, particularly when
passed via drawing_buffer_add as this only supports rendering
textures, not other drawing operations.

It can be loaded as "misc/single-pixel.png".
2022-07-21 12:16:04 +12:00
Iris Morelle
fc3c4a4920
gui2: Make dropdown button light source consistent with other buttons 2021-09-25 11:22:06 -03:00
Charles Dang
743323414f Addon Manager: fixed erroneous 2px horizontal offset in Update button images 2021-08-16 17:14:24 -04:00
Iris Morelle
71c17a3b65
Add a special "broken" lock icon
Trivial edit of LordBob's open lock icon together with the Close cross
icon in red to make it highly conspicuous.
2021-06-19 07:40:13 -04:00
Iris Morelle
3eba42bcb8 Add lock icons by LordBob
[ci skip]
2021-05-21 19:51:43 -04:00
Steve Cotton
4a43d00522 Show a two-color tennis ball orb for the disengaged state (#5155)
As the disengaged state is part-way between the "partial" and "moved" states,
the orb has parts in each color. On the minimap these units are shown in the
partial color (which is also the color that would be used before this change).

This will match the mounted Quenoth units' "disengage" skill, when they
can still move but can't attack. It should also trigger for some UMC abilities
that get extra moves after a character attacks.

During testing, I found that TSG allows some of the bandits to attack on the
first turn of the bandit branch. There's no gameplay change there, but the orbs
make it much clearer that some units can still attack.

I think there are already too many preferences for orbs, so reused the existing
settings for the colors. A new "show disengaged orb" preference is added, which
when disabled shows the old partial orb instead.

Update the orb and ellipse sections of doc/manual/.

Notes about how I created the new orb image:

* create a color range to_ellipse_red with rgb=FF0000,FF0000,000000,FF0000
* wesnoth --render-image 'misc/orb.png~RC(magenta>to_ellipse_red)' images/misc/orb-ellipse-red.png
* open the orb.png and orb-ellipse-red.png images as layers in Gimp, add a layer mask to both of them
* use the layer mask to get each pixel from exactly one of the layers
2021-02-13 18:28:33 +01:00
nemaara
acc96b165d Title screen: move language button to icon 2019-11-15 23:00:46 -05:00
Iris Morelle
d7f2595393 gui2/text_box: Implement I-beam cursor
This cursor is active when the widget has the mouse focus. You know,
like textboxes are wont to do anywhere else. Took long enough, although
there was an interaction issue with tooltips fixed in the previous
commit.

I still need to figure out how to make this work with GUI1 textboxes
(e.g. in-game console).

The colour version of the cursor was kindly provided by LordBob, and the
B&W version is my own.
2019-11-13 00:03:38 -03:00
Nils Kneuper
31c922c15e updated Turkish translation 2019-06-24 22:15:49 +02:00
Nils Kneuper
8491204c64 updated Turkish translation 2019-06-15 17:33:52 +02:00
josteph
08c469561c Sidebar: Show attack range and damage type icons 2019-02-24 12:02:28 +00:00
Edward Chernenko
4384bd550a optipng run: ./utils/woptipng.py -d 15 images/
It has been a while since the last optipng run (it was in 2015),
and many non-optimized PNG files have accumulated in the repository.

288 of 1666 files optimized, 258992 bytes reduced to 156258 bytes; -102734 bytes, -39.66%

To avoid unnecessarily increasing the size of Git repository for minor
size reductions, we skip images that weren't reduced by at least 15%.
2019-01-02 19:26:48 +02:00
Charles Dang
471c9e876a Addressed a large chunk of the whitespace issues from #2613
[ci skip]
2018-03-09 11:37:00 +11:00
Charles Dang
39c280b37c Tweaked dropdown button background images
[ci skip]

Gives them a slight gradient.
2018-02-23 15:37:18 +11:00
Charles Dang
c75ca87517 GUI2/Addon List: improved a bunch of stuff related to inline control buttons
* Flipped the arrow on the Update icon set to point downwards, since it's a download operation.
* Renamed existing small Update icon set Publish, and added downwards version to replace Update.
* Renamed all addon manager icons and their respective button definitions to be clearer.
* Moved unused small icon versions to their own subfolder.
* Added separate Publish inline button to image list. This is now used in all cases to publish,
  regardless of whether the addon has been uploaded previously or not. Prior to this, the Install
  button was used for non-published addons, and the Update one for published ones. This means the
* Refactor addon_list inline button setup to be clearer.
* Made inline Uninstall button display in all cases where an addon was installed, instead of just
  INSTALLED and NSTALLED_UPGRADABLE. It will not display if a publishable addon has not been
  published, however.
* Changed is_local check to match the ADDON_INSTALLED_LOCAL_ONLY. I figured this is a bit more
  robust. TODO: do the same in the addon manager itself?

Art assets credit to @Lordbob
2018-02-10 21:26:33 +11:00
pentarctagon
6976091626 Renames the Dunefolk(formerly Khalifate) units based on forum discussions.
This commit actually changes the contents of the unit files, and adds deprecated.cfg for all the old IDs.
2018-02-04 11:46:50 +11:00
pentarctagon
5b31b87f6a MP: Renames the Khalifate to Dunefolk.
Part of an effort to make the faction better fit into Wesnoth. See:
https://forums.wesnoth.org/viewtopic.php?f=12&t=47643
https://forums.wesnoth.org/viewtopic.php?f=12&t=47703
2018-01-19 17:28:40 -05:00
Charles Dang
0737736d3c MP Lobby: completely redesigned game entry layout
I did one of these about a year ago, but in the time since I realize it was honestly really crowded
and had some fundamental problems (for example, the listbox would get a horizontal scrollbar if a game
with a lot of mods was started).

This time around, I've focused on simplicity. The main changes:
* The minimap has been made 10 px larger. This was to accommodate the 5 px borders, so now the actual
  map image is 72x72.
* Game name and scenario name have swapped places, and the latter is now larger.
* Game names are no longer colorized based on the number of vacant slots or whether you can observe
  the game or not.
* The Turns/Slots label coloring has been toned down and been made larger. It is now either white
  (game has started), green (vacant slots available), or yellow (vacant slots available for reloaded game).
* The Turns limit  no longer displays "/-" for games with unlimited turns. Now you just get "Turn n".
* Due to 1bfa170856, proper names of all missing content is displayed. I also got rid of those
  "Unknown Scenario"/"Unknown Campaign" labels in favor of a simple red-color game type token (S or C),
  respectively.
* All game setting icons have been moved to a tooltip attached to an info icon, except those for
  Password Required and Observes Allowed.
* The info icon will also change color (and its tooltip display a message) if the player need to download
  additional content to join that game.
2017-10-29 16:55:42 +11:00
Charles Dang
097e1e37ef Removed old GUI1 MP lobby background image
[ci skip]
2017-10-11 12:58:59 +11:00
Nils Kneuper
d14ef5a743 updated Italian translation
also removed outdated logo file
2017-05-20 14:52:40 +02:00
Charles Dang
bba5454443 Made README files Markdown
[ci skip]
2017-04-28 15:07:06 +11:00
Charles Dang
396b33c8a9 Story Viewer: much progress
Most functionality is implemented now, except (most notably) floating images.
2017-03-28 01:07:52 +11:00
Charles Dang
42e2486d8a Forgot to commit image changes with 441b0f76 2017-03-14 11:11:22 +11:00
Charles Dang
b79f04cf71 Fixed 2-pixel offset in most addon button images 2017-03-12 19:43:58 +11:00
Charles Dang
7ed68f2e42 GUI2: experimental new design for toggle panel selected/focused states 2017-03-12 12:17:31 +11:00
Charles Dang
0702fe32a3 Rest of the set of Publish/Delete icon buttons
Includes corrected base graphics (has white background).
2017-03-10 13:12:02 +11:00
Charles Dang
f0a1698b20 New base graphics for Addon Manager publish/delete buttons (missing state variants) 2017-03-09 00:36:14 +11:00
Charles Dang
23884387bd Added an image for the MP Staging color menus I apparently never committed... 2017-02-25 01:00:50 +11:00
Charles Dang
2f5affc2ec Addons Manager: UI improvements and added a background (higher res version pending) 2017-02-24 11:45:54 +11:00
pentarctagon
b991c320a4 Delete additional resources 2016-12-18 23:07:11 -05:00