Commit Graph
95 Commits
Author SHA1 Message Date
Martin Gerhardy 0b29c0cd3c TWINE: replaced magic numbers 2020-11-26 23:13:22 +01:00
Martin Gerhardy 98d333d2c6 TWINE: fixed restarting music track
Addresses bug https://bugs.scummvm.org/ticket/11978
2020-11-26 09:43:08 +01:00
Martin Gerhardy ac943779d2 TWINE: fixed behaviour menu offsets
introduced in a967242757
2020-11-26 09:43:08 +01:00
Martin Gerhardy a9c3c7987f TWINE: removed unused parameters 2020-11-25 21:47:28 +01:00
Martin Gerhardy a967242757 TWINE: more Common::Rect refactorings 2020-11-25 19:41:52 +01:00
Martin Gerhardy 25d8c6b1f1 TWINE: toggle between mouse and keyboard input 2020-11-25 17:14:16 +01:00
Martin Gerhardy 1fbb881b19 TWINE: more use of Common::Rect 2020-11-25 17:00:44 +01:00
Martin Gerhardy e8fcff6e6d TWINE: implement ui control via mouse
Also optimized the on-screen keyboard rendering a lot, renamed
parameters and started to use Common::Rect
2020-11-25 17:00:44 +01:00
Martin Gerhardy d5174c2cf7 TWINE: renamed method 2020-11-22 22:42:24 +01:00
Martin Gerhardy 0e8232bad4 TWINE: renamed more Text class members 2020-11-22 22:42:24 +01:00
Martin Gerhardy c1ec0a7627 TWINE: renamed Text class members and methods 2020-11-22 22:42:24 +01:00
Martin Gerhardy 6bf64769ea TWINE: fixed missing textid in while condition 2020-11-22 22:42:24 +01:00
Martin Gerhardy d43f929af8 TWINE: replaced magic numbers 2020-11-22 22:42:24 +01:00
Martin Gerhardy abe94d4316 TWINE: renamed some members of the Text class 2020-11-22 22:42:24 +01:00
Martin Gerhardy 057712cdc3 TWINE: hide access to gameFlags array 2020-11-22 22:42:24 +01:00
Martin Gerhardy 49be0a49a6 TWINE: changed behaviour of ScopedKeyMap
it's dangerous to disable a keymap because you could lose the action state.
Now we just enable another keymap - and disable it after we are done. So
we don't lose the action state. This fixes a problem with the hero walking
along a sign and hit the action button. We are starting the text sequence.
Once this is over and you have released the cursor keys during read, the actor
would still move.
2020-11-21 15:38:36 +01:00
Martin Gerhardy 28b5e2fb01 TWINE: ensure that we are ending with an invalid keymap state 2020-11-21 15:24:46 +01:00
Martin Gerhardy 65b3828cdc TWINE: fixed losing the active actor control if you activate the behaviour menu 2020-11-21 15:24:46 +01:00
Martin Gerhardy 699c8225c6 TWINE: replaced magic numbers with constants
and started to mark the angles - to be able to refacto them easier later on
2020-11-20 18:34:50 +01:00
Martin Gerhardy c9dfcf2474 TWINE: inlined constant 2020-11-18 20:29:43 +01:00
Martin Gerhardy d2277d0c22 TWINE: prepare for mouse ui support 2020-11-18 20:29:43 +01:00
Martin Gerhardy becdd25646 TWINE: allow to leave a menu with esc 2020-11-18 20:29:43 +01:00
Martin Gerhardy e9bb99d3ab TWINE: Reduced scope + minor cleanup 2020-11-16 21:23:04 +01:00
Martin Gerhardy df75fac95f TWINE: removed screenLookupTable 2020-11-16 21:23:04 +01:00
Martin Gerhardy 88aebb8313 TWINE: converted HeroBehaviourType to enum class 2020-11-14 15:54:45 +01:00
Martin Gerhardy 7eac628d27 TWINE: converted ShapeType to enum class 2020-11-14 15:54:45 +01:00
Martin Gerhardy e729e2eaea TWINE: removing scaling code - use scummvm scaling 2020-11-13 17:45:04 +01:00
Martin Gerhardy 0872f41cd8 TWINE: added todo about the missing credits scene 2020-11-13 17:45:04 +01:00
Martin Gerhardy 5366ea735c TWINE: ensure menu background after giving up
also the initial values for the advanced menu entries are correct now
2020-11-13 17:45:04 +01:00
Martin Gerhardy 2c06f2bba7 TWINE: fixed non-transparent ui while game is running
the original game has these menus rendered with transparency over the actual scene
2020-11-13 17:45:04 +01:00
Martin Gerhardy bac82c726f TWINE: small helper method to match the textid to behaviours 2020-11-05 18:56:08 +01:00
Martin Gerhardy 1a2ebdc5da TWINE: fixed agressive behaviour type text id in options menu 2020-11-05 18:56:08 +01:00
Martin Gerhardy b14b0c1a13 TWINE: tweaked rendering the playername 2020-11-04 20:22:59 +01:00
Martin Gerhardy f560390f7e TWINE: implement load-savegame menu
also save game loading from launcher is supported now
2020-11-03 18:29:36 +01:00
Martin Gerhardy 0a3a634daf TWINE: moved scene text bank id into scene class 2020-11-03 18:29:36 +01:00
Martin Gerhardy df8dc9f270 TWINE: replaced magic numbers 2020-11-03 18:29:36 +01:00
Martin Gerhardy 2e5d3977c9 TWINE: reduced memory allocations 2020-11-03 18:29:36 +01:00
Martin Gerhardy 42628c51be TWINE: return the button text - not just the id 2020-11-03 18:29:36 +01:00
Martin Gerhardy 3257107fad TWINE: refactored menu data 2020-11-03 18:29:36 +01:00
Martin Gerhardy 8e926838be TWINE: minor cleanup 2020-11-03 18:29:36 +01:00
Martin Gerhardy 7ba94d71af TWINE: started to implement save/load 2020-11-03 18:29:36 +01:00
Martin Gerhardy 216306859b TWINE: the hqr code doesn't have any state - converted back to functions 2020-10-30 23:50:44 +01:00
Martin Gerhardy 31ed2761be TWINE: fixed button states on menu initialization 2020-10-27 17:58:29 +01:00
Martin Gerhardy 0bef6c419d TWINE: according to the manual you don't have to hold down shift
... for the inventory menu
2020-10-27 17:14:05 +01:00
Martin Gerhardy 10571de5aa TWINE: reduced visibility and return value checks 2020-10-27 17:14:05 +01:00
Martin Gerhardy b7aa562484 TWINE: replaced magic numbers with text ids 2020-10-27 17:14:05 +01:00
Martin Gerhardy 9671ab083a TWINE: implemented options 2020-10-27 17:14:05 +01:00
Martin Gerhardy f9bcdaae46 TWINE: allow to quit from menus 2020-10-27 17:14:05 +01:00
Martin Gerhardy 1b143bca5c TWINE: missing mean breaks 2020-10-27 17:14:05 +01:00
Martin Gerhardy 0e9bc030f1 TWINE: moved animTable into Resources class 2020-10-27 17:14:05 +01:00