Commit Graph
62 Commits
Author SHA1 Message Date
Strangerke d120d3822f BAGEL: Remove some more useless checks in boflib 2024-05-19 22:20:55 +01:00
Strangerke ccbbcb0d43 BAGEL: Introduce fatalError() to slowly move fatal errors from reportError to it, remove some unused stuff in error.h/pp and string.h/cpp 2024-05-13 20:40:42 +01:00
Eugene Sandulenko ca8978bfa0 BAGEL: Renames in boflib/[t-v]*.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 80353eb6fc BAGEL: Renames in boflib/sound.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko da42da4b4b BAGEL: Renames in boflib/l*.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko ae79f39c48 BAGEL: Renames in boflib/[ef]*.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 8af060fee5 BAGEL: Renames in boflib/[cd]*.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko ce5561b046 BAGEL: Renames in boflib/app.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko ab4ec5da0f BAGEL: Renames in pacebar/nav_window.h and spacebar/slot_wnd.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 7e3f867145 BAGEL: Renames in boflib/gfx/palette.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 29a2410771 BAGEL: Rename class methods in boflib/gfx/bitmap.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko dd992e317d BAGEL: Renamed rest of boflib/gui/window.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 85b6242278 BAGEL: Partial method renames in boflib/gui/window.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 9b863bf446 BAGEL: Rename class methods in boflib/gui/list_box.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 750f546afd BAGEL: Rename class variables in boflib/gui/button.h 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 24aed88151 BAGEL: Some renames in boflib/gui/dialog.h 2024-05-05 13:27:01 +02:00
SupSuper a887e9848e BAGEL: Apply audio SFXType to movies 2024-05-05 13:27:01 +02:00
Strangerke e17ddafe0f BAGEL: Rename some members of CBagel 2024-05-05 13:27:01 +02:00
Paul Gilbert fe524ff182 BAGEL: Fix script loading errors in CBagVariableObject 2024-05-05 13:27:01 +02:00
Paul Gilbert 56ace34945 BAGEL: Further #if block removal 2024-05-05 13:27:01 +02:00
Paul Gilbert 8ec36d4a86 BAGEL: Yet more BOF_MAC removal 2024-05-05 13:27:01 +02:00
Paul Gilbert 17d953f184 BAGEL: Removal of BOF_MAC blocks from boflib/ 2024-05-05 13:27:01 +02:00
Paul Gilbert 8ec3ff942a BAGEL: Cleanup of some boflib/ files 2024-05-05 13:27:01 +02:00
Paul Gilbert 863f60ba94 BAGEL: Added console command to play video 2024-05-05 13:27:01 +02:00
Strangerke 6b52b9a3d8 BAGEL: Remove two unused functions in app.h/cpp, reduce variable scopes and split some assignments out of if statements 2024-05-05 13:27:01 +02:00
Paul Gilbert 979b3fbf4b BAGEL: Remove debug log class 2024-05-05 13:27:01 +02:00
Paul Gilbert ba9081009d BAGEL: Remove BOF_DEBUG blocks 2024-05-05 13:27:01 +02:00
D G Turner 9b2545de63 BAGEL: Fix GCC Undefined Symbol Warnings For BOF_DEBUG
These are emited if -Wundef is passed to GCC.
2024-05-05 13:27:01 +02:00
Eugene Sandulenko e55173b1ee BAGEL: ERROR_CODE -> ErrorCode 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 886bbc38d8 BAGEL: TRUE -> true 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 4197f7bdc4 BAGEL: INT -> int 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 48dadba29b BAGEL: CHAR -> char 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 7ffd1fba48 BAGEL: BOOL -> bool 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 159fe3f40f BAGEL: LONG -> int32 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 7e6c2d89c9 BAGEL: VOID -> void 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 6612a3767c BAGEL: Replace USHORT, UINT* and DOUBLE with ScummVM types 2024-05-05 13:27:01 +02:00
Paul Gilbert 578d984f38 BAGEL: Standardize the initialize/shutdown static methods 2024-05-05 13:27:01 +02:00
Paul Gilbert 616efcedfc BAGEL: Implement global GetMousePos function 2024-05-05 13:27:01 +02:00
Paul Gilbert 17c959ef2a BAGEL: Route user messages through ScummVM event queue
I'm still not 100% happy with it. BAGEL has a concept of
a "master window", which in turn has a SpaceBar descendant
that maintains a "current window" within it for the
on-screen view. Currently, all events have to go to it,
*except* for user messages which are implemented on the
master window subclass.

So to handle this, I call handleEvents on the master window,
and the master window has an overriden handleEvent that
either calls the master window's OnUserMessage directly for
user events, and passes all other event types on to the
current window view.
2024-05-05 13:27:01 +02:00
Paul Gilbert 749d71e95b BAGEL: Adding user events for handling WM_EXITCLOSEUPWINDOW 2024-05-05 13:27:01 +02:00
Paul Gilbert 40ebfa678a BAGEL: Fix crash in OnMouseMove after switching to other scenes
Not sure if it's the cleanest way, but the current storage dev
window under the master window seems to be the currently shown
window. So it makes sense that events get sent there as well.
2024-05-05 13:27:01 +02:00
Paul Gilbert 2c4ace5dcc BAGEL: Fix crash quitting whilst movie is playing 2024-05-05 13:27:01 +02:00
Paul Gilbert f009cce051 BAGEL: Do handleEvents on the active window, not the last added one 2024-05-05 13:27:01 +02:00
Paul Gilbert c332abf5ca BAGEL: Add handleEvents call to main app game loop 2024-05-05 13:27:01 +02:00
Eugene Sandulenko 122882f9da BAGEL: Fix compilation 2024-05-05 13:27:01 +02:00
Paul Gilbert 6f83ef60c0 BAGEL: Create handleEvents method in CBofWindow 2024-05-05 13:27:01 +02:00
Paul Gilbert dc0869dce7 BAGEL: Beginnings of event handling 2024-05-05 13:27:01 +02:00
Paul Gilbert 02e201e5a1 BAGEL: Add FrameLimiter and scren update to main game loop 2024-05-05 13:27:01 +02:00
Paul Gilbert 85caf0d244 BAGEL: Fix initialization of m_bofApp static 2024-05-05 13:27:01 +02:00
Paul Gilbert b47c3f7f4a BAGEL: Startup cleanups 2024-05-05 13:27:01 +02:00