Commit graph

75 commits

Author SHA1 Message Date
demario-w
4604c949fa
Add 'k' hotkey to core management window from main screen
Fixes #8209
2024-01-22 16:30:39 +01:00
Subhraman Sarkar
18086e78ae
Hotkeys (#8249)
Shortcut keys for map editor
2024-01-20 19:32:31 -06:00
Pentarctagon
d1465a9eb9
Add basic achievements functionality. (#7237)
* Add basic achievements functionality.

This reads the mainline achievements.cfg and then all the achievements of each installed add-on.

This is intentionally handled separately from other WML loading so that:
a) All achievements and their status are able to be displayed on the main menu right after Wesnoth starts and regardless of which add-ons are active.
b) Add-ons can add additional achievements to other content, whether UMC or mainline. For example, a modification that adds more achievements for mainline campaigns.

Marking something as achieved is handled by the new [set_achieved] tag and whether an achievement has been completed can be checked via [has_achievement].

There is no attempt to prevent people from manually editing which achievements they've accomplished.

NOTE: These are *not* in any way related to Steam achievements!
2023-01-21 10:32:45 -06:00
Ferk
46233658e3 Zoom-in using "+"
This adds "+" for Zoom-in as an additional hotkey (without removing the previously set value).

The "=" key doesn't seem to work when pressing it from a keyboard layout such as German Qwerty in Windows. It's also against the user's expectations that if we accidentally press on "minus" causing the map to zoom out, the expectation would be for the opposite operation to be "plus".
2022-11-29 18:03:16 +01:00
Pentarctagon
d399324677 Revert "Changed and added hotkeys (#3157)"
This reverts commit efafebb1df due to negative feedback.

