Skip to content

Add /bg_suffix CM-only command which allows you to set the background's suffix. The logic is it's background + suffix to construct the actual background path#176

Merged
Crystalwarrior merged 1 commit into
masterfrom
bg-suffix
Jul 5, 2025
Merged

Add /bg_suffix CM-only command which allows you to set the background's suffix. The logic is it's background + suffix to construct the actual background path#176
Crystalwarrior merged 1 commit into
masterfrom
bg-suffix

Conversation

@Crystalwarrior

@Crystalwarrior Crystalwarrior commented Jul 5, 2025

Copy link
Copy Markdown
Owner

One example where this would be useful is if your background has 2 day/night states, and 2 states of destruction, e.g. 'intact' and 'broken'.
So you'd set it up as:

HotelLobby/intact/wit.png
HotelLobby/broken/wit.png

HotelLobby/Night/intact/wit.png
HotelLobby/Night/broken/wit.png

Then, you'd set it up as /bg HotelLobby, /bg_suffix /intact.
For night version, all you'd have to do is /bg HotelLobby/Night and it would preserve the suffix.
And now, if you run /bg_suffix /broken, it will update properly even in the Night version of the background.

…'s suffix. The logic is it's `background + suffix` to construct the actual background path

One example where this would be useful is if your background has 2 day/night states, and 2 states of destruction, e.g. 'intact' and 'broken'.
So you'd set it up as:
```
HotelLobby/intact/wit.png
HotelLobby/broken/wit.png

HotelLobby/Night/intact/wit.png
HotelLobby/Night/broken/wit.png```

Then, you'd set it up as `/bg HotelLobby`, `/bg_suffix /intact`.
For night version, all you'd have to do is `/bg HotelLobby/Night` and it would preserve the suffix.
And now, if you run `/bg_suffix /broken`, it will update properly even in the Night version of the background.
@Crystalwarrior
Crystalwarrior merged commit cdbdcbc into master Jul 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant