1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 23:49:53 +00:00
Commit Graph

183 Commits

Author SHA1 Message Date
Zeno Rogue
062fb577b2 fixed a bug with clicking lists in some dialogs 2023-12-12 20:09:19 +01:00
Arthur O'Dwyer
62629f3e70 Change static const to static constexpr wherever possible
Since we require C++11, most of these consts can be constexpr.

Two `static const ld` remain non-compile-time-evaluable because
they depend on the runtime `log` function. One `static const cld`
remains non-compile-time because `std::complex<T>` doesn't become
constexpr until C++14.
2023-08-23 09:47:28 -08:00
Zeno Rogue
fd1be4beb8
Merge pull request #341 from Quuxplusone/override
Consistently apply `override` (and not `virtual`) to overriding virtuals
2023-08-22 19:56:17 +02:00
Arthur O'Dwyer
28880f2985 Consistently apply override (and not virtual) to overriding virtuals
Three functions were missing `override`, triggering `-Wsuggest-override` on Clang.
Many functions had redundant `virtual ... override`.
2023-08-21 10:23:48 -07:00
Arthur O'Dwyer
ced3bbcad4 Qualify calls to format
C++20 introduces `std::format` and we `using namespace std`,
so some of these would be ambiguous in C++20.
2023-08-21 10:18:44 -07:00
Zeno Rogue
01748ac77b more elegant matrix display 2023-08-15 17:25:00 +02:00
Zeno Rogue
610d64d22a dialog:: more intuitive rotation hotkeys 2023-08-15 17:08:41 +02:00
Zeno Rogue
a5ada45164 dialog:: isitem now knows diMatrixItems 2023-08-15 17:08:25 +02:00
Zeno Rogue
b9eac3f6ae fixed addInfo to addHelp in matrix_dialog 2023-08-15 15:39:00 +02:00
Zeno Rogue
53324a9eeb dialog:: made editNumber return number_dialog 2023-08-15 10:54:36 +02:00
Zeno Rogue
3e1228b7c7 dialog:: in 2D matrix dialog, show degree unit, and do not negate 2023-08-14 17:44:22 +02:00
Zeno Rogue
dff8db44b0 rotate immediately when editing models::rotation 2023-08-14 17:42:15 +02:00
Zeno Rogue
3eb2813667 extra_options and reaction now work in matrix dialog 2023-08-14 16:59:46 +02:00
Zeno Rogue
ea193d23b1 dialog:: made dialog matrix more intuitive for anims::movement_angle 2023-08-14 10:52:17 +02:00
Zeno Rogue
9ab2b2bbd8 dialog:: mouse control in matrix dialog 2023-08-14 04:50:13 +02:00
Zeno Rogue
3a3317d0be dialog:: fixed crash in editingDetail 2023-08-14 04:37:01 +02:00
Zeno Rogue
e666faba31 dialog:: new options for matrix dialog 2023-08-14 04:36:39 +02:00
Zeno Rogue
392d3c075f dialog:: fixed 3D matrix viz 2023-08-14 04:36:23 +02:00
Zeno Rogue
c9a9a38188 dialog:: cleaned string dialog 2023-08-14 04:36:14 +02:00
Zeno Rogue
5cc7a4e527 matrix editor and saver are now transmatrix, not trans23 2023-08-10 14:38:59 +02:00
Zeno Rogue
8a124f6890 dialog:: removed debug from visualize_matrix 2023-08-09 14:23:10 +02:00
Zeno Rogue
4668321e4e dialog:: more fixes 2023-08-09 14:22:32 +02:00
Zeno Rogue
b6f13b953b more OOP-style standard dialogs 2023-08-09 14:01:24 +02:00
Zeno Rogue
4d4874f7ac dialog:: visualize matrix items 2023-08-09 09:07:53 +02:00
Zeno Rogue
234a691ab6 more parameter improvements and fixes 2023-08-09 01:11:44 +02:00
Zeno Rogue
5057f10358 improved parameter animation 2023-08-09 01:01:32 +02:00
Zeno Rogue
a13ba9bdbe param_matrix 2023-08-08 17:20:39 +02:00
Zeno Rogue
502e2c6102 fixed a crash when no last 2023-01-04 23:24:52 +01:00
Zeno Rogue
8ca0ef23fa dialog:: fixed coloring of info items 2022-12-18 00:29:28 +01:00
Zeno Rogue
16a2aa0f4b removed debug from full-screen dialog display 2022-12-15 23:00:40 +01:00
Zeno Rogue
2524fb76d0 dialog:: added constants for all colors used in dialogs (but no settings in menu yet); refactored a bit, fixing minor inconsistencies 2022-12-04 15:24:42 +01:00
Zeno Rogue
0770a11164 dialog::first_list_fake_key constant 2022-12-04 14:46:50 +01:00
Zeno Rogue
06523e063e used cyclefix and raddif in more places; (c)spin90, (c)spin180 and spin180 functions; rephrased M_PI in terms of TAU and x._deg when applicable 2022-11-13 16:22:55 +01:00
Zeno Rogue
320aac6b9a dialog:: larger file dialog, automatically set position 2022-11-04 23:15:00 +01:00
Zeno Rogue
2bc0de05a6 dialog:: search in file dialog 2022-11-04 23:15:00 +01:00
Zeno Rogue
8e1c05d3cf dialog:: refactor hasInfix 2022-11-04 23:15:00 +01:00
Zeno Rogue
0ff46ff143 dialog:: DIALOG_WIDE 2022-11-04 23:14:59 +01:00
Zeno Rogue
3ab4915ff4 dialog:: find_highlight 2022-11-04 23:14:59 +01:00
Zeno Rogue
cfac1cf3ab made file dialog more intuitive 2022-10-27 16:06:39 +02:00
Zeno Rogue
303d173bf6 mousewheel now works in dialog lists 2022-10-27 16:06:39 +02:00
Zeno Rogue
2d1cff6549 display F4 key name correctly, and 'fake keys' not displayed 2022-10-27 16:06:39 +02:00
Zeno Rogue
18f571b683 default dialog handler now does panning 2022-10-27 16:06:39 +02:00
Zeno Rogue
8294246449 dialog:: sm::NARROW_LINES 2022-10-27 16:06:39 +02:00
Zeno Rogue
caa4ac5bb4 sm::AUTO_VALUES to automatically assign option widths 2022-10-27 16:06:39 +02:00
Zeno Rogue
06f450af22 dialog:: lists keep the mouse better 2022-10-27 16:06:39 +02:00
Zeno Rogue
3408c1119f dialog:: automatically move list_skip 2022-10-27 16:06:39 +02:00
Zeno Rogue
3b5a5c01c5 dialog:: file dialogs now use list 2022-10-27 16:06:39 +02:00
Zeno Rogue
42a1615d0d dialog:: addBoolItem_action now accepts int argument 2022-10-27 16:06:38 +02:00
Zeno Rogue
601250f2de dialog:: control lists with mouse 2022-10-27 16:06:38 +02:00
Zeno Rogue
0d2f054d2b dialog:: lists; highlight should now work even if multiple items have the same name 2022-10-27 16:06:38 +02:00