f06f17b59c 
								
							
								 
							
						 
						
							
							
								
								Rename affectedActionTypes to affectedActionCategory in action timer API  
							
							
							
						 
						
							2022-12-01 23:17:57 +00:00  
				
					
						
							
							
								 
						
							
							
								aa2cf44c4b 
								
							
								 
							
						 
						
							
							
								
								Use lambdas to violate DRY less in action timer API  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								a925c34413 
								
							
								 
							
						 
						
							
							
								
								Rename [xyz]ActionTimer functions to [xyz]ActionTimers  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								f863b9807a 
								
							
								 
							
						 
						
							
							
								
								Add action timer API input validation  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								cc40b80456 
								
							
								 
							
						 
						
							
							
								
								Protect against integer overflow when subtracting with action timer API  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								6148307e9b 
								
							
								 
							
						 
						
							
							
								
								Change != 0 to > 0 in action timer API core functions  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								5e0c0d22cb 
								
							
								 
							
						 
						
							
							
								
								Group action timer API internal functions together  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								e93d7eefb3 
								
							
								 
							
						 
						
							
							
								
								Factor out set and add shared action timer code into own functions  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								357b871b4f 
								
							
								 
							
						 
						
							
							
								
								Factor out shared unit action timer multiplication code into its own function  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								8f0b7663d9 
								
							
								 
							
						 
						
							
							
								
								Change ints in action timer API function signatures to int32_ts  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								4b33097e57 
								
							
								 
							
						 
						
							
							
								
								Remove default in action timer API switch case  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								a3b1125c28 
								
							
								 
							
						 
						
							
							
								
								Progress on action timer API  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								7f54a77ed9 
								
							
								 
							
						 
						
							
							
								
								Continue work on unit action timer API  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								16ef4f8313 
								
							
								 
							
						 
						
							
							
								
								Rename action_type_group to unit_timer_action_type_group  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								2cbbed6750 
								
							
								 
							
						 
						
							
							
								
								Use df-structures XML enums for action timer API  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								fa589b5764 
								
							
								 
							
						 
						
							
							
								
								Make progress with action timer API  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								0f8ce360ac 
								
							
								 
							
						 
						
							
							
								
								Make first pass of action timer API  
							
							
							
						 
						
							2022-12-01 13:34:54 +00:00  
				
					
						
							
							
								 
						
							
							
								d14a3f4970 
								
							
								 
							
						 
						
							
							
								
								Auto-update submodules  
							
							... 
							
							
							
							library/xml: master
