Skip to content

Commit

Permalink
New game mode Royal Squad.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aessi committed Nov 19, 2018
1 parent 9b9a8cf commit b90c184
Show file tree
Hide file tree
Showing 9 changed files with 9,173 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* Royal UI
*/
#Extends "ManiaApps/Nadeo/AppBase.Script.txt"

#Const Version "2016-12-16"
#Const ScriptName "ManiaApps/Nadeo/ShootMania/SquadRoyal.Script.txt"

// ---------------------------------- //
// Libraries
// ---------------------------------- //
#Include "ManiaApps/Nadeo/ShootMania/Royal/Common.Script.txt" as UICommon
#Include "ManiaApps/Nadeo/ShootMania/Royal/Markers.Script.txt" as Markers
#Include "ManiaApps/Nadeo/ShootMania/Royal/RoundInfo.Script.txt" as RoundInfo
#Include "ManiaApps/Nadeo/ShootMania/Fun/Bonus_Client.Script.txt" as Bonus
#Include "ManiaApps/Nadeo/Shootmania/Royal/TeamSelection_Client2.Script.txt" as TeamSelection
#Include "ManiaApps/Nadeo/Shootmania/Royal/FakeScoreTable.Script.txt" as FakeScoreTable
#Include "ManiaApps/Nadeo/Shootmania/Royal/RoyalPlayerUI.Script.txt" as RoyalSquadUI
#Include "ManiaApps/Nadeo/Shootmania/Royal/MatesMarkers.Script.txt" as RoyalMatesMarkers
#Include "ManiaApps/Nadeo/Shootmania/Royal/RoyalSquadTuto.Script.txt" as RoyalSquadTuto


// ---------------------------------- //
// Settings
// ---------------------------------- //
#Setting S_ScriptEnvironment "production"

// ---------------------------------- //
// Extends
// ---------------------------------- //
***LoadLibraries***
***
TeamSelection::Load();
FakeScoreTable::Load();
RoyalSquadUI::Load();
RoyalMatesMarkers::Load();
RoyalSquadTuto::Load();
***

***AppLoop***
***
TeamSelection::Yield();
FakeScoreTable::Yield();
RoyalSquadUI::Yield();
RoyalMatesMarkers::Yield();
RoyalSquadTuto::Yield();
***

***UnloadLibraries***
***
TeamSelection::Unload();
FakeScoreTable::Unload();
RoyalSquadUI::Unload();
RoyalMatesMarkers::Unload();
RoyalSquadTuto::Unload();
***
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/**
* Royal Squad constants
*/
#Const Version "2018-06-22"
#Const ScriptName "Libs/Nadeo/ShootMania/Royal/Constants2.Script.txt"

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// Constants
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /
#Const C_CheckpointStatus_Null 0
#Const C_CheckpointStatus_Wait 1
#Const C_CheckpointStatus_Go 2

#Const C_UIEvent_TeamSelection_SelectPlayer "TeamSelection_SelectPlayer"
#Const C_UIEvent_TeamSelection_FindTeammate "TeamSelection_FindTeammate"
#Const C_UIEvent_TeamSelection_CancelSearch "TeamSelection_CancelSearch"
#Const C_UIEvent_TeamSelection_CancelInvite "TeamSelection_CancelInvite"
#Const C_UIEvent_TeamSelection_LeaveTeam "TeamSelection_LeaveTeam"
#Const C_UIEvent_TeamConfirm_Selection "TeamConfirm_Selection"

#Const C_UIEvent_TeamSelection_AcceptRequest "TeamSelection_AcceptRequest"
#Const C_UIEvent_TeamSelection_RequestToLeader "TeamSelection_RequestToLeader"
#Const C_UIEvent_TeamSelection_LeaderAcceptRequest "TeamSelection_LeaderAcceptRequester"
#Const C_UIEvent_TeamSelection_MemberInTeam "TeamSelection_MemberInTeam"
#Const C_UIEvent_TeamSelection_AllPlayersInTeam "TeamSelection_AllPlayersInTeam"
#Const C_UIEvent_TeamSelection_LeaderInFullTeam "TeamSelection_LeaderInFullTeam"
#Const C_UI_Event_TeamSelection_TeamInAutoFill "TeamSelection_TeamInAutoFill"
#Const C_UIEvent_TeamSelection_LeaveTeamCreation "TeamSelection_LeaveTeamCreation"
#Const C_UIEvent_TeamSelection_InvitersToDestroyUpdated "TeamSelection_InvitersUpdated"
#Const C_UI_Event_TeamSelection_LeaveTeam "TeamSelection_LeaveTeam"
#Const C_UI_Event_TeamSelection_PlayerInAutoJoin "TeamSelection_AutoJoin"
#Const C_UI_Event_TeamSelection_PlayerCancelAutoJoin "TeamSelection_CancelAutoJoin"
#Const C_UI_Event_TeamSelection_CancelTeamInAutoFill "TeamSelection_CancelTeamInAutoFill"
#Const C_UIEvent_TeamSelection_OpenTeamCreation "TeamSelection_OpenTeamCreation"
#Const C_UI_Event_TeamSelection_NeedHelp "TeamSelection_PlayersNeedingHelp"
#Const C_UIEvent_TeamSelection_PlayersNeedHelpReceived "TeamSelection_PlayersNeedHelpReceived"

#Const C_StayAsTeam_None 0
#Const C_StayAsTeam_No 1
#Const C_StayAsTeam_Yes 2

#Const C_Medal_None 0
#Const C_Medal_Gold 1
#Const C_Medal_Silver 2
#Const C_Medal_Bronze 3

#Const C_MedalColor_Gold <0.841, 0.686, 0.278>
#Const C_MedalColor_Silver <0.506, 0.541, 0.592>
#Const C_MedalColor_Bronze <0.561, 0.376, 0.235>
#Const C_MedalColor_None <0.1, 0.1, 0.1>

#Const C_TimeColor_Better <0.149, 0.149, 0.980>
#Const C_TimeColor_Worse <0.980, 0.149, 0.149>

#Const C_TextColor_Yellow "ffc000"

#Const C_StatusColor_Wait <1., 0.75, 0.>
#Const C_StatusColor_Go <0., 0.7, 0.>
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/**
*
*/
#Const Version "2018-09-03"
#Const ScriptName "ManiaApps/FakeScoreTable.Script.txt"

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// Libraries
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
#Include "TextLib" as TL
#Include "MathLib" as ML
#Include "ManiaApps/Nadeo/Layers.Script.txt" as Layers
#Include "Libs/Nadeo/Shootmania/Royal/Constants2.Script.txt" as Const

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// Constants
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
#Const C_Layer_FakeScoreTableUI "RoyalSquad_FakeScoreTable"

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// Functions
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// Private
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
/** Get the manialink of the Chase UI
*
* @return Chase UI manialink
*/

Text FakeScoreTableML(){

return """
<script><!--
#Include "TextLib" as TL

main() {
declare Boolean ScoreTableVisible for UI;
while (True) {
yield;
if(PageIsVisible){
ScoreTableVisible = True;
} else ScoreTableVisible = False;
}
}
--></script>""";
}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// Public
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
/// Update library
Void Yield() {

}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
/// Unload the library
Void Unload() {

}

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ //
/// Load the library
Void Load() {
Unload();
Layers::Create(C_Layer_FakeScoreTableUI, FakeScoreTableML());
Layers::SetType(C_Layer_FakeScoreTableUI, CUILayer::EUILayerType::ScoresTable);
}
Loading

0 comments on commit b90c184

Please sign in to comment.