Commit graph

17929 commits

Author SHA1 Message Date
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 #395 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
Tim Felgentreff
4ac36b567e fix a crash 2022-04-02 12:21:39 +02:00
Tim Felgentreff
6e7def937f fix negative condition for panel content on variable value 2022-04-02 11:02:20 +02:00
Tim Felgentreff
99579eea94 add some more flexibility for live reloading of ui, allow using frames in panel graphics 2022-04-01 20:12:39 +02:00
Tim Felgentreff
c172559e1d fix linux build 2022-04-01 20:11:18 +02:00
Tim Felgentreff
aa446c8c84 let midiplayer work with non-standard windows midi 2022-03-30 21:12:19 +02:00
Tim Felgentreff
6d46ad2b1f minor cleanup for movie playing 2022-03-30 21:12:16 +02:00
Tim Felgentreff
48247c62fe ship midiplayer to clients 2022-03-30 06:41:58 +02:00
Tim Felgentreff
f229041618 exe name fix 2022-03-29 22:02:51 +02:00
Tim Felgentreff
9e11518abb use an external command to play midi music on windows
this works around the SDL_mixer known issue that on
windows, controlling the music volume for midi playback
always changes the entire process volume, so also affects
effect sounds. unfortunately, Mix_SetMusicCMD doesn't
work on windows either. so we just detect midi file
playback and launch a trivial midi player in an external
process with a fixed volume.
2022-03-29 22:02:05 +02:00
Tim Felgentreff
4bb6e4d572 minor fix for transporter pathing 2022-03-29 22:01:11 +02:00
Tim Felgentreff
a2dabda95c play shore sound only when really docking/undocking 2022-03-29 22:01:09 +02:00
Tim Felgentreff
7ee37e0039 simplify upgrade_to check, give back resources when upgrade fails. fixes https://github.com/Wargus/wargus/issues/172 2022-03-29 22:01:07 +02:00
Tim Felgentreff
5dd162f2c3 fix transports getting stuck during unloading. fixes https://github.com/Wargus/wargus/issues/121 2022-03-28 21:55:41 +02:00
Tim Felgentreff
415b4aacd0 fix editor ui bug with 5x5 cursor 2022-03-26 19:44:50 +01:00
Tim Felgentreff
f782c6ddeb make scroll margins configurable 2022-03-26 19:44:49 +01:00
Tim Felgentreff
440461711a make color cycling speed configurable 2022-03-24 21:09:57 +01:00
Tim Felgentreff
ea39c88030 fix compiler warning 2022-03-24 21:09:54 +01:00
Tim Felgentreff
7fe371d3f2 add option for ellipse selection with y-stretch factor 2022-03-24 21:09:50 +01:00
Tim Felgentreff
f73b0d30ae 1-based player index for users 2022-03-24 21:09:42 +01:00
Tim Felgentreff
fff79869ee allow plain graphic as panel content 2022-03-24 21:09:38 +01:00
Tim Felgentreff
8006ae7a6b make popups accept functions 2022-03-23 21:44:44 +01:00
Tim Felgentreff
58e177f6ad fix outside builder for buildings 2022-03-22 22:57:51 +01:00
Tim Felgentreff
31d5982da8 allow terrain harvesters to return resources early 2022-03-22 22:32:07 +01:00
Tim Felgentreff
db46d0da55 push clicking player into button callback action 2022-03-21 20:42:58 +01:00
Tim Felgentreff
8e2ee3c233 show buttons from *the* neutral player 16 2022-03-21 17:09:16 +01:00