scripts: master 
							
						 
						
							2022-12-01 00:57:53 +00:00  
				
					
						
							
							
								 
						
							
							
								018bf712d5 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2429  from cppcooper/patch-3  
							
							... 
							
							
							
							Updates Units::isAnimal 
							
						 
						
							2022-11-29 18:43:04 -08:00  
				
					
						
							
							
								 
						
							
							
								9038c1c568 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2437  from myk002/myk_ctest  
							
							... 
							
							
							
							Combine unit testing branches and simplify 
							
						 
						
							2022-11-29 15:07:47 -08:00  
				
					
						
							
							
								 
						
							
							
								aac89d4942 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into myk_default_search_key  
							
							
							
						 
						
							2022-11-29 15:07:12 -08:00  
				
					
						
							
							
								 
						
							
							
								5b311163a9 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2431  from myk002/myk_widget_fixes  
							
							... 
							
							
							
							fix minor errors in ResizablePanel, Label, and HotkeyLabel widgets 
							
						 
						
							2022-11-29 15:06:15 -08:00  
				
					
						
							
							
								 
						
							
							
								757aa303b7 
								
									
								
							
								 
							
						 
						
							
							
								
								Update library/MiscUtils.test.cpp  
							
							... 
							
							
							
							Co-authored-by: Josh Cooper <cppcooper@users.noreply.github.com> 
							
						 
						
							2022-11-29 15:05:04 -08:00  
				
					
						
							
							
								 
						
							
							
								807894ac6c 
								
							
								 
							
						 
						
							
							
								
								Updates Units::isAnimal  
							
							... 
							
							
							
							Now checks that the unit cannot learn or speak, and has either a wilderness population source, a pet/pet_exotic token, or is trainable for war/hunting 
							
						 
						
							2022-11-29 13:19:19 -08:00  
				
					
						
							
							
								 
						
							
							
								d0a6a3e930 
								
									
								
							
								 
							
						 
						
							
							
								
								remove unnecessary target modifications  
							
							
							
						 
						
							2022-11-28 17:43:55 -08:00  
				
					
						
							
							
								 
						
							
							
								88074dacf0 
								
									
								
							
								 
							
						 
						
							
							
								
								move tests into the same dir as the main files  
							
							
							
						 
						
							2022-11-28 17:31:10 -08:00  
				
					
						
							
							
								 
						
							
							
								7fbeb215d7 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'myk_unit_testing' into myk_ctest  
							
							
							
						 
						
							2022-11-28 17:26:27 -08:00  
				
					
						
							
							
								 
						
							
							
								f921b02a1b 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge remote-tracking branch 'cppcooper/unit-testing' into myk_ctest  
							
							
							
						 
						
							2022-11-28 17:25:10 -08:00  
				
					
						
							
							
								 
						
							
							
								ae035d5836 
								
									
								
							
								 
							
						 
						
							
							
								
								simplify unit testing setup  
							
							
							
						 
						
							2022-11-28 17:16:48 -08:00  
				
					
						
							
							
								 
						
							
							
								726771c8d3 
								
									
								
							
								 
							
						 
						
							
							
								
								supply default search key for tokenized text  
							
							
							
						 
						
							2022-11-28 16:02:47 -08:00  
				
					
						
							
							
								 
						
							
							
								adb9c5ea12 
								
									
								
							
								 
							
						 
						
							
							
								
								fix frame size calculation when frame_inset is set  
							
							... 
							
							
							
							also fix error when clicking on HotkeyLabels where no on_activate
callback has been set 
							
						 
						
							2022-11-28 15:12:22 -08:00  
				
					
						
							
							
								 
						
							
							
								fb6483fe6c 
								
									
								
							
								 
							
						 
						
							
							
								
								allow frames to be drawn without DFHack signature  
							
							
							
						 
						
							2022-11-28 15:04:28 -08:00  
				
					
						
							
							
								 
						
							
							
								25f87306b4 
								
							
								 
							
						 
						
							
							
								
								Removes separated unit test executables  
							
							
							
						 
						
							2022-11-25 09:43:04 -08:00  
				
					
						
							
							
								 
						
							
							
								79551f7ef0 
								
							
								 
							
						 
						
							
							
								
								Updates CMake TESTING vars  
							
							
							
						 
						
							2022-11-25 09:43:04 -08:00  
				
					
						
							
							
								 
						
							
							
								de91fa7f28 
								
							
								 
							
						 
						
							
							
								
								Adds -Wno-sign-compare to test targets  
							
							
							
						 
						
							2022-11-25 09:43:04 -08:00  
				
					
						
							
							
								 
						
							
							
								268719ed1f 
								
							
								 
							
						 
						
							
							
								
								Integrates googletest  
							
							
							
						 
						
							2022-11-25 09:43:04 -08:00  
				
					
						
							
							
								 
						
							
							
								8e18d610f5 
								
							
								 
							
						 
						
							
							
								
								cmake: Add SDL dep for Linux dfhack; deprecate BUILD_TESTS  
							
							... 
							
							
							
							On Linux, libdfhack.so depends on libSDL.so, but that was not marked
inside CMake. As it's only used via LD_PRELOAD, there was no problem.
But when linking unit tests against it, this becomes necessary. It may
be wise to add a find_package(SDL) to provide the user with more
control, but just a hard-coded "SDL" should work for most installs.
The CTest module creates a BUILD_TESTING option, which clashes
(thematically, not in code) with the existing BUILD_TESTS option.
Resolve it thus:
- Deprecate BUILD_TESTS; it still works, but is marked as an advanced
  option so it doesn't show in the CMake UI by default.
- Add a new BUILD_TEST_SCRIPTS that does what BUILD_TESTS used to do,
  but is a "dependent" option so it goes away if BUILD_TESTING=OFF.
