DFHack-Urist via GitHub Actions
56e782d9bb
Auto-update submodules
...
library/xml: master
scripts: master
2023-09-30 04:47:59 +00:00
DFHack-Urist via GitHub Actions
ffd166a41f
Auto-update submodules
...
library/xml: master
2023-09-29 18:26:00 +00:00
Najeeb Al-Shabibi
bb9829eb51
Merge branch 'develop' into eventmanager_cleanup
2023-09-29 14:54:29 +01:00
Myk Taylor
13f83d2f95
protect against bad values in TranslateName
2023-09-28 16:35:29 -07:00
Najeeb Al-Shabibi
14871c9d2e
Merge branch 'develop' into eventmanager_cleanup
2023-09-28 16:20:54 +01:00
Najeeb Al-Shabibi
70ff728fba
manageJobStartedEvent handle moved to inner loop and iterates from previous in linked list in case it is removed. fix a bug with item change events and using invalidated stack pointer as item data. swapped order of destroyed and created building event calls, and a couple other improvements
2023-09-28 16:19:32 +01:00
DFHack-Urist via GitHub Actions
d44499b970
Auto-update submodules
...
library/xml: master
scripts: master
2023-09-28 07:13:26 +00:00
Najeeb Al-Shabibi
78bea2a550
fixed a typo brain fart moment
2023-09-27 23:34:19 +01:00
Najeeb Al-Shabibi
f5aab7ee45
pulled event handler calls out of the loops over global vectors to avoid potential iterator invalidation by an event callback, and did some tidying
2023-09-27 20:55:22 +01:00
DFHack-Urist via GitHub Actions
888c88dfcf
Auto-update submodules
...
library/xml: master
scripts: master
2023-09-27 20:55:22 +01:00
Myk Taylor
5c670d20db
align mouse button semantics to DF
...
we, um, had it backwards
2023-09-27 20:55:22 +01:00
Myk Taylor
6ad724b483
add detailed focus strings for setupdwarfgame
2023-09-27 20:55:22 +01:00
DFHack-Urist via GitHub Actions
e253642660
Auto-update submodules
...
library/xml: master
scripts: master
2023-09-27 02:23:08 +00:00
Myk
da77be29be
Merge pull request #3816 from myk002/myk_remousify
...
align mouse button semantics to DF
2023-09-26 19:09:23 -07:00
Myk Taylor
eefd38c66c
align mouse button semantics to DF
...
we, um, had it backwards
2023-09-26 03:52:24 -07:00
Myk Taylor
932f3324d3
add detailed focus strings for setupdwarfgame
2023-09-26 03:45:15 -07:00
DFHack-Urist via GitHub Actions
7e21d384ab
Auto-update submodules
...
library/xml: master
scripts: master
2023-09-25 07:13:23 +00:00
shevernitskiy
ae67ec05de
remove doubled check
2023-09-24 13:01:31 +03:00
shevernitskiy
d2bc834fa9
fix exception on close, dummy surface refcount
2023-09-24 11:44:04 +03:00
shevernitskiy
bd4d831582
add flag for dummy & resolve conflicts
2023-09-24 11:44:04 +03:00
shevernitskiy
25cc778fce
review refactor
2023-09-24 11:44:04 +03:00
shevernitskiy
770402a292
erase from delayed when deleteHandle()
2023-09-24 11:44:04 +03:00
shevernitskiy
033a849de2
Apply suggestions from code review
...
Co-authored-by: Myk <myk.taylor@gmail.com>
2023-09-24 11:44:04 +03:00
shevernitskiy
469a97f781
review
2023-09-24 11:44:04 +03:00
shevernitskiy
5b34ac63e1
fix for gcc
2023-09-24 11:44:03 +03:00
shevernitskiy
6f26650255
reserved texpos range
2023-09-24 11:44:03 +03:00
lethosor
3af118dce9
Check that SDL_ShowSimpleMessageBox has been bound first
...
This function can be called before DFSDL is initialized
2023-09-21 01:18:56 -04: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
8d03dd4d71
Update xml for 50.10-r1.1
2023-09-19 18:14:59 -04:00
Myk Taylor
8e86c5c0ab
update xml ref
2023-09-18 10:06:06 -07:00
Myk Taylor
64d46af38e
bump to 50.10-r1
2023-09-17 23:52:37 -07:00
Myk Taylor
66a93ad0cc
update xml ref
2023-09-17 23:32:24 -07:00
Myk Taylor
a61b8d11d0
Revert "use osyncstream for writing to gamelog.txt"
...
This reverts commit 4695b8c86d
.
2023-09-17 21:38:48 -07:00
Myk Taylor
4695b8c86d
use osyncstream for writing to gamelog.txt
2023-09-17 21:23:45 -07:00
Myk Taylor
a8c4456c77
update xml ref
2023-09-17 21:16:35 -07:00
Myk Taylor
53574fb2b3
Merge branch '5010-beta' into develop
2023-09-17 21:15:33 -07:00
DFHack-Urist via GitHub Actions
03a24c7cff
Auto-update submodules
...
library/xml: master
2023-09-16 07:11:54 +00:00
Kelly Kinkade
a13159bc35
use `TerminateProcess` for die on windows
...
evades issues with the stacktrace logger in 50.10
2023-09-14 17:42:15 -05:00
Myk Taylor
ca32e6a1ae
update version and refs for 50.09-r4
2023-09-14 12:38:19 -07:00
Myk Taylor
e7762e7bc6
update structures ref
2023-09-14 10:20:20 -07:00
Myk Taylor
6a1b1f2222
update structures ref
2023-09-14 10:18:49 -07:00
lethosor
017e280b18
Define identity_traits<shared_ptr<T>> for all T (opaque for now)
2023-09-13 21:57:44 -04:00
Myk Taylor
49e449a422
update xml ref
2023-09-13 18:20:49 -07:00
Myk Taylor
561f447a54
update xml ref
2023-09-13 18:17:23 -07:00
Myk Taylor
96f6893a32
update xml ref
2023-09-13 18:02:52 -07:00
Myk Taylor
a7e59c8f77
update xml ref
2023-09-13 17:06:33 -07:00
Myk Taylor
218e52bd93
Merge branch 'myk_proc_maps_format' into 5010-beta
2023-09-13 17:00:08 -07:00
Kelly Kinkade
9ea68d38c5
sync structures
2023-09-13 13:57:55 -05:00
Myk Taylor
863df21dd2
protect against missing keys param
2023-09-12 23:08:55 -07:00
Myk Taylor
d2ae5463df
update xml ref
2023-09-12 22:58:26 -07: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
f8b2297ddc
update xml ref
2023-09-12 18:41:50 -07:00
Kelly Kinkade
a829358af0
update structures
2023-09-12 15:57:04 -05:00
Myk Taylor
22f68223a1
update structures ref
2023-09-12 01:03:36 -07:00
DFHack-Urist via GitHub Actions
51772430f2
Auto-update submodules
...
library/xml: master
2023-09-12 07:12:47 +00:00
Myk Taylor
905438be96
update xml ref to 5010-testing
2023-09-11 23:21:55 -07:00
Myk Taylor
2e11c91a10
format string didn't match my system; generalizing
2023-09-10 23:04:20 -07:00
Myk Taylor
e325f3b6d9
differentiate the new region loading screen in the focus string
2023-09-10 16:32:52 -07:00
Myk Taylor
a0919ec316
add ASCII-mode highlight for smoothing and carving designations
2023-09-10 05:29:55 -07:00
Myk Taylor
5a557f232f
disable texture loading if enabler isn't present
2023-09-10 01:42:59 -07:00
DFHack-Urist via GitHub Actions
d118a37be6
Auto-update submodules
...
library/xml: master
scripts: master
2023-09-10 07:12:04 +00:00
Andriel Chaoti
bae570d756
Merge branch 'develop' into andriel_argparse
2023-09-09 14:44:44 -06:00
Andriel Chaoti
85cd0cd01c
improvements to argparse
...
remove need to reparse table constantly, included original arg for error
message.
2023-09-09 12:56:10 -06:00
DFHack-Urist via GitHub Actions
6ec5e0e1a9
Auto-update submodules
...
library/xml: master
2023-09-09 07:11:39 +00:00
Andriel Chaoti
5611cdd999
add `boolean` function for argparse
...
implements a test for boolean values into the argparse utility that
checks for truthy style values and converts them to a lua boolean.
2023-09-06 16:42:05 -06:00
lethosor
337260ab0c
Fix unchecked lua_tostring calls
2023-09-06 18:19:31 -04:00
lethosor
47666e12cd
terminal -> console for consistency
...
followup to #3723
2023-09-06 18:09:07 -04:00
Myk Taylor
31fbd0dab5
bump to 50.09-r3
2023-09-06 13:43:11 -07:00
DFHack-Urist via GitHub Actions
7d128adada
Auto-update submodules
...
library/xml: master
scripts: master
2023-09-05 08:10:07 +00:00
Myk Taylor
cbe4f53823
add focus string details for orders context
2023-09-03 12:50:12 -07:00
Myk Taylor
1d6ae37a66
fix and reinstate heat safety filter
2023-09-03 11:54:32 -07:00
Myk Taylor
b8fc6e210f
add note about handling bags
2023-09-03 07:12:30 -07:00
Myk Taylor
b489fceaea
clarify error message about the terminal
2023-09-02 03:22:10 -07:00
Myk Taylor
874fb5535b
fix spacing around messagebox text when a scrollbar is involved
2023-09-02 02:41:26 -07:00
Myk
940d25accb
Merge pull request #3711 from myk002/myk_instrument_textures
...
[Textures] instrument textures module
2023-08-31 18:14:18 -07:00
lethosor
40bfb6b8ff
Hack to force GCC to invoke cancel_job() through DF's vtable
...
GCC appears to be optimizing the call to `cancel_job()` to use the stub in
*DFHack's* job_handler vtable, which is a no-op. Lua was unaffected because it
invokes vmethods through method pointers (without knowing the target instance at
compile time), so use a similar approach here for now.
As mentioned by @ab9rf on Discord, we should pursue an alternative like asking
Bay12 to expose the relevant code through a global `std::function` instead of a
vmethod.
2023-08-31 17:42:16 -04:00
Myk Taylor
088fa9a35c
instrument textures module and clean up gui
2023-08-31 10:53:43 -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
a8bf8a04ae
add in value for units contained in cages
2023-08-28 15:42:56 -07:00
Myk Taylor
423bba2c24
pass getAnyStockpile and getAnyCivZone through ZScreens
2023-08-28 13:27:46 -07:00
shevernitskiy
4b0219e225
fix stupid linux build again
2023-08-28 10:56:08 +03:00
shevernitskiy
51baa0d674
fix linux build
2023-08-28 10:46:59 +03:00
shevernitskiy
6f11812729
create and delete textures
2023-08-28 10:00:39 +03:00
DFHack-Urist via GitHub Actions
3ce2909309
Auto-update submodules
...
library/xml: master
scripts: master
2023-08-28 06:20:58 +00:00
Myk
a740c6628e
Merge pull request #3663 from shevernitskiy/dynamic-texture-loading
...
feat: dynamic texture loading
2023-08-27 22:45:52 -07:00
shevernitskiy
4fb6b09b30
move textures to separate lua module
2023-08-28 06:58:30 +03:00
shevernitskiy
6c5163af9e
adjust adopt region reset step
2023-08-27 22:28:03 +03:00
DFHack-Urist via GitHub Actions
432e415a13
Auto-update submodules
...
library/xml: master
2023-08-21 07:47:25 +00:00
Myk Taylor
1763a16831
add training check functions to Units
2023-08-20 10:08:25 -07:00
DFHack-Urist via GitHub Actions
a1d6098446
Auto-update submodules
...
library/xml: master
2023-08-19 09:21:39 +00:00
DFHack-Urist via GitHub Actions
89ddc4b798
Auto-update submodules
...
library/xml: master
2023-08-17 06:06:58 +00:00
shevernitskiy
c1945f7b54
fix build err in gcc
2023-08-17 06:32:26 +03:00
DFHack-Urist via GitHub Actions
8401d5c72a
Auto-update submodules
...
library/xml: master
2023-08-16 07:12:45 +00:00
shevernitskiy
25038648c0
remove unused variable
2023-08-15 21:11:06 +03:00
Myk
d40843de7e
Merge pull request #3676 from myk002/myk_focus
...
higher granularity for unit viewsheet focus strings
2023-08-14 17:33:05 -07:00
Myk Taylor
7a4aaf8bc9
normalize characters in search text and match keys for FilteredLists
2023-08-14 16:39:28 -07:00
shevernitskiy
5cafffaaf6
typos
2023-08-14 13:04:38 +03:00
shevernitskiy
0e725be046
support closure as tile arg to get texpos
2023-08-14 12:07:27 +03:00
Myk Taylor
fa3c2222e6
higher granularity for unit viewsheet focus strings
2023-08-13 23:54:18 -07:00
shevernitskiy
900a2c65ba
invalid texpos is nil for lua
2023-08-14 09:02:37 +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
Myk Taylor
296a34834c
expose and use casteFlagSet
2023-08-13 00:20:08 -07:00
Myk
71e5901214
Merge pull request #3672 from myk002/myk_gui
...
[orders] prevent overlay from appearing on the new workorder page
2023-08-12 23:21:13 -07:00
lethosor
e69b6ed4ea
Merge remote-tracking branch 'lethosor/struct-fields-lua' into develop
2023-08-13 01:43:19 -04:00
shevernitskiy
22b0671038
review 2
2023-08-13 08:33:31 +03:00
Myk
8f33f4ee44
Merge pull request #3670 from myk002/myk_readtile
...
[Screen] detect extended tile properties and communicate them back to lua
2023-08-12 22:22:40 -07:00
Myk Taylor
b787c2bb1e
make creating a workorder a subscreen instead of a top-level
2023-08-12 22:02:17 -07:00
shevernitskiy
20460fecca
tiny refactor texpos methods
2023-08-13 07:40:35 +03:00
lethosor
574fa08747
Add index_enum, ref_target
2023-08-12 22:12:45 -04:00
lethosor
396b2d7832
Adapt tests to dynamically-generated field info
...
No need to freeze the field info tables anymore
2023-08-12 21:59:14 -04:00
DFHack-Urist via GitHub Actions
1a630eab34
Auto-update submodules
...
library/xml: master
2023-08-13 00:45:42 +00:00
lethosor
fc6d4caa8e
Dynamically generate field info in __index
...
Constructing the complete tables when the types were initialized made it
impossible to populate the "type" field, because not all types had been added to
the global type tables yet.
2023-08-12 20:18:22 -04:00
lethosor
4a9a83daa5
Expose more fields, refactor
2023-08-12 20:01:03 -04:00
lethosor
29f99733fe
Add tests
2023-08-12 19:04:51 -04:00
lethosor
92549f3c56
Add _fields table to struct types
2023-08-12 19:04:49 -04:00
Myk Taylor
c37dce7c33
detect extended tile properties and communicate them back to lua
2023-08-12 15:53:22 -07:00
shevernitskiy
687bd82542
pathable & unsuspend specific tile size
2023-08-12 20:05:15 +03:00
shevernitskiy
46a3454fee
type alias for gcc
2023-08-12 17:00:07 +03:00
shevernitskiy
b20889e694
minor refactor for lua switch
2023-08-12 16:34:33 +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
lethosor
351dfa84c2
Remove obsolete STATIC_FIELDS_GROUP check
2023-08-12 01:17:44 -04:00
DFHack-Urist via GitHub Actions
4aaf625f4d
Auto-update submodules
...
library/xml: master
scripts: master
2023-08-12 01:49:06 +00:00
Myk Taylor
8d8c139ccb
don't add keys as text when ctrl or alt are pressed
2023-08-11 12:54:49 -07:00
Myk Taylor
fa22f9521a
never suppress sdl key events when modifier keys are active
2023-08-11 12:54:18 -07:00
shevernitskiy
e81a90821a
review
2023-08-11 21:40:41 +03:00
Myk
e8a2ac68fe
Merge pull request #3662 from lethosor/fix-unknown-global-field-ref
...
Fix crash in df.global:_field() when global address is unknown
2023-08-11 10:38:12 -07:00
DFHack-Urist via GitHub Actions
3a143e0601
Auto-update submodules
...
library/xml: master
scripts: master
2023-08-11 07:12:32 +00:00
shevernitskiy
3e18e2f6fe
eof fix one more time
2023-08-11 09:50:51 +03:00
shevernitskiy
4bbcc7b05d
eof fix
2023-08-11 09:48:03 +03:00
lethosor
6bd0819635
Fix crash in df.global:_field() when global address is unknown
...
and add a test
2023-08-11 02:31:54 -04: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
ea43d6c801
get_code_segment(): update check for DF executable on Linux
2023-08-10 15:06:45 -04:00
lethosor
0ac7d23bcf
Add memscan.read_global_table() and memscan.read_c_string()
2023-08-10 15:06:24 -04:00
lethosor
46499a66cc
Add cxx_demangle() and Lua wrapper
2023-08-10 15:01:19 -04:00
Myk
fdf878c3b9
Merge pull request #3655 from myk002/myk_banner
...
[BannerPanel] use square brackets instead of color blocks
2023-08-09 17:51:26 -07:00
DFHack-Urist via GitHub Actions
ca71c8c5f8
Auto-update submodules
...
library/xml: master
2023-08-09 07:13:34 +00:00
DFHack-Urist via GitHub Actions
6bd7d97625
Auto-update submodules
...
library/xml: master
scripts: master
2023-08-08 07:12:52 +00:00
Myk
970babe77c
Merge pull request #3654 from myk002/myk_mod_reload
...
ensure active mod scripts are properly reloaded
2023-08-07 19:39:39 -07:00
Myk Taylor
99517fcd81
use square brackets instead of color blocks
2023-08-07 17:20:58 -07:00
Myk Taylor
62a1bd6970
ensure active mod scripts are properly reloaded
2023-08-07 17:18:00 -07:00
Myk Taylor
8bff1399d4
add functions to Panel in addition to attributes
2023-08-07 17:02:55 -07:00
Myk Taylor
5fbff18d64
correctly fire on_resize_end events from Panel
2023-08-07 16:01:56 -07:00
Myk Taylor
8c166935d5
factor banner out into reusable panel class
2023-08-07 12:40:48 -07:00
Myk Taylor
03edea8257
add focus string support for legends mode
2023-08-07 02:50:37 -07:00