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 #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