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
Tim Felgentreff
c3775bba61
fix checking of resource for terrain resources
2022-03-20 19:55:14 +01:00
Tim Felgentreff
ca6e656cdd
don't count more than 10 repeats of a message
2022-03-20 14:43:07 +01:00
Tim Felgentreff
5f490b8dea
ignore building rules when not in game (i.e. editor)
2022-03-19 10:10:36 +01:00
Tim Felgentreff
ffc888ec8d
add "non-mixing" flag for solid tiles that don't need mixing
2022-03-18 22:40:08 +01:00
Tim Felgentreff
e760c1b750
implement terrain harvesting of other resources than wood.
...
this refactoring is incomplete, since there can still be only one kind of harvestable terrain per tileset. the wood tables are still used. the only change is that we can get something other than wood from the terrain
2022-03-18 22:17:33 +01:00
Tim Felgentreff
3a2ca191f6
more flexibile default tile index
2022-03-18 22:17:31 +01:00
Tim Felgentreff
8b8398f37f
use std::bitset for user settings manipulation
2022-03-17 19:42:14 +01:00
Tim Felgentreff
fe79e510ae
don't reset NumDirections and Flip
2022-03-17 19:42:11 +01:00
Tim Felgentreff
835901850c
minimum fix for "static initializer fiasco"
2022-03-17 19:42:09 +01:00
Tim Felgentreff
34ef826f67
make SaveReplay work again
2022-03-17 19:42:05 +01:00
Tim Felgentreff
f089657f4a
newline in lua DebugPrint
2022-03-17 19:42:03 +01:00
Tim Felgentreff
1a5f6eb63f
set shared vision for teamed players
2022-03-17 19:42:01 +01:00
Tim Felgentreff
31495b4f37
expose the boolean flags that moved to GameSettings
2022-03-15 23:22:38 +01:00