3 private CheckBoxWidget m_WgtTglSeleHighlight;
4 private CheckBoxWidget m_WgtTglSavePlayerPos;
7 private ButtonWidget m_BtnCancel;
9 private PluginSceneManager m_ModuleSceneManager;
14 void UIPopupScriptEditorSettings(
Widget wgt)
16 m_ModuleSceneManager = PluginSceneManager.Cast(
GetPlugin(PluginSceneManager) );
18 m_WgtTglSeleHighlight = CheckBoxWidget.Cast( wgt.FindAnyWidget(
"cbx_ppp_est_flag_selection") );
19 m_WgtTglSavePlayerPos = CheckBoxWidget.Cast( wgt.FindAnyWidget(
"cbx_ppp_est_flag_load_player_pos") );
20 m_EdxRotationDelta =
EditBoxWidget.Cast( wgt.FindAnyWidget(
"ebx_ppp_est_rotation_delta_value") );
22 m_BtnCancel = ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_est_cancel") );
28 override void OnOpen(
Param param)
30 m_WgtTglSeleHighlight.SetChecked( m_ModuleSceneManager.GetDrawSelection() );
31 m_WgtTglSavePlayerPos.SetChecked( m_ModuleSceneManager.GetLoadPlayerPos() );
32 m_EdxRotationDelta.SetText( m_ModuleSceneManager.GetRotationAngle().ToString() );
40 super.OnClick(w,
x,
y, button);
42 if ( w == m_WgtTglSeleHighlight )
44 m_ModuleSceneManager.SetDrawSelection(m_WgtTglSeleHighlight.IsChecked());
46 else if ( w == m_WgtTglSavePlayerPos )
48 m_ModuleSceneManager.SetLoadPlayerPos(m_WgtTglSavePlayerPos.IsChecked());
50 else if ( w == m_BtnCancel )
65 if ( w == m_EdxRotationDelta )
67 int angle = m_EdxRotationDelta.GetText().ToInt();
71 m_ModuleSceneManager.SetRotationAngle( angle );