mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-16 08:09:07 +00:00
Reorganised debug info in account page and extracted user loading to UserManager
This commit is contained in:
@@ -49,25 +49,47 @@
|
||||
|
||||
<hr>
|
||||
|
||||
<h5 class="card-title">Debug information</h5>
|
||||
<div class="card card-block bg-light text-dark text-mono" style="padding: 1em">
|
||||
<h5>CPU</h5>
|
||||
<pre>$user.getCpu()</pre>
|
||||
|
||||
<h5>Controlled unit</h5>
|
||||
<p>id: $user.getControlledUnit().getObjectId()</p>
|
||||
<p>energy: $user.getControlledUnit().getEnergy()</p>
|
||||
<p>x: $user.getControlledUnit().getX()</p>
|
||||
<p>y: $user.getControlledUnit().getY()</p>
|
||||
<p>console mode: $user.getControlledUnit().getConsoleMode()</p>
|
||||
<p>kbBuffer size: $user.getControlledUnit().getKeyboardBuffer().size()</p>
|
||||
|
||||
<h5>World</h5>
|
||||
<pre>$user.getControlledUnit().getWorld()</pre>
|
||||
|
||||
<h5>User code</h5>
|
||||
<pre>$user.getUserCode()</pre>
|
||||
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid.
|
||||
3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt
|
||||
laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin
|
||||
coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes
|
||||
anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings
|
||||
occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard
|
||||
of them accusamus labore sustainable VHS.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<a class="btn btn-primary" role=button data-toggle="collapse" data-target="#debugInfo"
|
||||
aria-expanded="false" aria-controls="debugInfo">Debug information</a>
|
||||
</p>
|
||||
|
||||
<div class="collapse" id="debugInfo">
|
||||
<div class="card card-block bg-light text-dark text-mono" style="padding: 1em">
|
||||
<p>Moderator: $user.isModerator()</p>
|
||||
|
||||
<h5>CPU</h5>
|
||||
<pre>$user.getCpu()</pre>
|
||||
|
||||
<h5>Controlled unit</h5>
|
||||
<p>id: $user.getControlledUnit().getObjectId()</p>
|
||||
<p>energy: $user.getControlledUnit().getEnergy()</p>
|
||||
<p>x: $user.getControlledUnit().getX()</p>
|
||||
<p>y: $user.getControlledUnit().getY()</p>
|
||||
<p>console mode: $user.getControlledUnit().getConsoleMode()</p>
|
||||
<p>kbBuffer size: $user.getControlledUnit().getKeyboardBuffer().size()</p>
|
||||
|
||||
<h5>World</h5>
|
||||
<pre>$user.getControlledUnit().getWorld()</pre>
|
||||
|
||||
<h5>User code</h5>
|
||||
<pre>$user.getUserCode()</pre>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
#else
|
||||
## NOT LOGGED IN
|
||||
<h5 class="card-title">Login</h5>
|
||||
@@ -115,7 +137,4 @@
|
||||
#parse("footer.vm")
|
||||
|
||||
</body>
|
||||
<script src="js/popper.min.js"></script>
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
</html>
|
||||
@@ -40,7 +40,5 @@
|
||||
#parse("footer.vm")
|
||||
|
||||
</body>
|
||||
<script src="js/popper.min.js"></script>
|
||||
<script src="js/jquery.min.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user