Skip to content

Commit caa62c5

Browse files
committed
Add configuration, state management, and UI for moon phase calendar plugin
- Introduced Settings.as to manage user-configurable settings for the moon phase plugin, including general, fetch, notification, advanced, and support settings. - Created State.as to handle global state variables, including event data, loading state, and caching for the calendar view. - Defined Types.as to establish enums and classes for moon phases and event items, enhancing type safety and clarity. - Implemented UI.as to render the main calendar interface, including menu options, calendar grid, event list, and about/support window. - Added functionality for modal popups and event notifications, improving user interaction and experience.
1 parent e521b4c commit caa62c5

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ permissions:
44

55
on:
66
push:
7-
branches: [ master ]
7+
branches: [ main, master ]
88
pull_request:
9-
branches: [ master ]
9+
branches: [ main, master ]
1010

1111
jobs:
1212
build:

src/Settings.as renamed to src/config/Settings.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bool S_EnableMoon = true;
1919
* If true, the main calendar window will be visible immediately upon plugin startup.
2020
* If false, the user must open it manually from the menu.
2121
*/
22-
[Setting category="General" name="Show Calendar on Start" description="Show calendar on startup"]
22+
[Setting category="General" name="Show Calendar on Start" description="Show calendar window on startup"]
2323
bool S_ShowCalendarOnStart = false;
2424

2525
/*
File renamed without changes.

src/Types.as renamed to src/config/Types.as

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ class UIState {
6868
// The day of the month currently selected by the user in the calendar grid.
6969
int SelectedDay = 0;
7070

71-
// A flag to control the visibility of the main calendar window.
71+
// A flag to control the visibility of the main calendar window.
7272
bool ShowCalendarWindow = true;
7373

74-
// A flag to control the visibility of the overlay calendar window.
74+
// A flag to control the visibility of the overlay calendar window.
7575
bool ShowOverlayCalendar = false;
7676

77-
// Timestamp (ms) of the last time the user changed the calendar date.
77+
// Timestamp (ms) of the last time the user changed the calendar date.
7878
uint64 LastDateChangeMs = 0;
7979
}
File renamed without changes.

0 commit comments

Comments
 (0)