Resolves #6982
Resolves #6972
2022-08-26 11:24:26 -05:00
ancestral
efafebb1df Changed and added hotkeys (#3157)
Re-created hotkeys file.

Borrows heavily from https://r.wesnoth.org/t41525.

Most of the common commands now have single keystrokes on the keyboard in addition to their currently defined keystrokes. Almost everything remains the same, except the following has changed:

* Continue is now `C` instead of `T`
* Go to Leader is now `K` instead of `L`
* Kill Unit is now `DEL` instead of `X`
* Undo is now `Z` or `CTRL + Z` instead of `U`
* Redo is now `SHIFT + Z` or `CTRL + SHIFT + Z` instead of `R`
* Planning mode is now `ALT + P` instead of `P`
* Delete Action (Planning Mode) is now `BACKSPACE` instead of `H`
* Suppose Dead (Planning Mode) is now `X` instead of `I`
2022-08-01 14:59:39 -05:00
Steve Cotton
afd9bd1688 Remove the default binding for the "title screen tutorial" hotkey
I forgot this in the previous commit. Currently the engine doesn't
display a warning about binding to an unknown command, I'm considering
adding a warning for that.
2021-12-08 12:39:36 +01:00
Victor Sergienko
b4ef4c9b34 iOS: Touch-hex action added. 2018-10-28 18:21:54 +02:00
Victor Sergienko
aedc081b2e iOS: Touch interface implemented, and a RMB emulation of such on PC. 2018-10-28 18:21:53 +02:00
kallaballa
4f1a7a9faa Introduce surrender hotkey 2018-02-05 00:35:35 +01:00
Wedge009
0925aa7e0c Align default quit hot-key with conventions (fixes #2397)
Switch quit to title-screen from Ctrl+Q to Ctrl+W (OSX already uses Cmd+W) and quit-to-desktop from Ctrl+Shift+Q to Ctrl+Q.
2018-01-26 14:12:03 +11:00
Andreas Löf
92ca7fdb5e Fix #24681: Use composed hotkeys where appropriate and revert help to be ':'
This enables textinput events in SDL and adds handling of them. The events
are processed for hotkeys if the length of the hotkey string is 1 (which is the
case for all straightforward hotkeys).
2017-04-29 11:30:31 +12:00
Ryan Roden-Corrent
a58e595705 Add default hotkeys for map scrolling 2016-04-05 20:51:33 -04:00
Celtic Minstrel
24a54e1108 Show the non-rebindable shortcuts in preferences.
They can't be changed, but it will at least let people know that the key works for that command.
Currently they're just hard-coded. A more general solution would be possible, if there's
any chance that more non-rebindable hotkeys are needed.

This also removes Cmd+Shift+Q as a shortcut for Quit to Desktop on OSX.
2015-09-08 10:45:42 -04:00
Celtic Minstrel
c35387982c Generalize Quit to Desktop hotkey so it works in-game and at titlescreen 2015-09-07 14:52:00 -04:00
Andreas Löf
56eb59df5e Replace keycode with scancode and fix broken keybindings.
Broken keybindings are fixed byreplacing " " with "space".

Scancodes are tied to physical buttons on the keyboard and are
language independant.
2015-08-25 18:56:28 +12:00
Andreas Löf
2459e7db10 This reworks the hotkey system to rely on keycodes.
There is a new class introduced, hokey_base, that is the public
interface to the hotkey bindings. It is an abstract class that relies
on concrete classes hokey_keyboard and hotkey_mouse to do the device
specific hotkey work via the template method pattern.

There are two factory methods introduced, load_hotkey and
create_hotkey that should only be used to instantiate new objects.

This commit also changes the hotkey ":" and "+" to ";" respective "="
becausse ":" and "+" are not valid keycodes.
2015-08-25 18:56:28 +12:00
Chris Beck
2021a42d5b Add lua console
- Add an internal command logger to the lua kernel base, and expose
this.
- Redirect the internal lua `print` to the command logger.
- Add an external logger registration system to lua kernel, in
addition to the internal one.
- Add a lua console dialog which binds to a lua kernel base and
permits to review the contents of the logger and issue new commands,
and report errors.
- Add a hotkey binding to launch the lua console "`"
- Adds tab completion support to the lua console
2014-11-13 11:38:58 -05:00
Ignacio R. Morelle
2295b3b6d0 wmlindent pass 2014-10-11 00:55:26 -03:00
fendrin
e6256c28ee Default hotkeys for editor brushes(1-5) and terrain description(ctr+t). 2014-07-14 18:37:57 -04:00
fendrin
22c7025148 Resolved overlapping hotkey definitions.
Refresh editor display: ctrl+e ---> ctrl+d

New Map: ctrl+n ---> ctrl+m
2014-07-14 17:35:34 -04:00
fendrin
fe4064d774 Restored the old control scheme as the default 2014-02-07 20:05:20 +01:00
fendrin
3119d70e20 Change the default hotkey binding for the paint tool action.
This changes the binding from "d" to "p" to avoid conflicting with the
unit description one.
2013-12-28 12:45:22 +01:00
Bär Halberkamp
9ce2dfbc84 ran wmlindent 2013-12-20 19:59:12 +01:00
fendrin
b68ae75c4e Default bindings for the title screen hotkeys. 2013-12-06 18:50:57 +01:00
fendrin
4a8c66c9a4 default bindings for mouse button actions. 2013-11-27 02:25:49 +01:00
Alexander van Gessel
38b224c1ff Revert "Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old""
This reverts commit 23b72d6956.
2013-08-09 00:13:46 +02:00
Thibault Févry
23b72d6956 Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old"
This reverts commit 5fa5c03411, reversing
changes made to 06374c64ba.
2013-08-08 18:50:46 +02:00
Alexander van Gessel
0738a4e59c make reindent minus some wmlindent issues 2013-08-04 23:22:56 +02:00
flix
9d1dfe0638 Add possibility to kill unit under cursor
...with context menu in debug mode.
Also assign the hotkey "shift+k" for this action.
Patch by pl_kolek. See https://gna.org/patch/?3905
2013-06-09 21:50:48 +03:00
Fabian Müller
f5feb5cb2f Removed duplicate entry for the "editor-update-transitions" hotkey. 2012-10-27 17:21:27 +00:00
Fabian Müller
35b82080c4 Merged the editor hotkeys.cfg with the default one.
Having different config files for each scope is no longer supported
with the newly modified hotkeys system.
2012-10-26 12:40:17 +00:00
Gabriel Morin
192e7a017e Completely removed the waypoint functionality on 'w' key,
...since the whiteboard is now an adequate replacement.

Fixes bug #17060
2011-09-08 00:52:38 +00:00
Gabriel Morin
df4ba3108c Patch #2640 by tschmitz
* Adds new Suppose Dead feature to the whiteboard, temporarily bound
  to 'i' key.

* Fixes wrong use of std::equals
2011-04-17 22:56:44 +00:00
Mark de Wever
71c0db2a12 Strip trailing whitespace. 2011-03-06 18:27:59 +00:00
Mark de Wever
aa723cd7b1 Change titlescreen reload hotky to F5 for the Mac.
Also some minor changelog cleanups. (Applies patch #2531 including extra
information regarding the change.)
2011-02-17 20:57:39 +00:00
Mark de Wever
19490f0a31 Implement the helptips. 2011-02-12 21:36:42 +00:00
Steven Panek
9936b58d27 Ran wmlindent. 2010-11-25 10:06:26 +00:00
Gabriel Morin
ef81324150 Whiteboard: add a new "Execute all actions" command,
...bound to ctrl+y by default, and added to the actions (not context)
menu. It executes actions in sequence until the first attack, or until
an action fails to execute. Fulfills the feature request of bug
#16807.

Simplified some return type in the process in side_actions: returning
iterators wasn't really useful for the execute functions.
2010-10-10 03:33:24 +00:00
Gunter Labes
b7ba801aad changed the refresh cache hotkey to ctrl+F5 for macs (fixes bug #16744) 2010-09-25 18:02:34 +00:00
Mark de Wever
d3857f4aea Fix an error in my last commit. 2010-09-25 09:21:06 +00:00
Mark de Wever
3adf224851 Changed the refresh cache Mac hotkey to CMD+F5.
(Fixes bug #16744)
2010-09-25 09:13:42 +00:00
Eric S. Raymond
e7d337a676 Reindent mainline. 2010-09-23 13:04:56 +00:00
Mark de Wever
0e5225043a Add new hotkeys to the title screen buttons. 2010-09-20 19:29:48 +00:00
Mark de Wever
d8c362bff8 Add a F5 hotkey to the gui2 title screen.
This makes 2010-09-02T20:02:54Z!alinkmaze@gmail.com no longer needed and that commit will be
reverted with the next commit.
2010-09-12 20:07:34 +00:00
Gabriel Morin
13b9f24ad6 Whiteboard: moved toggle hotkey to p instead of shift+p 2010-08-23 19:55:05 +00:00
Gabriel Morin
e3c4d5388f Added shift-p hotkey to turn the whiteboard on and off.
Commented out the delay shroud updates hotkey.
2010-08-15 09:00:12 +00:00
Gabriel Morin
163468cabe Whiteboard: changed keys to move actions up and down the queue...
...to pgup and pgdown, since 1, 2 were taken but not listed in
hotkeys.cfg
2010-07-07 05:42:35 +00:00
Gabriel Morin
9d3268d9fb Whiteboard: hotkeys for bumping actions up and down the queue,
...not functional yet.
2010-07-06 02:32:40 +00:00
Gabriel Morin
16efa6f710 Whiteboard: delete latest defined action with 'h' key.
(Choice of hotkeys is temporary.) Also, renamed a method.
2010-06-19 09:19:44 +00:00