Skip to content

Commit

Permalink
Merge pull request #11 from jonathan-robertson/dev
Browse files Browse the repository at this point in the history
Add days-remaining variant
  • Loading branch information
jonathan-robertson authored Apr 16, 2023
2 parents 807bc4b + 48fdb40 commit 33a4cb9
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [TODO]

- update reference to only-seven-days mod

## [0.4.0] - 2023-04-14

- add note about days-remaining mod
- add windows-days-remaining.xml option

## [0.3.0] - 2023-04-08

- add localization for every supported language
Expand Down
17 changes: 17 additions & 0 deletions Config/XUi/windows-days-remaining.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<config>
<!-- compass -->
<set xpath="/windows/window[@name='windowCompass']/sprite/label/@text">[{daycolor}]{# localization('dayOfTheWeek' + (day-1)%7)}[-] {time}</set>

<!-- journal entries (no real value) -->
<remove xpath="/windows/window[@name='windowJournalEntryDescription']/panel[@name='header']/label[@text='{timestamp}']" />

<!-- map menu (no real value; duplicated info from compass) -->
<remove xpath="/windows/window[@name='mapArea']/panel[@name='content']/panel[@name='mapView']/rect[@name='content']/sprite[@name='dayTimeIcon']" />
<remove xpath="/windows/window[@name='mapArea']/panel[@name='content']/panel[@name='mapView']/rect[@name='content']/label[@name='dayTimeLabel']" />

<!-- quest menu (no real value) -->
<remove xpath="/windows/window[@name='windowQuestRewards']/panel[@name='header']/label[@text='{finishtime}']" />

<!-- remove trader restock date -->
<remove xpath="/windows/window[@name='windowTrader']/panel[@name='header']/label[@text='{restocklabel}: {timeleft}']" />
</config>
2 changes: 1 addition & 1 deletion ModInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Name value="Days of the Week" />
<Description value="Replace days count in UI with a day of the week." />
<Author value="Jonathan Robertson (Kanaverum)" />
<Version value="0.3.0" />
<Version value="0.4.0" />
<Website value="https://github.com/jonathan-robertson/days-of-the-week" />
</ModInfo>
</xml>
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
- [Summary](#summary)
- [Optional Vending Expiration Clock](#optional-vending-expiration-clock)
- [Optional Trader Restock Clock](#optional-trader-restock-clock)
- [Days Remaining Compatibility Mode](#days-remaining-compatibility-mode)
- [Optional Short Day](#optional-short-day)
- [Sister Project](#sister-project)
- [Sister Projects](#sister-projects)
- [Compatibility](#compatibility)
- [Acknowledgements](#acknowledgements)

Expand Down Expand Up @@ -48,6 +49,10 @@ If you highly prefer to have Restock Days display, I have included an optional c

> ℹ️ If you do not like this, feel free to adjust
### Days Remaining Compatibility Mode

TODO

### Optional Short Day

If you want to integrate this mod into any existing mod, you can still use the same format found in line 3 of `windows.xml` to update your own compass days value.
Expand All @@ -64,9 +69,12 @@ As a bonus, I've included short days as well - in case you're shooting for a mor
[{daycolor}]{# localization('shortDayOfTheWeek' + (day-1)%7)}[-] {time}
```

## Sister Project
## Sister Projects

This mod is designed to work well with a few others if you're using a dedicated server:

This mod is designed to work well with another if you're using a dedicated server: [Only Seven Days](https://github.com/jonathan-robertson/only-seven-days).
- [Only Seven Days](https://github.com/jonathan-robertson/only-seven-days)
- [Days Remaining](https://github.com/jonathan-robertson/days-remaining)

## Compatibility

Expand Down

0 comments on commit 33a4cb9

Please sign in to comment.