The up-shot is that, by default, the C++ unit tests will be built
(BUILD_TESTING=ON) and the Lua integration tests are not installed
(BUILD_TEST_SCRIPTS=OFF). 
							
						 
						
							2022-11-25 09:43:04 -08:00  
				
					
						
							
							
								 
						
							
							
								face558dd0 
								
							
								 
							
						 
						
							
							
								
								unit testing: Link test executables against libdfhack  
							
							... 
							
							
							
							Note: Hard-coded "SDL" here is wrong, but requires some refactoring in
top-level CMakeLists.txt to fix. 
							
						 
						
							2022-11-25 09:43:04 -08:00  
				
					
						
							
							
								 
						
							
							
								c5be87e381 
								
							
								 
							
						 
						
							
							
								
								unit tests: Add CTest support, and a trivial first unit test  
							
							... 
							
							
							
							If BUILD_TESTS=ON:
- Adds a 'test' target for ninja
- Adds a library/MiscUtils.test unit test executable 
							
						 
						
							2022-11-25 09:43:04 -08:00  
				
					
						
							
							
								 
						
							
							
								c9cf5ecca8 
								
									
								
							
								 
							
						 
						
							
							
								
								we kept editfield as MOUSE_L for click and drag  
							
							
							
						 
						
							2022-11-21 17:51:24 -08:00  
				
					
						
							
							
								 
						
							
							
								24dc879888 
								
									
								
							
								 
							
						 
						
							
							
								
								adapt library code to newly correct mouse events  
							
							
							
						 
						
							2022-11-21 17:36:46 -08:00  
				
					
						
							
							
								 
						
							
							
								e2218d0429 
								
									
								
							
								 
							
						 
						
							
							
								
								make mouse button event behavior conform to docs  
							
							... 
							
							
							
							before, when a mouse button was held down, we'd send a single _MOUSE_L
and _MOUSE_L_DOWN event and that's it. now we properly send a single
_MOUSE_L_DOWN event and _MOUSE_L events for as long as the button is
held down. similar for the right mouse button 
							
						 
						
							2022-11-21 17:35:14 -08:00  
				
					
						
							
							
								 
						
							
							
								0190cfb117 
								
									
								
							
								 
							
						 
						
							
							
								
								ensure foo.init runs before foo.*.init  
							
							
							
						 
						
							2022-11-20 17:27:14 -08:00  
				
					
						
							
							
								 
						
							
							
								ac5a1d35ae 
								
									
								
							
								 
							
						 
						
							
							
								
								remove duplicate function definition  
							
							
							
						 
						
							2022-11-18 17:39:49 -08:00  
				
					
						
							
							
								 
						
							
							
								11c27d40dd 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into Bumber64-patch-2  
							
							
							
						 
						
							2022-11-18 17:34:00 -08:00  
				
					
						
							
							
								 
						
							
							
								acd561ec9c 
								
							
								 
							
						 
						
							
							
								
								Auto-update submodules  
							
							... 
							
							
							
							library/xml: master
scripts: master 
							
						 
						
							2022-11-18 20:59:44 +00:00  
				
					
						
							
							
								 
						
							
							
								822a1c8359 
								
							
								 
							
						 
						
							
							
								
								Auto-update submodules  
							
							... 
							
							
							
							library/xml: master
scripts: master 
							
						 
						
							2022-11-15 07:17:03 +00:00  
				
					
						
							
							
								 
						
							
							
								966623a919 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #2387  from cppcooper/units-checking  
							
							... 
							
							
							
							Extends Units module 
							
						 
						
							2022-11-14 16:55:42 -08:00  
				
					
						
							
							
								 
						
							
							
								94c6bc8063 
								
									
								
							
								 
							
						 
						
							
							
								
								refactor generic lua function caller to Lua ns  
							
							
							
						 
						
							2022-11-14 16:40:35 -08:00  
				
					
						
							
							
								 
						
							
							
								aa5c6515e0 
								
							
								 
							
						 
						
							
							
								
								Removes rogue indent  
							
							
							
						 
						
							2022-11-13 11:39:20 -08:00