1
NeoLemmix Main / Re: Don't exit on losing all lemmings (feature development)
« on: May 15, 2024, 10:19:15 PM »
Thanks for the quick merge!
-- Simon
-- Simon
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
what an enum is
another evening this week I'll make sure to get it in the calendar.
if not MatchStr(sOption, sPossibleOptions) then
EndifLevelPassed := True
else begin
AlwaysEndGameplay := (sOption = 'Always');
EndIfLevelPassed := (sOption = 'IfLevelPassed');
NeverEndGameplay := (sOption = 'Never');
end;
AlwaysEndGameplay := (sOption = 'Always');
NeverEndGameplay := (sOption = 'Never');
EndIfLevelPassed := not AlwaysEndGameplay and not NeverEndGameplay;
type TExitToPostview = (
etpAlways,
etpIfPassed,
etpNever
);
var ExitToPostview : TExitToPostview;
if sOption = 'Always' then
ExitToPostview := etpAlways;
else if sOption = 'Never' then
ExitToPostview := etpNever;
else
ExitToPostview := etpIfPassed;
"End if Level Passed" should be the default
3 possible strings, one for each option ['Always', 'IfLevelPassed', 'Never'].
blank or nonsensical), we simply load the default.
multiple lines [...] only the first one is loaded & handled
MRC is behaving as we'd like (apart from the bug you reported here
The option is now stored as "ExitToPostviewOption"
Here's V6-A which implements these fixes (to Commit a2610dc).
ready for the PR now. Do let me know if there's any other last-minute tweaks
Got it!
version (Windows) {
import core.sys.windows.windows;
const wstring messageBody = /* ... */
MessageBoxW(null, messageBody.ptr, null, MB_ICONERROR);
}