Commit graph

17854 commits

Author SHA1 Message Date
Tim Felgentreff
6fa5d86b7b avoid runtime conversion to SDL_Color for font colors 2022-05-22 13:58:57 +02:00
Tim Felgentreff
e26e994a9c cache mapping of strings to filenames 2022-05-22 13:58:54 +02:00
Tim Felgentreff
4312aa16f4 make generated api better 2022-05-19 17:10:55 +02:00
Tim Felgentreff
bcb80ccb6f fix missing semicolon 2022-05-19 17:10:38 +02:00
Tim Felgentreff
3e72cff940 fix wrong assert 2022-05-19 17:10:29 +02:00
Tim Felgentreff
07ea0ce1c7 fix potential crash 2022-05-19 17:10:22 +02:00
Tim Felgentreff
77d7f1da6f add a todo 2022-05-11 19:59:44 +02:00
Tim Felgentreff
98811f8385 update generate_index script to create api definition 2022-05-11 19:59:33 +02:00
Tim Felgentreff
2d27c0a764 add assertions to avoid crash with wrongly indexed graphics 2022-05-02 21:40:39 +02:00
Tim Felgentreff
654a2409ef fix icon color palette swaps not being swapped back to default 2022-05-02 21:39:26 +02:00
Tim Felgentreff
49207fc0fc add missing stargus json 2022-04-29 21:14:22 +02:00
Tim Felgentreff
94617fb1cc make midiplayer more fancy with pipes for communication 2022-04-29 09:01:28 +02:00
Tim Felgentreff
e4c4b29805 extract arg quoting for iwndows 2022-04-29 09:01:27 +02:00
Tim Felgentreff
cca28d94a6 fix ordering of units in transports by size 2022-04-28 06:40:27 +02:00
Tim Felgentreff
ef1c09dc23 keep units in transports sorted by size and give them space in UI 2022-04-27 22:32:06 +02:00
Tim Felgentreff
85c482f632 fix lazy loading of mng portraits 2022-04-27 22:13:48 +02:00
Tim Felgentreff
2cfbbed268 make construction lazy loaded as well 2022-04-27 21:28:54 +02:00
Tim Felgentreff
875f438778 deal with a few minor errors 2022-04-27 21:28:43 +02:00
Tim Felgentreff
3a0c61d6ad don't overallocate mng array 2022-04-27 21:28:37 +02:00
Tim Felgentreff
1be53f0dc9 make dynamic load the default to start up faster 2022-04-27 21:28:30 +02:00
Tim Felgentreff
4f62cfd8d8 allow dynamic load of sounds as well 2022-04-27 21:28:24 +02:00
Tim Felgentreff
fab3025b7a let sdl mixer free our sdl_rwops 2022-04-27 21:28:16 +02:00
Tim Felgentreff
8a0f012a54 share mngs 2022-04-27 21:28:08 +02:00
Tim Felgentreff
67c0db506b support size in SDL_RWops from CFile 2022-04-27 21:27:59 +02:00
Tim Felgentreff
4f969e5f0d download/setup stargus 2022-04-27 21:27:50 +02:00
Tim Felgentreff
8f38d5fe66 clean up MakeShadow function a bit 2022-04-27 21:27:37 +02:00
Tim Felgentreff
84606ed541 add shrinking for shadows 2022-04-27 21:27:26 +02:00
Tim Felgentreff
148fc8a037 apply a shearing effect to generated shadows 2022-04-25 21:54:03 +02:00
Tim Felgentreff
880e90f784 add a simple mechanism to combine graphics from lua with overlay/mask 2022-04-12 21:08:26 +02:00
Tim Felgentreff
e8735b04a0 support alternative spritesheet for units below 50% health 2022-04-12 09:24:20 +02:00
Tim Felgentreff
86f08104dc Merge branch 'master' of https://github.com/Wargus/stratagus 2022-04-11 13:41:46 +02:00
Tim Felgentreff
3573750fbe new code for palette changes in icons based on unit variables 2022-04-11 13:41:16 +02:00
Tim Felgentreff
b6b9761df9
Merge pull request from SimoneStarace/master
Added more example codes for the lua function calls in the TOC
2022-04-10 14:49:54 +02:00
Simone Starace
75749b8409 Added more example codes for units scripts. 2022-04-10 12:10:53 +02:00
Tim Felgentreff
72d87848d3 use 32-bit alpha for fancy shadows 2022-04-10 07:40:32 +02:00
Simone Starace
8db9d17da3 Added examples in shaders.cpp 2022-04-09 20:26:07 +02:00
Simone Starace
bb33ed7525 Bold text on some examples. 2022-04-09 19:39:41 +02:00
Tim Felgentreff
2927109feb do not randomly play talking animations 2022-04-08 09:00:02 +02:00
Tim Felgentreff
c82c2adccd add support for UI.DefaultUnitPortrait to draw when no selection is active 2022-04-08 08:58:56 +02:00
Tim Felgentreff
9dbf9c1019 add "talking" as a tag in portrait definitions to show when unit is playing sound 2022-04-08 08:58:04 +02:00
Tim Felgentreff
ef4527fda7 fix mng constructor 2022-04-07 20:39:42 +02:00
Tim Felgentreff
67e26bbbcf allow content type icon to select icon kind (group, single, button, transport) 2022-04-07 20:39:34 +02:00
Tim Felgentreff
385796e536 add support for different icons drawn based on health for single, multi, and transport selection 2022-04-07 19:22:21 +02:00
Tim Felgentreff
5a6ffa8be1 fix potential crash when portraits are used, draw portrait of first selected unit in group 2022-04-07 19:22:19 +02:00
Tim Felgentreff
a7474b9603 use GetDrawLevel() for map drawing order calculation 2022-04-03 10:38:27 +02:00
Tim Felgentreff
60a2aacf69 implement displacement move towards a unit 2022-04-03 10:38:05 +02:00
Tim Felgentreff
2c9305b464 allow rotating towards building unit, take displacement into account 2022-04-03 10:37:36 +02:00
Tim Felgentreff
e6c0a18486 Expose unit variables PosBottom and PosRight 2022-04-03 10:37:08 +02:00
Tim Felgentreff
0b10ad59d8 fixup last commit 2022-04-02 18:04:10 +02:00
Tim Felgentreff
58c6c5967a add a wiggle animation for ships and planes to have sub-tile movement 2022-04-02 17:56:13 +02:00