4 protected IEntity m_EntityTo;
5 protected IEntity m_EntityFrom;
8 override void HandlerAttached(Widget w)
10 super.HandlerAttached(w);
12 Widget slider = w.FindAnyWidget(
"Slider");
17 protected void SetSliderMax(
float max)
19 m_Slider.SetSliderSettings(0, max, 1);
23 protected void SetSliderValue(
float value)
25 m_Slider.SetValue(value);
29 float GetSliderValue()
31 return m_Slider.GetValue();
41 IEntity GetEntityFrom()
47 protected void SetEntityTo(IEntity entityTo)
49 m_EntityTo = entityTo;
53 protected void SetEntityFrom(IEntity entityFrom)
55 m_EntityFrom = entityFrom;
59 static SCR_ItemSplitDialog Create(
float max = 1, IEntity entityTo =
null, IEntity entityFrom =
null)
62 SCR_ConfigurableDialogUi.CreateFromPreset(
"{A4F929B76A255B4F}Configs/Inventory/InventoryDialogPreset.conf",
"ITEM_SPLIT", dialogUI);
63 dialogUI.SetSliderMax(max);
64 dialogUI.SetSliderValue(max);
65 dialogUI.SetEntityTo(entityTo);
66 dialogUI.SetEntityFrom(entityFrom);