Commit Graph

729 Commits (e6a618562762bb292646046dedd8893fc89f5330)

Author SHA1 Message Date
Myk Taylor 3f069d469d
add FRAME_THIN 2023-11-01 18:20:25 -07:00
Myk Taylor a651f6461b
add standard HelpButton and ConfigureButton classes
and use them across the overlays that need them
2023-10-16 03:27:08 -07:00
Myk Taylor 8d4d8f227d
ensure modal dialogs behave like modal dialogs
that is, don't let clicks and keys propagate to parent screens
2023-10-15 23:30:43 -07:00
Myk Taylor 15ae84a31b
framed screen subclasses are modal
so they should swallow all input
2023-10-15 17:22:29 -07:00
Myk fcdb148bf2
Merge branch 'develop' into myk_gray 2023-10-07 19:33:10 -07:00
Myk 5c5fa341a8
Merge pull request #3849 from myk002/myk_info_search
search overlay for CREATURES info panels
2023-10-07 19:15:50 -07:00
Myk Taylor f8a95667ee
succumb to american spelling 2023-10-07 19:12:53 -07:00
Myk Taylor 5049483330
refactor text search routine out into utils fn 2023-10-07 18:55:39 -07:00
Myk Taylor ae16b65c89
process keys before cursor dragging
so a held mouse button doesn't inhibit text input
2023-10-07 12:10:13 -07:00
Myk Taylor 8a0956bc83
restore mouse state after sending input to parent 2023-10-05 13:30:00 -07:00
Myk Taylor 5d295400d2
centralize management of mouse state 2023-10-01 16:28:18 -07:00
Myk Taylor 0dba891993
clean out some unused dependencies 2023-10-01 08:43:59 -07:00
Myk Taylor cd12e41fd7
update enabler mouse state when mouse clicks are handled in dialogs 2023-09-30 23:54:25 -07:00
Myk Taylor eefd38c66c
align mouse button semantics to DF
we, um, had it backwards
2023-09-26 03:52:24 -07:00
shevernitskiy 6f26650255 reserved texpos range 2023-09-24 11:44:03 +03: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
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
Myk Taylor 874fb5535b
fix spacing around messagebox text when a scrollbar is involved 2023-09-02 02:41:26 -07:00
Myk Taylor 088fa9a35c
instrument textures module and clean up gui 2023-08-31 10:53:43 -07:00
Myk Taylor 423bba2c24
pass getAnyStockpile and getAnyCivZone through ZScreens 2023-08-28 13:27:46 -07: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
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
shevernitskiy 91f4c3d561 mirgate preloaded assets to lua 2023-08-14 08:17:57 +03:00
shevernitskiy 20460fecca tiny refactor texpos methods 2023-08-13 07:40:35 +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 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
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
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 a6de9a21fa
enable most core tests 2023-08-04 10:11:28 -07:00
lethosor 6e54210a66
Merge remote-tracking branch 'lethosor/fix-global-crash' into develop 2023-08-01 00:22:01 -04:00
lethosor 95753f618c
memscan: check for new Linux executable name 2023-08-01 00:10:46 -04:00
lethosor e55984c529
Fix startup crashes when global addresses are missing
Useful for initial research. Can be tested with `DFHACK_NO_GLOBALS=1`
2023-08-01 00:05:02 -04:00
Myk Taylor 462ee0cba7
generalize mod directory scanning 2023-07-20 17:43:57 -07:00
Myk Taylor 19643111e0
move SUPPRESS_DUPLICATE_KEYBOARD_EVENTS pref into cpp 2023-07-19 00:38:37 -07:00
Myk Taylor 2d2ecf6f0d
add TextButton 2023-07-16 20:24:39 -07:00
Myk Taylor 7a618fd113
make event suppression configurable 2023-07-08 18:39:38 -07:00
Myk Taylor 734de0dcd1
make EditField ignore Ctrl-A until we get Home key support 2023-07-07 14:49:10 -07:00
Myk 79dbcf0461
Merge pull request #3524 from myk002/myk_copypaste
support copy/paste from system clipboard
2023-07-05 23:09:08 -07:00
Myk Taylor 9ca96567a5
move conversion logic to MiscUtils
but keep minimal wrappers in SDL module so we don't leak memory
2023-07-03 11:05:58 -07:00