D3ltaQ's picture
Upload 2197 files
24b81cb verified
raw
history blame contribute delete
621 Bytes
// -----------------------------------------------------------
class RightGap : ScriptedWidgetEventHandler
{
reference int gap;
bool kola;
/*void OnWidgetScriptInit(Widget w)
{
float width;
float height;
w.SetFlags( WidgetFlags.EXACTSIZE, false );
w.GetScreenSize( width, height );
Print(w.GetName());
Print(width);
Print(height);
w.SetSize( width-gap, height );
w.Update();
}*/
override bool OnUpdate( Widget w)
{
float width;
float height;
w.SetFlags( WidgetFlags.EXACTSIZE, false );
w.GetParent().GetScreenSize( width, height );
w.SetSize( width-gap, height );
return false;
}
};