Page MenuHomeFeedback Tracker

SetMapPos it doesn't work correctly if the widget size is set to small
Assigned, UrgentPublic

Description

SetMapPos it doesn't work correctly if the widget size is set to "small"
if the mapwidget is larger than ~800x600, or full screen, - all ok.

i create gui with mapwidget, 635x442, and SetMapPos it doesn't work correctly...

p.s. sry for my eng

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  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
    }
   }
  }
 }
}
  1. Create test script
class testscript extends UIScriptedMenu
{
	private	PlayerBase	m_Player			=	PlayerBase.Cast( GetGame().GetPlayer() );			
	private	MapWidget	m_MapWidget_Quest;
	
	override Widget 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;
	}
}
  1. Open
testscript  v_testscript 	=	new testscript ();
GetGame().GetUIManager().ShowScriptedMenu( v_testscript, NULL );

Event Timeline

This is a DayZ bug.

komer added a subscriber: komer.Nov 19 2020, 3:13 AM
Geez changed the task status from New to Assigned.Nov 19 2020, 2:58 PM