Manialink Library (ToolTip Tutorial)
Posted: 05 Apr 2017, 23:31
Hi, i´m noob in scripting, but i found this tutorial on github about how to use the Manialink/Library https://github.com/maniaplanet/library- ... k#tooltips.
So i do this:
-I read the explanation
-I Copy this code in the interface designer
-And add this modules in the beginning of the script
-So the complete code is:
But the tooltip dont show when i run the xml file in the interface designer
Would someone be so kind as to explain explaining what I do wrong?
So i do this:
-I read the explanation
-I Copy this code in the interface designer
Code: Select all
<quad posn="0 0" sizen="10 10" halign="center" valign="center" bgcolor="fff" scriptevents="1" class="LibManialink_TooltipShow" id="Tooltip_Default" />
<frame hidden="1" class="LibManialink_Tooltip" id="Tooltip_Default">
<label posn="0 0 1" sizen="48 4" halign="center" valign="center2" textsize="1.5" textcolor="aaa" id="Tooltip_Message" />
<quad sizen="50 6" halign="center" valign="center" bgcolor="000d" id="Tooltip_BoundingBox" />
</frame>
<script><!--
// Paste the tooltip module here
// ...
main() {
LibManialink_SetTooltipMessage("Tooltip_Default", "This is the default tooltip.");
while (True) {
yield;
LibManialink_TooltipLoop();
}
}
--></script>
Code: Select all
#Include "MathLib" as ML
#Include "TextLib" as TL
Code: Select all
<quad posn="0 0" sizen="10 10" halign="center" valign="center" bgcolor="fff" scriptevents="1" class="LibManialink_TooltipShow" id="Tooltip_Default" />
<frame hidden="1" class="LibManialink_Tooltip" id="Tooltip_Default">
<label posn="0 0 1" sizen="48 4" halign="center" valign="center2" textsize="1.5" textcolor="aaa" id="Tooltip_Message" />
<quad sizen="50 6" halign="center" valign="center" bgcolor="000d" id="Tooltip_BoundingBox" />
</frame>
<script><!--
// Paste the tooltip module here
// ...
#Include "MathLib" as ML
#Include "TextLib" as TL
main() {
LibManialink_SetTooltipMessage("Tooltip_Default", "This is the default tooltip.");
while (True) {
yield;
LibManialink_TooltipLoop();
}
}
--></script>


Would someone be so kind as to explain explaining what I do wrong?