Skip to content

Commit

Permalink
Holiday banners + holiday credits
Browse files Browse the repository at this point in the history
Signed-off-by: SheridanR <sheridan.rathbun@gmail.com>
  • Loading branch information
SheridanR committed Sep 25, 2023
1 parent c53b53e commit e9ad2c7
Show file tree
Hide file tree
Showing 5 changed files with 289 additions and 74 deletions.
99 changes: 97 additions & 2 deletions lang/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7730,7 +7730,102 @@ Upload#
6025 Credits#
6026 Display#
6027 View credits for holiday content.#
6028 Credits go here#
6029 Okay#
6028 Next
Page#
6029 Close#

# Scarony Barony Credits:

6030 caves00 - Among Us by Myuu
caves01 - Fatal Shrine by Myuu
caves02 - Tormented Souls by Myuu
citadel00 - Evil Returns by Myuu
citadel01 - Friday the 13th by Myuu
citadel02 - October 31st by Myuu#

6031 endgame - The Order's Theme by Myuu
herxboss - Soul Rail by Myuu
intermission - Echo by Myuu
intro - Ghost Town by Myuu
intro01 - Countdown by Myuu
intro02 - Untold Secrets by Myuu#

6032 labyrinth00 - Final Showdown by Myuu
labyrinth01 - Living in the Dark by Myuu
labyrinth02 - Silent Turmoil by Myuu
library - Countdown by Myuu
mines00 - Look Out by Myuu
mines01 - Haunted House by Myuu#

6033 mines02 - Nebula by Myuu
mines03 - Strange Vision by Myuu
mines04 - The Crypt by Myuu
minetown - Haunted By Screams by Myuu
minotaur00 - Run! by Myuu
minotaur01 - Cornered by Myuu#

6034 ruins00 - You're Next by Myuu
ruins01 - Into the Depths by Myuu
ruins02 - The Backrooms by Myuu
sanctum - Metamorphosis by Myuu
shop - Carnival Freaks by Myuu
swamp00 - Poltergeist by Myuu#

6035 swamp01 - Abyss by Myuu
swamp02 - Danger by Myuu
swamp03 - Growing Shadows
temple - Extinction by Myuu#

# Merry Barony credits:

6036 caves00 - Sleigh Bells by Myuu
caves01 - Deck the Halls by Myuu
caves02 - Snow Wonders by Myuu
citadel00 - Jingle Bells by Myuu
citadel01 - Underneath the Christmas Tree by Myuu
citadel02 - God Rest Ye Merry Gentlemen by Myuu#

6037 endgame - Disintegrating by Myuu
escape - Deck the Halls by Myuu
hell00 - Deck the Halls by Myuu
hell01 - Santa's Tricks by Myuu
hell02 - Winter Trouble by Myuu
herxboss - Krampus is Here by Myuu#

6038 intermission - Disintegrating by Myuu
introduction - Disintegrating by Myuu
labyrinth00 - Ice Land (Part 1) by Myuu
labyrinth01 - Holiday Macabre by Myuu
labyrinth02 - Disintegrating by Myuu
library - Santa's Tricks by Myuu#

6039 mines00 - Sleigh Bells by Myuu
mines01 - God Rest Ye Merry Gentlemen by Myuu
mines02 - Silent Night by Myuu
mines03 - Carol of the Bells by Myuu
mines04 - Angels We Have Heard on High by Myuu
minetown - Underneath the Christmas Tree by Myuu#

6040 minotaur00 - Krampus is Here by Myuu
minotaur01 - Deck the Halls by Myuu
ruins00 - Ice Land (Part 2) by Myuu
ruins01 - Winter Trouble by Myuu
ruins02 - Snow Wonders by Myuu
sanctum - Krampus is Here by Myuu#

6041 shop - Sleigh Bells by Myuu
swamp00 - Jingle Bells by Myuu
swamp01 - Rudolph the Red Nosed Reindeer by Myuu
swamp02 - Dance of the Sugar Plum Fairy by Myuu
swamp03 - What Child is This by Myuu
temple - Santa's Tricks by Myuu#

6042 underworld00 - Ice Land (Part 1) by Myuu
underworld01 - Deck the Halls by Myuu
underworld02 - Winter Trouble by Myuu#

6043 No holiday currently active.#

6044 Show Player Callouts#

6100 end#
12 changes: 6 additions & 6 deletions src/files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ char outputdir[PATH_MAX];
const char* holidayThemeDirs[HolidayTheme::THEME_MAX] = {
"",
"themes/scarony/",
"themes/christmas/"
"themes/merry/"
};

#ifndef EDITOR
ConsoleVariable<int> cvar_forceHoliday("/force_holiday", 0);
ConsoleVariable<int> cvar_forceHoliday("/force_holiday", 2);
ConsoleVariable<bool> cvar_disableHoliday("/disable_holiday", false);
#endif

HolidayTheme getCurrentHoliday() {
HolidayTheme getCurrentHoliday(bool force) {
#ifndef EDITOR
if (*cvar_disableHoliday) {
if (*cvar_disableHoliday && !force) {
return HolidayTheme::THEME_NONE;
}
if (*cvar_forceHoliday) {
Expand All @@ -75,8 +75,8 @@ HolidayTheme getCurrentHoliday() {
}
}

bool isCurrentHoliday() {
return getCurrentHoliday() != HolidayTheme::THEME_NONE;
bool isCurrentHoliday(bool force) {
return getCurrentHoliday(force) != HolidayTheme::THEME_NONE;
}

std::unordered_map<std::string, int> mapHashes = {
Expand Down
4 changes: 2 additions & 2 deletions src/files.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ enum HolidayTheme {
THEME_MAX
};
extern const char* holidayThemeDirs[HolidayTheme::THEME_MAX];
HolidayTheme getCurrentHoliday();
bool isCurrentHoliday();
HolidayTheme getCurrentHoliday(bool force = false);
bool isCurrentHoliday(bool force = false);

#ifndef EDITOR
#include "interface/consolecommand.hpp"
Expand Down
9 changes: 3 additions & 6 deletions src/interface/drawminimap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ static Mesh circle_mesh;
static Mesh triangle_mesh = {
{
1.f, .0f, 0.f,
-.5f, .5f, 0.f,
0.f, .0f, 0.f,
1.f, .0f, 0.f,
0.f, 0.f, 0.f,
-.5f, -.5f, 0.f,
0.f, 0.f, 0.f,
-.5f, .5f, 0.f,
-.5f, -.5f, 0.f,
}, // positions
Expand Down Expand Up @@ -889,6 +883,9 @@ void drawMinimap(const int player, SDL_Rect rect, bool drawingSharedMap)

// draw
triangle_mesh.draw();

// for outline:
//triangle_mesh.draw(GL_LINE_LOOP);
};

const real_t size = entity->sprite == 239 ? 2.0 : 1.0;
Expand Down
Loading

0 comments on commit e9ad2c7

Please sign in to comment.