Пример #1
0
        public override void onWake()
        {
            GuiTabPageCtrl ESnapOptionsTabTerrain = "ESnapOptionsTabTerrain";
            GuiTabPageCtrl ESnapOptionsTabSoft    = "ESnapOptionsTabSoft";

            ((GuiRadioCtrl)ESnapOptionsTabTerrain.findObjectByInternalName("NoAlignment", true)).setStateOn(true);

            ((GuiRadioCtrl)ESnapOptionsTabSoft.findObjectByInternalName("NoAlignment", true)).setStateOn(true);

            ((GuiCheckBoxCtrl)ESnapOptionsTabSoft.findObjectByInternalName("RenderSnapBounds", true)).setStateOn(true);

            ((GuiTextEditCtrl)ESnapOptionsTabSoft.findObjectByInternalName("SnapBackfaceTolerance", true)).setText(((EWorldEditor)"EWorldEditor").getSoftSnapBackfaceTolerance().AsString());
        }
Пример #2
0
        public void toggleRenderSnapBounds()
        {
            GuiTabPageCtrl ESnapOptionsTabSoft = "ESnapOptionsTabSoft";

            ((EWorldEditor)"EWorldEditor").softSnapRender(
                ((GuiCheckBoxCtrl)ESnapOptionsTabSoft.findObjectByInternalName("RenderSnapBounds", true)).getValue().AsBool());
        }
Пример #3
0
        public void toggleRenderSnappedTriangle()
        {
            GuiTabPageCtrl ESnapOptionsTabSoft = "ESnapOptionsTabSoft";

            ((WinterLeaf.Demo.Full.Models.User.Extendable.WorldEditor) "EWorldEditor").softSnapRender(
                ((GuiCheckBoxCtrl)ESnapOptionsTabSoft.findObjectByInternalName("RenderSnappedTriangle", true))
                .getValue().AsBool());
        }