File size: 621 Bytes
24b81cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// -----------------------------------------------------------
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;
	}
};