1. Create you.layout
```
FrameWidgetClass rootFrame {
size 821 621
halign center_ref
valign center_ref
hexactpos 1
vexactpos 1
hexactsize 1
vexactsize 1
scaled 0
{
PanelWidgetClass PanelWidgetMap {
ignorepointer 1
position 65 100
size 635 442
hexactpos 1
vexactpos 1
hexactsize 1
vexactsize 1
scaled 0
style EditorPanel
{
MapWidgetClass MapWidget_Quest {
position 0 0
size 1 1
halign center_ref
valign center_ref
visible 1
hexactpos 1
vexactpos 1
hexactsize 0
vexactsize 0
scaled 0
}
}
}
}
}
```
2. Create test script
```
class testscript extends UIScriptedMenu
{
private PlayerBase m_Player = PlayerBase.Cast( GetGame().GetPlayer() );
private MapWidget m_MapWidget_Quest;
Widget Override_Init()
{
layoutRoot = GetGame().GetWorkspace().CreateWidgets( "you.layout" );
m_MapWidget_Quest = MapWidget.Cast( layoutRoot.FindAnyWidget( "MapWidget_Quest" ) );
m_MapWidget_Quest.SetMapPos( m_Player.GetPosition() );
return layoutRoot;
}
}
```
3. Open
```
testscript v_testscript = new testscript ();
GetGame().GetUIManager().ShowScriptedMenu( v_testscript, NULL );
```