public virtual void Start() { Level = 1; Anima = GetComponent <Animator>(); Plan = Instantiate(Chickplan, transform.position, Quaternion.identity); Plan.SetActive(false); map = FindObjectOfType <StartMap>(); Scope = 4f; }
/// <summary> /// update the pin of location in the StartMap /// </summary> /// <param name="sender">sender of the event</param> /// <param name="e">e of the argument</param> private void Start_Map_Double_click(object sender, MouseButtonEventArgs e) { e.Handled = true; Point p = e.GetPosition(StartMap); Location l = StartMap.ViewportPointToLocation(p); StartPin.Location = l; UpdateStartComboBox(); }
public SourceSplitSettings() { this.InitializeComponent(); AutoSplitEnabled.Bind(chkAutoSplitEnabled, "Checked"); _settingEntries.Add(AutoSplitEnabled); AutoSplitOnGenericMap.Bind(chkSplitGenericMap, "Checked"); _settingEntries.Add(AutoSplitOnGenericMap); AutoSplitOnLevelTrans.Bind(chkSplitLevelTrans, "Checked"); _settingEntries.Add(AutoSplitOnLevelTrans); AutoSplitOnSpecial.Bind(chkSplitSpecial, "Checked"); _settingEntries.Add(AutoSplitOnSpecial); SplitInterval.Bind(dmnSplitInterval, "Value"); _settingEntries.Add(SplitInterval); ShowGameTime.Bind(chkShowGameTime, "Checked"); _settingEntries.Add(ShowGameTime); ShowAltTime.Bind(chkShowAlt, "Checked"); _settingEntries.Add(ShowAltTime); GameTimeDecimalPlaces.Bind(nudDecimalPlaces, "Value"); _settingEntries.Add(GameTimeDecimalPlaces); AutoStartEnabled.Bind(chkAutoStart, "Checked"); _settingEntries.Add(AutoStartEnabled); AutoStopEnabled.Bind(chkAutoStop, "Checked"); _settingEntries.Add(AutoStopEnabled); AutoResetEnabled.Bind(chkAutoReset, "Checked"); _settingEntries.Add(AutoResetEnabled); StartMap.Bind(boxStartMap, "Text"); _settingEntries.Add(StartMap); ShowTickCount.Bind(chkShowTickCount, "Checked"); _settingEntries.Add(ShowTickCount); HoldUntilPause.Bind(chkHoldUntilPause, "Checked"); _settingEntries.Add(HoldUntilPause); RTAStartOffset.Bind(chkRTAStartOffset, "Checked"); _settingEntries.Add(RTAStartOffset); ServerInitialTicks.Bind(chkServerInitialTicks, "Checked"); _settingEntries.Add(ServerInitialTicks); SLPenalty.Bind(nudSLPenalty, "Value"); _settingEntries.Add(SLPenalty); SplitInstead.Bind(boxSplitInstead, "Checked"); _settingEntries.Add(SplitInstead); ResetMapTransitions.Bind(chkResetMapTransitions, "Checked"); _settingEntries.Add(ResetMapTransitions); this.rdoWhitelist.CheckedChanged += rdoAutoSplitType_CheckedChanged; this.rdoInterval.CheckedChanged += rdoAutoSplitType_CheckedChanged; this.chkAutoSplitEnabled.CheckedChanged += UpdateDisabledControls; this.chkShowGameTime.CheckedChanged += UpdateDisabledControls; // defaults lbGameProcessesSetDefault(); this.GameTimingMethod = DEFAULT_GAME_TIMING_METHOD; this.UpdateDisabledControls(this, EventArgs.Empty); // HACKHACK: due to all the data bindings shenanigans, we need to load all the tab pages when opening the settings // so just give in... this.Load += (e, f) => { for (int i = tabCtrlMaster.TabPages.Count - 1; i >= 0; i--) { tabCtrlMaster.SelectedIndex = i; Thread.Sleep(1); } }; }
void Start() { Map = FindObjectOfType <StartMap>(); Tweener botten = BottenPos.DOLocalMove(MovePos.localPosition, 0.5f).From().OnRewind(() => { BottenPos.gameObject.SetActive(false); }).OnPlay(() => { BottenPos.gameObject.SetActive(true); }); botten.SetAutoKill(false); botten.Pause(); Tweener shit = ShitPos.DOLocalMove(MovePos.localPosition, 0.5f).From().OnRewind(() => { ShitPos.gameObject.SetActive(false); }).OnPlay(() => { ShitPos.gameObject.SetActive(true); });; shit.SetAutoKill(false); shit.Pause(); Tweener fan = FanPos.DOLocalMove(MovePos.localPosition, 0.5f).From().OnRewind(() => { FanPos.gameObject.SetActive(false); }).OnPlay(() => { FanPos.gameObject.SetActive(true); });; fan.SetAutoKill(false); fan.Pause(); CanTowrn(); }
private void Awake() { Anima = GetComponent <Animator>(); map = FindObjectOfType <StartMap>(); MaxHp = HP; }