Kelly Kinkade
a09f122d7e
implement simulated `Items::getCapacity`
...
in support of `combine`, see #3307
2023-10-16 11:08:36 -05:00
Myk Taylor
5d295400d2
centralize management of mouse state
2023-10-01 16:28:18 -07:00
shevernitskiy
6f26650255
reserved texpos range
2023-09-24 11:44:03 +03:00
lethosor
aa6c4094c5
Use SDL_ShowSimpleMessageBox in Core::fatal()
...
This allows the message to be displayed consistently in a dialog on all platforms.
2023-09-21 01:13:07 -04:00
lethosor
017e280b18
Define identity_traits<shared_ptr<T>> for all T (opaque for now)
2023-09-13 21:57:44 -04:00
lethosor
fd676fa70f
Add identity_traits for std::unordered_map
2023-09-12 23:38:09 -04:00
Kelly Kinkade
dbee92cd81
`widget` is a `struct` not a `class`
...
at least as far as df-structures is concerned...
2023-09-12 22:01:58 -05:00
Kelly Kinkade
673d9d5230
bodge DataIdentity to get 50.10 working
2023-09-12 21:55:55 -05:00
Myk Taylor
a0919ec316
add ASCII-mode highlight for smoothing and carving designations
2023-09-10 05:29:55 -07:00
Myk Taylor
1d6ae37a66
fix and reinstate heat safety filter
2023-09-03 11:54:32 -07:00
Myk
5d7649837c
Merge pull request #3704 from shevernitskiy/create-delete-textures
...
create and delete textures
2023-08-30 03:42:27 -07:00
shevernitskiy
8a015f7f87
review
2023-08-30 07:38:21 +03:00
Myk Taylor
423bba2c24
pass getAnyStockpile and getAnyCivZone through ZScreens
2023-08-28 13:27:46 -07:00
shevernitskiy
6f11812729
create and delete textures
2023-08-28 10:00:39 +03:00
Myk
a740c6628e
Merge pull request #3663 from shevernitskiy/dynamic-texture-loading
...
feat: dynamic texture loading
2023-08-27 22:45:52 -07:00
Myk Taylor
1763a16831
add training check functions to Units
2023-08-20 10:08:25 -07:00
shevernitskiy
c1945f7b54
fix build err in gcc
2023-08-17 06:32:26 +03:00
shevernitskiy
91f4c3d561
mirgate preloaded assets to lua
2023-08-14 08:17:57 +03:00
shevernitskiy
1409af67de
expose api to lua
2023-08-13 20:09:12 +03:00
shevernitskiy
22b0671038
review 2
2023-08-13 08:33:31 +03:00
shevernitskiy
46a3454fee
type alias for gcc
2023-08-12 17:00:07 +03:00
shevernitskiy
fe8bd4fa78
assets use dynamic texture loading
2023-08-12 16:11:42 +03:00
lethosor
0a5e914a65
Add struct_field_info_extra::original_name field for globals
2023-08-12 01:19:18 -04:00
shevernitskiy
e81a90821a
review
2023-08-11 21:40:41 +03:00
shevernitskiy
3e18e2f6fe
eof fix one more time
2023-08-11 09:50:51 +03:00
shevernitskiy
e21f0f2b69
dynamic texture loading
2023-08-11 09:14:05 +03:00
lethosor
34ddf6bed7
Merge remote-tracking branch 'lethosor/memscan-funcs' into develop
2023-08-11 01:38:15 -04:00
lethosor
46499a66cc
Add cxx_demangle() and Lua wrapper
2023-08-10 15:01:19 -04:00
Myk Taylor
db48e0eba0
remove caravan_buying param from getValue call
...
the identity of the selling party doesn't actually affect the value!
2023-08-06 17:38:34 -07:00
Kelly Kinkade
ba0df78233
DataIdentity support for `std::future<void>`
2023-08-04 20:00:29 -05:00
lethosor
8b786b4344
Forward-declare types only used in DataIdentity.cpp
2023-08-02 00:15:27 -04:00
lethosor
2f42745175
Add identity_traits<condition_variable>, add macro for opaque identities
2023-08-02 00:15:27 -04:00
lethosor
eb12ff17f6
Refactor: move static identity_traits to their own file, simplify field defs
...
DataStaticsFields.cpp used to contain identity_traits specializations for
primitive and opaque STL types, as well as macros used for the generated struct
field definitions. Only one of these were actually used in any compilation unit,
and the identity_traits definitions were hidden behind a guard to prevent them
from being compiled at all when building the struct field definitions.
Now, the identity_traits specializations live in their own file,
DataIdentity.cpp (matching their declarations, which live in DataIdentity.h).
This speeds up build times because modifying these specializations no longer
requires rebuilding all of the field definitions unnecessarily.
2023-08-02 00:15:26 -04:00
lethosor
d0250ae426
Update allocator_try_assign() to match behavior of fstream allocator for non-copyable types
...
Looks like the choice we have made here previously is to return NULL if
attempting to allocate types that we cannot allocate.
2023-08-02 00:15:26 -04:00
lethosor
6fbb22e912
Add missing instantion for identity_traits<std::mutex>, refactor code shared with fstream identity
2023-08-02 00:15:26 -04:00
lethosor
7c4d9364a2
Make allocator_fn compile for non-copy-assignable types like std::mutex
2023-08-02 00:15:26 -04:00
lethosor
e5bc4b3221
Add identity for std::mutex
2023-08-02 00:15:25 -04:00
lethosor
73f96209da
Fix mangling of `plugin_globals` with GCC's C++11 ABI
...
Without being declared with `extern "C"`, `plugin_globals` is mangled, with a
`cxx11` suffix.
We can't add `extern "C"` to the `DFhackDataExport` macro because GCC does not
allow initializing any `extern` variables inline, including `extern "C"`.
2023-08-01 00:33:20 -04:00
Myk
17ca9e0132
Update Textures.h
2023-07-31 17:20:38 -07:00
Myk Taylor
dff4816287
update dwarfvet
2023-07-21 04:12:56 -07:00
Myk Taylor
19643111e0
move SUPPRESS_DUPLICATE_KEYBOARD_EVENTS pref into cpp
2023-07-19 00:38:37 -07:00
Myk
2cd226d879
Merge pull request #3566 from myk002/myk_pasture
...
[zone] initial implementation of pasture assignment screen
2023-07-16 14:36:57 -07:00
Myk Taylor
5fb299c6df
expand egg-laying filter to the entire race, not just the unit
2023-07-16 12:30:12 -07:00
Myk Taylor
39612f0d5a
trade a bin if any contents can be traded
...
the new trade screens will make it easy to filter out unwanted items
later
2023-07-16 12:15:51 -07:00
Myk Taylor
f987bca8f9
prevent DF interface events for handled hotkeys
2023-07-08 17:23:00 -07:00
Kelly Kinkade
1fba8b16f5
replace `dts:make_unique` with `std::make_unique`
...
2014 here we come!
2023-07-07 21:38:15 -05:00
Kelly Kinkade
0ac05197c6
fix an ambiguity in def'n of operator==
...
this resolve an error that arises when compiling with msvc 1936 which was previously ignored due to a bug in the compiler
2023-07-07 17:21:25 -05:00
Myk Taylor
6a8522ab5e
generalize dfhack.items.isRequestedTradeGood
2023-07-06 03:27:05 -07:00
Myk Taylor
b938891e11
add dfhack.items.isRequestedTradeGood
2023-07-06 03:24:36 -07:00
Myk Taylor
c2e647b79b
fix item prices and algorithm
...
adjust prices according to race WAR affinity
2023-07-06 03:24:15 -07:00