fix indentation
This commit is contained in:
parent
b4b38e0592
commit
d111eacbd7
@ -3,7 +3,7 @@
|
||||
* This mode is used to debug your modes during development.
|
||||
* To use it, you just have to change the line below to put the path of your mode:
|
||||
*/
|
||||
#Extends "Modes/TrackMania/TM_TimeAttack_Online.Script.txt"
|
||||
#Extends "Modes/TM_TeamsCup.Script.txt"
|
||||
|
||||
// #RequireContext CSmMode
|
||||
|
||||
@ -290,8 +290,8 @@ Net_DebugMode_Logs_Serial += 1;
|
||||
|
||||
Text GetManialink() {
|
||||
return """
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<manialink name="DebugMode_UI" version="3">
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<manialink name="DebugMode_UI" version="3">
|
||||
<stylesheet>
|
||||
<style class="text" halign="left" textsize="1" textcolor="FFFFFFFF"/>
|
||||
<style class="entry" halign="left" textsize="1" textcolor="FFFFFFFF" valign="center2" focusareacolor1="000000f0" focusareacolor2="000000f0"/>
|
||||
@ -356,7 +356,11 @@ Text GetManialink() {
|
||||
</frame>
|
||||
</frame>
|
||||
</frame>
|
||||
|
||||
|
||||
<frame id="frame-rightpanel" pos="26 0">
|
||||
|
||||
|
||||
<frame id="frame-rightpanel-logs" hidden=1>
|
||||
<frame>
|
||||
<quad id="quad-clearlogs" class="button" pos="0 0" size="15 4" z-index="-1" bgcolor="666" opacity="0.5" scriptevents="1"/>
|
||||
@ -404,6 +408,8 @@ Text GetManialink() {
|
||||
<label class="rightpanel-text-button" size="5 3" pos="3 -2" text="+50"/>
|
||||
</frame>
|
||||
</frame>
|
||||
|
||||
|
||||
<frame id="frame-rightpanel-playerscontrol" hidden=1>
|
||||
<frame>
|
||||
<label class="text" size="8 3" pos="0 -1" text="Speed:"/>
|
||||
@ -432,6 +438,8 @@ Text GetManialink() {
|
||||
</frame>
|
||||
</frame>
|
||||
</frame>
|
||||
|
||||
|
||||
<frame id="frame-rightpanel-customevent" hidden=1>
|
||||
<frame>
|
||||
<label class="text" size="30 3" pos="0 -1" text="Custom Event Name:"/>
|
||||
@ -447,6 +455,8 @@ Text GetManialink() {
|
||||
<label class="rightpanel-text-button" size="23 3" pos="12.5 -2" text="Send Custom Event"/>
|
||||
</frame>
|
||||
</frame>
|
||||
|
||||
|
||||
<frame id="frame-rightpanel-varinsp" hidden=1>
|
||||
<frame pos="0 0">
|
||||
<quad id="quad-varinsp-forvars-dumpthis" class="button" pos="0 0" size="47 4" z-index="-1" bgcolor="666" opacity="0.5" scriptevents="1"/>
|
||||
@ -507,16 +517,15 @@ Text GetManialink() {
|
||||
</frame>
|
||||
</frame>
|
||||
</frame>
|
||||
<!--<frameinstance pos="20 -10" modelid="framemodel-tooltip" tooltip="OMG This is a very very long tooltip, so important"/>-->
|
||||
</frame>
|
||||
</frame>
|
||||
</frame>
|
||||
<script><!--
|
||||
#Include "TextLib" as TL
|
||||
#Include "MathLib" as ML
|
||||
// #RequireContext CSmMlScriptIngame
|
||||
<script><!--
|
||||
#Include "TextLib" as TL
|
||||
#Include "MathLib" as ML
|
||||
// #RequireContext CSmMlScriptIngame
|
||||
|
||||
Real ComputeBackgroundSize(CMlLabel _Label, Text _Value, Real _MaxLineWidth) {
|
||||
Real ComputeBackgroundSize(CMlLabel _Label, Text _Value, Real _MaxLineWidth) {
|
||||
declare Real SpaceSize = _Label.ComputeWidth(" ");
|
||||
|
||||
declare Real MaxLineSize = 0.;
|
||||
@ -532,9 +541,9 @@ Text GetManialink() {
|
||||
if (CurrentLineSize > MaxLineSize) MaxLineSize = CurrentLineSize;
|
||||
}
|
||||
return MaxLineSize;
|
||||
}
|
||||
}
|
||||
|
||||
Boolean MaximizeMinimizeWindow(CMlQuad _MaximizeButton, CMlFrame _MainUI, Vec2 _MinimizedPos, CMlQuad _Background, Vec2 _MinimizedSize) {
|
||||
Boolean MaximizeMinimizeWindow(CMlQuad _MaximizeButton, CMlFrame _MainUI, Vec2 _MinimizedPos, CMlQuad _Background, Vec2 _MinimizedSize) {
|
||||
_MaximizeButton.StyleSelected = !_MaximizeButton.StyleSelected;
|
||||
|
||||
AnimMgr.Flush(_MainUI);
|
||||
@ -548,9 +557,9 @@ Text GetManialink() {
|
||||
AnimMgr.Add(_Background, "<quad size=\"" ^ _MinimizedSize.X ^ " " ^ _MinimizedSize.Y ^ "\" />", Now, 250, CAnimManager::EAnimManagerEasing::CubicOut);
|
||||
}
|
||||
return _MaximizeButton.StyleSelected;
|
||||
}
|
||||
}
|
||||
|
||||
Void SwitchToTab(Text _CurrentTab, Text _NexTab) {
|
||||
Void SwitchToTab(Text _CurrentTab, Text _NexTab) {
|
||||
declare CMlQuad Quad;
|
||||
declare CMlFrame Frame;
|
||||
|
||||
@ -565,9 +574,9 @@ Text GetManialink() {
|
||||
if (Quad != Null) Quad.Opacity = .2;
|
||||
Frame <=> (Page.GetFirstChild("frame-rightpanel-" ^ TL::Split("-", _NexTab)[2]) as CMlFrame);
|
||||
if (Frame != Null) Frame.Visible = True;
|
||||
}
|
||||
}
|
||||
|
||||
main() {
|
||||
main() {
|
||||
declare CMlFrame Frame_MainUI = (Page.GetFirstChild("frame-mainui") as CMlFrame);
|
||||
|
||||
declare CMlFrame Frame_Tooltip = (Page.GetFirstChild("frame-tooltip") as CMlFrame);
|
||||
@ -892,8 +901,8 @@ Text GetManialink() {
|
||||
TextEdit_Logs.Value = Net_DebugMode_Logs;
|
||||
}
|
||||
}
|
||||
}
|
||||
--></script>
|
||||
</manialink>
|
||||
""";
|
||||
}
|
||||
--></script>
|
||||
</manialink>
|
||||
""";
|
||||
}
|
Loading…
Reference in New Issue
Block a user