Re: RealityFactory 0.80 - WIP
Posted: Mon Dec 14, 2009 2:54 pm
Yeah, well anyways I won't be using RF to develop MF anymore, I'm working on a side scroller and thank god, sidescrollers don't need pathfinding
Let your game become a reality!
http://forum.realityfactory.info/
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<GUILayout >
<Window Type="TaharezLook/FrameWindow" Name="Message/Scripted/Window">
<Property Name="UnifiedPosition" Value="{{0.3,0},{0.15,0}}" />
<Property Name="UnifiedMaxSize" Value="{{0.5,0},{0.5,0}}" />
<Property Name="UnifiedMinSize" Value="{{0,128},{0,128}}" />
<Property Name="UnifiedSize" Value="{{0.4,0},{0.3,0}}" />
<Property Name="Text" Value="Message Window" />
<Event Name="Shown" Function="Message_OnShown" />
<Event Name="CloseClicked" Function="Message_OnCloseClicked" />
<Window Type="TaharezLook/StaticText" Name="Message/Scripted/Text" >
<Property Name="TextColours" Value="tl:FF648CDC tr:FF648CDC bl:FF648CDC br:FF648CDC" />
<Property Name="FrameEnabled" Value="False" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.1,0},{0.9,0},{0.8,0}}" />
<Property Name="BackgroundEnabled" Value="False" />
<Property Name="HorzFormatting" Value="WordWrapCentred" />
</Window>
<Window Type="TaharezLook/Button" Name="Message/Scripted/Close" >
<Property Name="Text" Value="Close" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedAreaRect" Value="{{0.6,0},{0.75,0},{0.9,0},{0.9,0}}" />
<Property Name="Tooltip" Value="Click to close message window" />
<Event Name="Clicked" Function="Message_OnCloseClicked" />
</Window>
</Window>
</GUILayout>
Code: Select all
[Scripted]
layout = message_scripted.layout
textwindow = Message/Scripted/Text
script = message.s
Code: Select all
{
Message_OnShown[(e)
{
DialogState.UpdateLevel(false);
DialogState.RenderLevel(true); // default
DialogState.Enter();
Log.SetFile("message_script.log"); // open log file
Log.SetPriority(Log.DEBUG); // set output level
Log.Print("Log.Print");
Log.Debug("Log.Debug");
Log.Info("Log.Info");
Log.Notice("Log.Notice");
Log.Warning("Log.Warning");
//Log.Error("Log.Error");
//Log.Critical("Log.Critical");
Log.Log(Log.DEBUG, "Log.Log");
// iterate over all loaded fonts and print their heights
for each font in GUI.FontManager
{
Log.Print("font height " # toString(font.getFontHeight()));
}
Log.SetFile("RealityFactory.log"); // reset log file to default
}]
Message_OnCloseClicked[(e)
{
DialogState.Exit();
}]
}
Code: Select all
Log.Print
[debug] Log.Debug
[info] Log.Info
[notice] Log.Notice
[warning] Log.Warning
[debug] Log.Log
font height 14.493395
Code: Select all
[Simple]
layout = message_simple.layout
textwindow = Message/Simple/Text
displaytime = 2
fadeintime = 0.2
fadeouttime = 0.2