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.
|
* 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:
|
* 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
|
// #RequireContext CSmMode
|
||||||
|
|
||||||
@ -290,8 +290,8 @@ Net_DebugMode_Logs_Serial += 1;
|
|||||||
|
|
||||||
Text GetManialink() {
|
Text GetManialink() {
|
||||||
return """
|
return """
|
||||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||||
<manialink name="DebugMode_UI" version="3">
|
<manialink name="DebugMode_UI" version="3">
|
||||||
<stylesheet>
|
<stylesheet>
|
||||||
<style class="text" halign="left" textsize="1" textcolor="FFFFFFFF"/>
|
<style class="text" halign="left" textsize="1" textcolor="FFFFFFFF"/>
|
||||||
<style class="entry" halign="left" textsize="1" textcolor="FFFFFFFF" valign="center2" focusareacolor1="000000f0" focusareacolor2="000000f0"/>
|
<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>
|
||||||
</frame>
|
</frame>
|
||||||
|
|
||||||
|
|
||||||
<frame id="frame-rightpanel" pos="26 0">
|
<frame id="frame-rightpanel" pos="26 0">
|
||||||
|
|
||||||
|
|
||||||
<frame id="frame-rightpanel-logs" hidden=1>
|
<frame id="frame-rightpanel-logs" hidden=1>
|
||||||
<frame>
|
<frame>
|
||||||
<quad id="quad-clearlogs" class="button" pos="0 0" size="15 4" z-index="-1" bgcolor="666" opacity="0.5" scriptevents="1"/>
|
<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"/>
|
<label class="rightpanel-text-button" size="5 3" pos="3 -2" text="+50"/>
|
||||||
</frame>
|
</frame>
|
||||||
</frame>
|
</frame>
|
||||||
|
|
||||||
|
|
||||||
<frame id="frame-rightpanel-playerscontrol" hidden=1>
|
<frame id="frame-rightpanel-playerscontrol" hidden=1>
|
||||||
<frame>
|
<frame>
|
||||||
<label class="text" size="8 3" pos="0 -1" text="Speed:"/>
|
<label class="text" size="8 3" pos="0 -1" text="Speed:"/>
|
||||||
@ -432,6 +438,8 @@ Text GetManialink() {
|
|||||||
</frame>
|
</frame>
|
||||||
</frame>
|
</frame>
|
||||||
</frame>
|
</frame>
|
||||||
|
|
||||||
|
|
||||||
<frame id="frame-rightpanel-customevent" hidden=1>
|
<frame id="frame-rightpanel-customevent" hidden=1>
|
||||||
<frame>
|
<frame>
|
||||||
<label class="text" size="30 3" pos="0 -1" text="Custom Event Name:"/>
|
<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"/>
|
<label class="rightpanel-text-button" size="23 3" pos="12.5 -2" text="Send Custom Event"/>
|
||||||
</frame>
|
</frame>
|
||||||
</frame>
|
</frame>
|
||||||
|
|
||||||
|
|
||||||
<frame id="frame-rightpanel-varinsp" hidden=1>
|
<frame id="frame-rightpanel-varinsp" hidden=1>
|
||||||
<frame pos="0 0">
|
<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"/>
|
<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>
|
</frame>
|
||||||
</frame>
|
</frame>
|
||||||
<!--<frameinstance pos="20 -10" modelid="framemodel-tooltip" tooltip="OMG This is a very very long tooltip, so important"/>-->
|
|
||||||
</frame>
|
</frame>
|
||||||
</frame>
|
</frame>
|
||||||
</frame>
|
</frame>
|
||||||
<script><!--
|
<script><!--
|
||||||
#Include "TextLib" as TL
|
#Include "TextLib" as TL
|
||||||
#Include "MathLib" as ML
|
#Include "MathLib" as ML
|
||||||
// #RequireContext CSmMlScriptIngame
|
// #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 SpaceSize = _Label.ComputeWidth(" ");
|
||||||
|
|
||||||
declare Real MaxLineSize = 0.;
|
declare Real MaxLineSize = 0.;
|
||||||
@ -532,9 +541,9 @@ Text GetManialink() {
|
|||||||
if (CurrentLineSize > MaxLineSize) MaxLineSize = CurrentLineSize;
|
if (CurrentLineSize > MaxLineSize) MaxLineSize = CurrentLineSize;
|
||||||
}
|
}
|
||||||
return MaxLineSize;
|
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;
|
_MaximizeButton.StyleSelected = !_MaximizeButton.StyleSelected;
|
||||||
|
|
||||||
AnimMgr.Flush(_MainUI);
|
AnimMgr.Flush(_MainUI);
|
||||||
@ -548,9 +557,9 @@ Text GetManialink() {
|
|||||||
AnimMgr.Add(_Background, "<quad size=\"" ^ _MinimizedSize.X ^ " " ^ _MinimizedSize.Y ^ "\" />", Now, 250, CAnimManager::EAnimManagerEasing::CubicOut);
|
AnimMgr.Add(_Background, "<quad size=\"" ^ _MinimizedSize.X ^ " " ^ _MinimizedSize.Y ^ "\" />", Now, 250, CAnimManager::EAnimManagerEasing::CubicOut);
|
||||||
}
|
}
|
||||||
return _MaximizeButton.StyleSelected;
|
return _MaximizeButton.StyleSelected;
|
||||||
}
|
}
|
||||||
|
|
||||||
Void SwitchToTab(Text _CurrentTab, Text _NexTab) {
|
Void SwitchToTab(Text _CurrentTab, Text _NexTab) {
|
||||||
declare CMlQuad Quad;
|
declare CMlQuad Quad;
|
||||||
declare CMlFrame Frame;
|
declare CMlFrame Frame;
|
||||||
|
|
||||||
@ -565,9 +574,9 @@ Text GetManialink() {
|
|||||||
if (Quad != Null) Quad.Opacity = .2;
|
if (Quad != Null) Quad.Opacity = .2;
|
||||||
Frame <=> (Page.GetFirstChild("frame-rightpanel-" ^ TL::Split("-", _NexTab)[2]) as CMlFrame);
|
Frame <=> (Page.GetFirstChild("frame-rightpanel-" ^ TL::Split("-", _NexTab)[2]) as CMlFrame);
|
||||||
if (Frame != Null) Frame.Visible = True;
|
if (Frame != Null) Frame.Visible = True;
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
declare CMlFrame Frame_MainUI = (Page.GetFirstChild("frame-mainui") as CMlFrame);
|
declare CMlFrame Frame_MainUI = (Page.GetFirstChild("frame-mainui") as CMlFrame);
|
||||||
|
|
||||||
declare CMlFrame Frame_Tooltip = (Page.GetFirstChild("frame-tooltip") as CMlFrame);
|
declare CMlFrame Frame_Tooltip = (Page.GetFirstChild("frame-tooltip") as CMlFrame);
|
||||||
@ -892,8 +901,8 @@ Text GetManialink() {
|
|||||||
TextEdit_Logs.Value = Net_DebugMode_Logs;
|
TextEdit_Logs.Value = Net_DebugMode_Logs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--></script>
|
--></script>
|
||||||
</manialink>
|
</manialink>
|
||||||
""";
|
""";
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user