added a sidebar
This commit is contained in:
parent
b91038c241
commit
99a01e5cc3
@ -12,6 +12,10 @@ html {
|
|||||||
backdrop-filter: blur(7px) !important;
|
backdrop-filter: blur(7px) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidenav-overlay {
|
||||||
|
backdrop-filter: blur(10px) !important;
|
||||||
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
@ -35,3 +39,7 @@ pre code {
|
|||||||
white-space: -o-pre-wrap;
|
white-space: -o-pre-wrap;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.background img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
66
index.php
66
index.php
@ -30,9 +30,70 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
|
|
||||||
|
<ul id="slide-out" class="sidenav">
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<div class="user-view">
|
||||||
|
<div class="background">
|
||||||
|
<img src="https://external-preview.redd.it/7j49A5chcbjitz5C6QHYbZ80EW4QMKPO7dEZwJDu2PM.jpg?auto=webp&s=3d2518085b02a5e80dcb34c31479499d2e9a14d1">
|
||||||
|
</div>
|
||||||
|
<div class="blurry">
|
||||||
|
<a href="https://steamcommunity.com/workshop/filedetails/?id=1737053146"><span class="center white-text name">TTT2 Role Overview</span></a>
|
||||||
|
<a href="https://steamcommunity.com/id/truebaka/"><span class="center white-text email">Made by James</span></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$defaultlanguage = "en";
|
||||||
|
|
||||||
|
# Get language from URL
|
||||||
|
if(isset($_GET["lang"])) {
|
||||||
|
$language = $_GET["lang"];
|
||||||
|
} else {
|
||||||
|
$language = $defaultlanguage;
|
||||||
|
}
|
||||||
|
|
||||||
|
#Check if Language folder exists
|
||||||
|
if(file_exists("roles/".$language."/")) {
|
||||||
|
$files = glob("roles/".$language."/*.php");
|
||||||
|
} else {
|
||||||
|
$language = $defaultlanguage;
|
||||||
|
$files = glob("roles/".$language."/*.php");
|
||||||
|
}
|
||||||
|
#Get all files from the language folder
|
||||||
|
sort($files);
|
||||||
|
|
||||||
|
foreach ($files as $filename) {
|
||||||
|
include $filename;
|
||||||
|
|
||||||
|
$shortname = substr($filename, 9);
|
||||||
|
$shortname = substr($shortname, 0, -4);
|
||||||
|
|
||||||
|
echo '
|
||||||
|
<div class="col s12">
|
||||||
|
|
||||||
|
<div class="card-panel '.$color.' '.$tcolor.'-text">
|
||||||
|
<li>
|
||||||
|
<a class="sidenav-close waves-effect '.$tcolor.'-text href="#'.$shortname.'">
|
||||||
|
<span class="card-title">'.$name.'</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
';
|
||||||
|
};
|
||||||
|
?>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<div class="fixed-action-btn">
|
||||||
|
<a href="#" data-target="slide-out" class="sidenav-trigger btn-floating btn-large waves-effect waves-dark brown"><i class="material-icons">menu</i></a>
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$defaultlanguage = "en";
|
$defaultlanguage = "en";
|
||||||
|
|
||||||
@ -71,7 +132,7 @@
|
|||||||
<div class="blurry">
|
<div class="blurry">
|
||||||
<div class="card '.$color.' '.$tcolor.'-text">
|
<div class="card '.$color.' '.$tcolor.'-text">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<span class="card-title">'.$name.'</span>
|
<span class="card-title" id="'.$shortname.'">'.$name.'</span>
|
||||||
<p>'.$description.'</p>
|
<p>'.$description.'</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-tabs">
|
<div class="card-tabs">
|
||||||
@ -126,6 +187,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('.tabs').tabs();
|
$('.tabs').tabs();
|
||||||
|
$('.sidenav').sidenav();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<!-- End Tab init -->
|
<!-- End Tab init -->
|
||||||
|
76
roles/en/drunk.php
Normal file
76
roles/en/drunk.php
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
<?php
|
||||||
|
#
|
||||||
|
# COLORS
|
||||||
|
#
|
||||||
|
|
||||||
|
# Text Color
|
||||||
|
$tcolor = 'black';
|
||||||
|
# This is the color defined by https://materializecss.com/color.html
|
||||||
|
$color = 'yellow darken-3';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# BASEINFO
|
||||||
|
#
|
||||||
|
|
||||||
|
#The Name of the Role
|
||||||
|
$name = 'Drunk';
|
||||||
|
#The Description of the Role, HTML conform :)
|
||||||
|
$description = 'It was a hell of a night.';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# TABS
|
||||||
|
#
|
||||||
|
|
||||||
|
#How To play
|
||||||
|
$howtoplay = "The Drunk is a neutral role. When someone dies, the Drunk has a chance to 'sober up', changing roles to the killed player's.";
|
||||||
|
#With what roles does this role play best?
|
||||||
|
$playsbestwith = '
|
||||||
|
<ul>
|
||||||
|
<li>Any Role</li>
|
||||||
|
<ul>
|
||||||
|
';
|
||||||
|
#Convars
|
||||||
|
$convars = 'Normal Role Convars (also found in ULX):
|
||||||
|
<code># enable or disable this role
|
||||||
|
ttt_drunk_enabled [0/1] (default: 1)
|
||||||
|
# the percentage of players that are spawned as this role
|
||||||
|
ttt_drunk_pct [0.0..1.0] (default 0.15)
|
||||||
|
# the limit of players that spawn as this role each round, this overwrites the percentage
|
||||||
|
ttt_drunk_max [0.0..n] (default: 1)
|
||||||
|
# the probility each round of this role being spawned at all
|
||||||
|
ttt_drunk_random [0..100] (default: 33)
|
||||||
|
# the amount of players needed for this role to spawn
|
||||||
|
ttt_drunk_min_players: [0..n] (default: 6)</code>
|
||||||
|
|
||||||
|
Rolespecific Convars:
|
||||||
|
<code># maximum delay before the drunk sobers after a valid player dies
|
||||||
|
ttt2_drk_delay_max [0..n] (default: 30)
|
||||||
|
# maximum delay before the drunk sobers after a valid player dies
|
||||||
|
ttt2_drk_delay_min [0..n] (default: 15)</code>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Credits
|
||||||
|
#
|
||||||
|
|
||||||
|
#The Steam URL to your addon
|
||||||
|
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2465037140';
|
||||||
|
#The Source URL to your addon
|
||||||
|
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/ZacharyHinds/ttt2-role-drk';
|
||||||
|
|
||||||
|
#Creator of the Addon
|
||||||
|
$author = 'Wasted';
|
||||||
|
#Creatorlink
|
||||||
|
$authorurl = 'https://steamcommunity.com/id/Zzzaaaccc13';
|
||||||
|
|
||||||
|
# Credittext (can use the above variables)
|
||||||
|
$ctext = 'Wasted: creator of this role addon and icon';
|
||||||
|
|
||||||
|
?>
|
84
roles/en/duelist.php
Normal file
84
roles/en/duelist.php
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
<?php
|
||||||
|
#
|
||||||
|
# COLORS
|
||||||
|
#
|
||||||
|
|
||||||
|
# Text Color
|
||||||
|
$tcolor = 'black';
|
||||||
|
# This is the color defined by https://materializecss.com/color.html
|
||||||
|
$color = 'cyan lighten-4';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# BASEINFO
|
||||||
|
#
|
||||||
|
|
||||||
|
#The Name of the Role
|
||||||
|
$name = 'Duelist';
|
||||||
|
#The Description of the Role, HTML conform :)
|
||||||
|
$description = 'Duel to the death...';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# TABS
|
||||||
|
#
|
||||||
|
|
||||||
|
#How To play
|
||||||
|
$howtoplay = "The Duelist is a neutral killing role that must win a duel to receive a role and team he can win on. When assigned, another player also becomes a Duelist, and their previous role will be the prize. Duellists are always notified about the names of other Duellists they need to kill. If a single Duelist survives, they victoriously won the duel and will become the prize role. Duellists will prevent the game from ending if they’re still alive and regenerate their health up to 100hp if they are below this amount when they win the duel.
|
||||||
|
|
||||||
|
With default settings, being secritive about your role might be best, as other players might just kill you to end the dueling.
|
||||||
|
|
||||||
|
Other settings/convars can be enabled to give immunity to the Duellists so no one else can interfere with the duel. Duellists can also be made public, so that others will know who the Duellists are. The prize role that a victorious Duelist can become can also be changed to a random role or specifically the 'Undecided' role (if role doesn't exist, reverts back to default state).";
|
||||||
|
#With what roles does this role play best?
|
||||||
|
$playsbestwith = '
|
||||||
|
<ul>
|
||||||
|
<li>Any role</li>
|
||||||
|
<ul>
|
||||||
|
';
|
||||||
|
#Convars
|
||||||
|
$convars = 'Normal Role Convars (also found in ULX):
|
||||||
|
<code># enable or disable this role
|
||||||
|
ttt_duelist_enabled [0/1] (default: 1)
|
||||||
|
# the percentage of players that are spawned as this role
|
||||||
|
ttt_duelist_pct [0.0..1.0] (default: 0.17)
|
||||||
|
# the limit of players that spawn as this role each round, this overwrites the percentage
|
||||||
|
ttt_duelist_max [0..n] (default: 1)
|
||||||
|
# the probability each round of this role being spawned at all
|
||||||
|
ttt_duelist_random [0..100] (default: 30)
|
||||||
|
# the amount of players needed for this role to spawn
|
||||||
|
ttt_duelist_min_players: [0..n] (default: 6)</code>
|
||||||
|
|
||||||
|
Rolespecific Convars:
|
||||||
|
<code># Is Duelist public to all players
|
||||||
|
ttt2_duelist_is_public [0..1] (default: 0)
|
||||||
|
# Do Duellists prevent a win from occuring if still alive
|
||||||
|
ttt2_duelist_prevent_win [0..1] (default: 1)
|
||||||
|
# Duellists can only hurt and be hurt by other duellists
|
||||||
|
ttt2_duelist_immunity [0..1] (default: 0)
|
||||||
|
# Prize Role: (0)=Previous Duelist Role (1)=Random Role (2)=Undecided Role
|
||||||
|
ttt2_duelist_prize_type [0..1] (default: 0)
|
||||||
|
# How much health Duellists can get up to when victorious
|
||||||
|
ttt2_duelist_victory_regenerate [0..200] (default: 100)</code>';
|
||||||
|
|
||||||
|
#
|
||||||
|
# Credits
|
||||||
|
#
|
||||||
|
|
||||||
|
#The Steam URL to your addon
|
||||||
|
$steam = 'https://steamcommunity.com/sharedfiles/filedetails/?id=2659150057';
|
||||||
|
#The Source URL to your addon
|
||||||
|
$source = 'https://steamcommunity.com/linkfilter/?url=https://github.com/TaintedEnergy/ttt2-role-duel';
|
||||||
|
|
||||||
|
#Creator of the Addon
|
||||||
|
$author = 'TaintedEnergy';
|
||||||
|
#Creatorlink
|
||||||
|
$authorurl = 'https://steamcommunity.com/profiles/76561198119233797';
|
||||||
|
|
||||||
|
# Credittext (can use the above variables)
|
||||||
|
$ctext = '';
|
||||||
|
|
||||||
|
?>
|
77
roles/en/elderly.php
Normal file
77
roles/en/elderly.php
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
<?php
|
||||||
|
#
|
||||||
|
# COLORS
|
||||||
|
#
|
||||||
|
|
||||||
|
# Text Color
|
||||||
|
$tcolor = 'white';
|
||||||
|
# This is the color defined by https://materializecss.com/color.html
|
||||||
|
$color = 'brown darken-2';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# BASEINFO
|
||||||
|
#
|
||||||
|
|
||||||
|
#The Name of the Role
|
||||||
|
$name = 'Elderly';
|
||||||
|
#The Description of the Role, HTML conform :)
|
||||||
|
$description = "You wouldn't hurt a poor old man, would you?";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# TABS
|
||||||
|
#
|
||||||
|
|
||||||
|
#How To play
|
||||||
|
$howtoplay = "The Elderly is a neutral role with no initial team. The Elderly's goal is to survive until the end of the round, where they will then join the winning team if they are still alive. The Elderly also has a maximum hp of 20, which can be changed with convar settings.
|
||||||
|
|
||||||
|
Try to convince everyone you are an Elderly before traitors and other evil roles try to kill you.";
|
||||||
|
#With what roles does this role play best?
|
||||||
|
$playsbestwith = '
|
||||||
|
<ul>
|
||||||
|
<li>Serial Killer</li>
|
||||||
|
<li>Jackal</li>
|
||||||
|
<ul>
|
||||||
|
';
|
||||||
|
#Convars
|
||||||
|
$convars = 'Normal Role Convars (also found in ULX):
|
||||||
|
<code># enable or disable this role
|
||||||
|
ttt_elderly_enabled [0/1] (default: 1)
|
||||||
|
# the percentage of players that are spawned as this role
|
||||||
|
ttt_elderly_pct [0.0..1.0] (default: 0.17)
|
||||||
|
# the limit of players that spawn as this role each round, this overwrites the percentage
|
||||||
|
ttt_elderly_max [0..n] (default: 1)
|
||||||
|
# the probability each round of this role being spawned at all
|
||||||
|
ttt_elderly_random [0..100] (default: 30)
|
||||||
|
# the amount of players needed for this role to spawn
|
||||||
|
ttt_elderly_min_players: [0..n] (default: 6)</code>
|
||||||
|
|
||||||
|
Rolespecific Convars:
|
||||||
|
<code># What is the maximum and starting hp for an Elderly?
|
||||||
|
ttt2_eld_health [0..100] (default: 20)</code>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Credits
|
||||||
|
#
|
||||||
|
|
||||||
|
#The Steam URL to your addon
|
||||||
|
$steam = '';
|
||||||
|
#The Source URL to your addon
|
||||||
|
$source = '';
|
||||||
|
|
||||||
|
#Creator of the Addon
|
||||||
|
$author = '';
|
||||||
|
#Creatorlink
|
||||||
|
$authorurl = '';
|
||||||
|
|
||||||
|
# Credittext (can use the above variables)
|
||||||
|
$ctext = '';
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user