20k
c0bd452c86
add a failure case check just in case
2023-02-27 02:06:36 +00:00
20k
3c1d3ce21c
rework docs, comments, clean up unnecessary init
2023-02-27 01:45:10 +00:00
20k
0c9a9c8b9e
cleanup remaining unk
2023-02-26 18:09:10 +00:00
20k
e50f3dbb64
remove unnecessary init
2023-02-26 18:09:10 +00:00
20k
1eeefdd598
clean up a variety of unks
2023-02-26 18:05:42 +00:00
20k
2bd48f1f90
address some review comments
2023-02-26 18:05:35 +00:00
20k
d84b118767
docs, rework, rename
2023-02-26 18:05:35 +00:00
20k
3912c6290f
Military module start
2023-02-26 18:05:34 +00:00
20k
ce3ee386fd
makeSquad, updateRoomAssignments
2023-02-26 18:05:34 +00:00
Myk Taylor
2b59d6ee3d
make dfhack.job.attachJobItem available to Lua
2023-02-26 09:40:02 -08:00
Myk
3cddea9b61
Merge branch 'develop' into myk_clear_tile
2023-02-26 09:25:05 -08:00
Myk
fced215ac2
Merge branch 'develop' into myk_no_disabled_click
2023-02-26 09:24:32 -08:00
Myk
0270766a6d
Merge branch 'develop' into myk_dynamic_tile
2023-02-26 09:24:04 -08:00
Myk
e81a45a742
Merge pull request #2952 from myk002/myk_keep_focus
...
[Gui] don't prefix focus strings that are already properly marked
2023-02-26 09:23:42 -08:00
Myk
bf64f1d985
Merge pull request #2948 from myk002/myk_interior_frame
...
Add standard interior frame to gui.lua
2023-02-26 09:23:09 -08:00
Myk
ff464c4746
Merge pull request #2947 from myk002/myk_join_strings
...
[MiscUtils] add templated version of join_strings
2023-02-26 09:22:56 -08:00
Myk
098c538754
Merge pull request #2946 from myk002/myk_safety_first
...
[isSuitableMaterial] detect lack of fire and magma safety for vulnerable materials with high melting points
2023-02-26 09:22:38 -08:00
Myk
c7f6ee57d7
Update library/Core.cpp
2023-02-25 11:00:51 -08:00
Kelly Kinkade
0a65c423ce
a squirrel distracted me
2023-02-25 04:07:24 -06:00
Kelly Kinkade
87e06cf960
deoops
2023-02-25 02:42:28 -06:00
Kelly Kinkade
cfa649b4ac
clean up code for C++20 readiness
...
two change:
* remove use of `register` in `md5.cpp`
* remove use of `using namespace std` in `Core.cpp` (which causes an ambiguous name resolution error between `byte` and `std::byte`). while there are other ways to resolve this, `using namespace std` is a code smell anyway, so eliminating it is the best option
2023-02-24 20:52:49 -06:00
Myk Taylor
f1d5551e51
fix on-map character rendering
2023-02-24 17:23:01 -08:00
Myk Taylor
88516a899a
allow map interface tiles to be cleared
2023-02-24 17:22:55 -08:00
Myk Taylor
d7d3dcb0be
keep focus strings if they are already labeled
...
i.e. don't add a "dfhack/" prefix if the focus string already has the
string "dfhack" in it
2023-02-24 17:20:12 -08:00
Myk Taylor
1cacc526e3
allow token.tile to be a function
2023-02-24 17:16:30 -08:00
Myk Taylor
8b378735fa
don't fire HotkeyLabel if the label is disabled
2023-02-24 17:13:45 -08:00
Myk Taylor
75b1cd748a
convert otherwise unused THIN_FRAME to INTERIOR_FRAME
...
without a signature
2023-02-24 17:07:57 -08:00
Myk Taylor
a684f294c5
add templated version of join_strings
2023-02-24 17:05:08 -08:00
Myk Taylor
30ea58374c
better detection of fire and magma safety
2023-02-24 16:57:44 -08:00
Myk Taylor
4bf0849d51
fix usage of squad equipment vector
2023-02-24 15:50:56 -08:00
Myk Taylor
b8fdc985ec
bump version and changelog to 50.07-alpha2
2023-02-24 15:41:54 -08:00
DFHack-Urist via GitHub Actions
f84299bc46
Auto-update submodules
...
library/xml: master
2023-02-24 23:31:20 +00:00
DFHack-Urist via GitHub Actions
1ed0a41dd1
Auto-update submodules
...
library/xml: master
scripts: master
2023-02-23 07:15:08 +00:00
Myk
3fa9babb48
Merge pull request #2911 from kelvie/label-hover
...
Usability: Show mouse hover on all clickable Labels/Lists
2023-02-22 20:39:02 -08:00
Kelvie Wong
3c24e67a9a
Address additional PR comments
...
on_activate is likely to happen first so we shouldn't need to check the
other.
2023-02-22 17:22:04 -08:00
DFHack-Urist via GitHub Actions
81db7f09a2
Auto-update submodules
...
library/xml: master
2023-02-21 07:15:14 +00:00
DFHack-Urist via GitHub Actions
13e4d327f8
Auto-update submodules
...
library/xml: master
scripts: master
2023-02-19 03:34:02 +00:00
Kelvie Wong
697f15224c
Address PR comments, and remove BG fill
...
BG fill eats up a lot of cycles anyway, and there's not a real tangible
benefit in all cases, as it relies on the text label being sized
appropriately (width-wise) to the container, or would otherwise require
padding.
2023-02-18 16:07:40 -08:00
Kelvie Wong
61227eeca1
Fix use of pens in render_text
...
If you ever pass in a number to `dc:pen` rather than a pen table, it
will assume the old pen's other attributes, such as `bg` and `bold`.
To workaround this, we just never pass in a number, and always call
`to_pen` aka `dfhack.pen.parse` first.
2023-02-18 16:07:40 -08:00
Kelvie Wong
94ae9973cf
Re-add the invert_color function
...
As requested, but it's not used anymore.
2023-02-18 16:07:40 -08:00
Kelvie Wong
3e8d0f0f1e
Properly reverse BG/FG and apply per letter
...
This puts pen creation deeper into the loop in render_text.
Lists are current coloured completely wrong, though, and need
fixing (and probably anywhere else where disabled is set).
2023-02-18 16:07:40 -08:00
Kelvie Wong
0897ca913a
Support mouse-hover on lists as well
2023-02-18 16:07:40 -08:00
Kelvie Wong
0b48471607
Invert brightness of the background as well
...
This required some tinkering.
2023-02-18 16:07:40 -08:00
Kelvie Wong
2d68b21547
Show mouse hover on HotkeyLabels
...
Labels show the hover colour when on_click is set, HotkeyLabels should
also do the same when they are clickable.
2023-02-18 16:07:40 -08:00
Robob27
4167c2e652
Add key_back, rename switch_tab_key to key
2023-02-16 02:56:52 -05:00
Robob27
5154eb181a
Add Tab/TabBar to widgets
2023-02-16 02:51:09 -05:00
Myk
00428a9140
Merge pull request #2910 from silverflyone/develop
...
Not all stockpile items being returned for getStockpileContents.
2023-02-15 23:33:39 -08:00
DFHack-Urist via GitHub Actions
36935056ea
Auto-update submodules
...
library/xml: master
scripts: master
2023-02-16 07:15:08 +00:00
silverflyone
3ad66d5c2f
Merge branch 'develop' into develop
2023-02-16 15:05:23 +11:00
DFHack-Urist via GitHub Actions
39f13b642f
Auto-update submodules
...
library/xml: master
scripts: master
2023-02-15 07:15:04 +00:00