Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
DayZ n' Chill committed Feb 27, 2024
2 parents 494acef + 08e07eb commit 1763a0b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Colorful-UI/Scripts/3_Game/Colorful-UI/cui.constants.c
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
// Constants.c
// Ver 2.0
// Constants.c v2.0

// RANDO IMAGES ----------------------------------------------------------------
// If you dont want to use the UiHintPanel you can use these instead.
string GetRandomBackground()
{
const string images[] = {
"Colorful-UI/gui/textures/loading_screens/CUI2-BG1.edds",
"Colorful-UI/gui/textures/loading_screens/CUI2-BG2.edds",
"Colorful-UI/gui/textures/loading_screens/CUI2-BG3.edds"
};
// If you add more images be sure to change the image count
// If you add more images be sure to change the image count.
const int IMAGES_COUNT = 3;
int bgIndex = Math.RandomInt(0, IMAGES_COUNT - 1);
return images[bgIndex];
}

// SOCIALS & LINKS ---------------------------------------------------------------
// Set your links Here
class MenuURLS {
static string urlDiscord = "https://discord.gg/dayznchill";
static string urlFacebook = "https://www.facebook.com/DayZnChill/";
Expand All @@ -26,7 +29,7 @@ class MenuURLS {
}


// DIALOGS ---------------------------------------------------------------
// DIALOGS ------------------------------------------------------------------------
// There is No Need to mess with anything below this line.
const int COLORFUL_EXIT = 666;
const int COLORFUL_CONFIGURE = 667;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,44 @@ modded class MissionBase
break;
#endif

#ifdef VanillaPPMap
case VPP_MENU_MAP:
menu = new VPPMapMenu;
break;
#endif

#ifdef SERVERPANEL
switch (id) {
case SERVER_PANEL:
menu = GetServerPanelMenu();
break;
}
#endif

#ifdef DayZInformationPanel
case DIP_PANEL:
menu = new DayZInformationPanelUI;
break;
#endif

#ifdef SchanaModParty
case SCHANA_PARTY_MENU:
menu = new SchanaPartyMenu;
break;
#endif

#ifdef Trader
case TRADERMENU_UI:
menu = new TraderMenu;
break;
#endif

#ifdef BasicSpawnSelect
case BASIC_SPAWNSELECTMENU:
menu = new BasicSpawnSelectMenu;
break;
#endif

case MENU_STARTUP:
menu = new StartupMenu;
break;
Expand Down

0 comments on commit 1763a0b

Please sign in to comment.