1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00
The-Modding-Tree/demo.html

140 lines
7 KiB
HTML
Raw Normal View History

2020-10-25 00:45:50 +00:00
<!DOCTYPE html>
2020-10-25 00:45:50 +00:00
<head>
<link rel="stylesheet" type="text/css" href="css/system-style.css" />
<link rel="stylesheet" type="text/css" href="css/bars.css" />
<link rel="stylesheet" type="text/css" href="css/components.css" />
<link rel="stylesheet" type="text/css" href="css/general-style.css" />
<link rel="stylesheet" type="text/css" href="css/misc.css" />
<link rel="stylesheet" type="text/css" href="css/other-tabs.css" />
<link rel="stylesheet" type="text/css" href="css/popup.css" />
<link rel="stylesheet" type="text/css" href="css/tree-node.css" />
2020-12-07 03:56:37 +00:00
2020-10-25 00:45:50 +00:00
<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">
2020-10-25 00:45:50 +00:00
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<script src="js/technical/break_eternity.js"></script>
<script src="js/technical/layerSupport.js"></script>
2021-06-11 20:22:56 +00:00
2021-05-31 03:33:56 +00:00
<script src="js/Demo/demoMod.js"></script>
2021-06-11 20:22:56 +00:00
<script src="js/technical/loader.js"></script>
<script src="js/technical/temp.js" id = "temp"></script>
<script src="js/technical/displays.js"></script>
<script src="js/game.js"></script>
<script src="js/utils.js"></script>
2021-05-13 21:44:07 +00:00
<script src="js/utils/easyAccess.js"></script>
<script src="js/technical/systemComponents.js"></script>
<script src="js/components.js"></script>
<script src="js/technical/canvas.js"></script>
2021-05-14 01:40:51 +00:00
<script src="js/technical/particleSystem.js"></script>
<script src="js/utils/NumberFormating.js"></script>
<script src="js/utils/options.js"></script>
<script src="js/utils/save.js"></script>
<script src="js/utils/themes.js"></script>
2020-10-25 00:45:50 +00:00
</head>
2021-05-14 01:40:51 +00:00
<body onload="load()" onmousemove="updateMouse(event)">
2021-06-07 04:00:30 +00:00
<div id="app">
<canvas id="treeCanvas" class="canvas" v-if="!(gameEnded && !player.keepGoing)"></canvas>
2020-10-28 02:04:16 +00:00
2020-10-25 00:45:50 +00:00
<div v-if="false" id="loadingSection" class="fullWidth">
2020-10-30 23:40:48 +00:00
<h1>Loading... (If this takes too long it means there was a serious error!)←</h1>
2020-10-25 00:45:50 +00:00
</div>
<div class="vl" v-if="player.navTab !== 'none' && tmp.other.splitScreen && player.tab!='none' && !(gameEnded && !player.keepGoing)"></div>
2020-10-30 23:40:48 +00:00
<div v-if="(gameEnded && !player.keepGoing)" class="fullWidth">
2020-10-25 00:45:50 +00:00
<br>
<h2>{{modInfo.name}} {{VERSION.withoutName}}</h2><br><br>
2020-12-05 19:52:29 +00:00
<h3 v-html="modInfo.winText"></h3><br>
2020-10-25 00:45:50 +00:00
<h3>Please check the Discord to see if there are new content updates!</h3><br><br>
<div v-if="!player.timePlayedReset">It took you {{formatTime(player.timePlayed)}} to beat the game.</div>
<br>
<button class="longUpg can" onclick="hardReset(true)">Play Again</button>&nbsp;&nbsp;&nbsp;&nbsp;<button
class="longUpg can" onclick="keepGoing()">Keep Going</button>
2020-10-25 00:45:50 +00:00
<br><br><br>
<span v-if="modInfo.discordLink"><a class="link" v-bind:href="modInfo.discordLink"
target="_blank">{{modInfo.discordName}}</a><br></span>
<a class="link" href="https://discord.gg/F3xveHV" target="_blank"
v-bind:style="modInfo.discordLink ? {'font-size': '16px'} : {}">The Modding Tree Discord</a><br>
<a class="link" href="http://discord.gg/wwQfgPa" target="_blank" v-bind:style="{'font-size': '16px'}">Main
Prestige Tree server</a><br>
2020-10-25 00:45:50 +00:00
<br><br>
</div>
<div id="treeOverlay" v-if="!(gameEnded && !player.keepGoing) && (player.tab === 'none' || tmp.other.splitScreen || !readData(layoutInfo.showTree))" class="treeOverlay" onscroll="resizeCanvas()"
v-bind:class="{
fullWidth: (player.tab == 'none' || player.navTab == 'none'),
col: (player.tab !== 'none' && player.navTab !== 'none'),
left: (player.tab !== 'none' && player.navTab !== 'none')}"
:style="{'margin-top': !readData(layoutInfo.showTree) && player.tab == 'info-tab' ? '50px' : ''}">
<div id="version" onclick="showTab('changelog-tab')" class="overlayThing" style="margin-right: 13px" >
{{VERSION.withoutName}}</div>
<button
v-if="((player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside' || player[player.tab].prevTab)) || player[player.navTab]?.prevTab)" class="other-back overlayThing" onclick="goBack(player.navTab == 'none' ? player.tab : player.navTab)">←</button>
<img id="optionWheel" class="overlayThing" v-if="player.tab!='options-tab'" src="options_wheel.png"
onclick="showTab('options-tab')"></img>
<div id="info" v-if="player.tab!='info-tab'" class="overlayThing" onclick="showTab('info-tab')"><br>i</div>
2020-10-25 00:45:50 +00:00
<div id="discord" class="overlayThing">
<img onclick="window.open((modInfo.discordLink ? modInfo.discordLink : 'https://discord.gg/F3xveHV'),'mywindow')"
src="discord.png" target="_blank"></img>
2020-10-25 00:45:50 +00:00
<ul id="discord-links">
<li v-if="modInfo.discordLink"><a class="link" v-bind:href="modInfo.discordLink"
target="_blank">{{modInfo.discordName}}</a><br></li>
<li><a class="link" href="https://discord.gg/F3xveHV" target="_blank"
v-bind:style="modInfo.discordLink ? {'font-size': '16px'} : {}">The Modding Tree
Discord</a><br></li>
<li><a class="link" href="http://discord.gg/wwQfgPa" target="_blank"
v-bind:style="{'font-size': '16px'}">Main Prestige Tree server</a></li>
2020-10-25 00:45:50 +00:00
</ul>
</div>
2020-10-30 23:40:48 +00:00
<overlay-head v-if="!(gameEnded && !player.keepGoing)"></overlay-head>
<div class="sideLayers">
<div v-for="(node, index) in OTHER_LAYERS['side']">
<tree-node :layer='node' :abb='tmp[node].symbol' :size="'small'" :key="'side' + index"></tree-node>
</div>
2020-10-25 00:45:50 +00:00
</div>
</div>
<div v-if="!(gameEnded && !player.keepGoing) && (player.tab === 'none' || tmp.other.splitScreen)" id="treeTab" onscroll="resizeCanvas()"
2021-05-24 15:41:30 +00:00
v-bind:class="{ fullWidth: (player.tab == 'none' || player.navTab == 'none'), col: (player.tab !== 'none' && player.navTab !== 'none'), left: (player.tab !== 'none' && player.navTab !== 'none')}">
2020-10-25 00:45:50 +00:00
<br><br><br><br>
2020-10-30 01:49:34 +00:00
<overlay-head id="fakeHead" style="visibility: hidden;">
</overlay-head>
<layer-tab :layer="player.navTab == 'none' ? player.tab : player.navTab" :key="'left'"></layer-tab>
2021-06-02 22:51:33 +00:00
<bg :layer="player.navTab == 'none' ? player.tab : player.navTab" ></bg>
2020-10-30 17:27:23 +00:00
</div>
2020-12-07 03:56:37 +00:00
<!-- Popups -->
<div class="popup-container">
<transition-group name="fade">
<div v-for="popup,index in activePopups" class="popup" v-bind:class="popup.type"
2021-02-05 20:43:11 +00:00
v-bind:key="'p' + popup.id" v-on:click="() => {activePopups.splice(index, 1)}" v-bind:style="popup.color ? {'background-color': popup.color} : {}">
2020-12-07 03:56:37 +00:00
<h3>{{popup.title}}</h3><br>
<h2 v-html="popup.message"></h2>
</div>
</transition-group>
</div>
2021-05-14 01:40:51 +00:00
<div class="particle-container">
<div v-for="particle,index in particles">
<particle :data="particle" :index="index" v-bind:key="'b' + particle.id"></particle>
</div>
</div>
2020-12-07 03:56:37 +00:00
2021-06-02 22:51:33 +00:00
<div v-if="player.navTab !== 'none' && player.tab !== 'none' && !(gameEnded && !player.keepGoing)" onscroll="resizeCanvas()" v-bind:class="{ fullWidth: player.navTab == 'none' || !tmp.other.splitScreen || !readData(layoutInfo.showTree), col: player.navTab != 'none', right: player.navTab != 'none', fast: true, tab: true}">
<div v-for="layer in LAYERS">
<div v-if="player.tab==layer">
<layer-tab :layer="layer" :back="'none'" :spacing="'50px'" :key="'left'"></layer-tab>
2020-10-30 17:27:23 +00:00
</div>
2020-10-25 00:45:50 +00:00
</div>
2021-06-02 22:51:33 +00:00
<bg :layer="player.tab" ></bg>
2020-10-25 00:45:50 +00:00
</div>
2021-06-07 04:00:30 +00:00
<div class = "bg2" v-bind:style = "tmp.backgroundStyle"></div>
2020-10-25 00:45:50 +00:00
</div>
2020-10-25 22:21:02 +00:00
</body>