14 m_EditboxPos.SetText(pos.
ToString());
21 m_EditboxName = EditBoxWidget.Cast( layoutRoot.FindAnyWidget(
"LocationName") );
22 m_EditboxPos = EditBoxWidget.Cast( layoutRoot.FindAnyWidget(
"Position") );
23 m_Label =
TextWidget.Cast( layoutRoot.FindAnyWidget(
"WindowLabel") );
24 m_ClearButton = ButtonWidget.Cast( layoutRoot.FindAnyWidget(
"ButtonClear") );
25 m_Label.SetText(
"ADD NEW LOCATION");
32 super.OnClick(w,
x,
y, button);
34 if (w.GetUserID() ==
IDC_OK)
36 string name = m_EditboxName.GetText();
38 if (!console.IsLocationNameAvailable(
name) ||
name ==
"" || m_EditboxPos.GetText() ==
"")
43 console.RefreshLocations();
51 else if (w == m_ClearButton)
53 m_EditboxPos.SetText(
"");
PluginConfigDebugProfile m_ConfigDebugProfile
PluginBase GetPlugin(typename plugin_type)
proto native WorkspaceWidget GetWorkspace()
proto string ToString(bool beautify=true)
Vector to string.
proto native CGame GetGame()
vector BeautifiedToVector()
Convert beautified string into a vector.